In Linux
1 2 |
# usermod -p "" foo # chage -d 0 foo |
In Solaris
1 2 3 |
# useradd foo # passwd foo # passwd -f foo |
In Linux
1 2 |
# usermod -p "" foo # chage -d 0 foo |
In Solaris
1 2 3 |
# useradd foo # passwd foo # passwd -f foo |
Once the new disk volume is added in the hypervisor (i.e VMware), scan the SCISI bus in the VM
1 |
# echo "- - -" >/sys/class/scsi_host/host0/scan |
Check that the new new disk exists
1 |
# fdisk -lc |
pvcreate, vgextend, lvextend, resize2fs
1 2 3 4 |
# pvcreate /dev/sdf # vgextend san /dev/sdf # lvextend -L +200g /dev/san/oracle # resize2fs /dev/san/oracle |
Check for new size
1 2 3 |
# df -h /oracle Filesystem Size Used Avail Use% Mounted on /dev/mapper/san-oracle 640G 390G 218G 65% /oracle |
Check SSH service status
1 2 3 |
root@solaris1 # svcs ssh STATE STIME FMRI online Feb_05 svc:/network/ssh:default |
Restarting SSH service
1 |
root@solaris1 # svcadm refresh ssh |
1 |
# cd /etc && ln -sf /usr/share/zoneinfo/Australia/Sydney localtime |
1 2 3 4 |
[root@web02 httpd]# zgrep /js/video.min.latest.js /var/log/httpd/hd_access_log-20110606.gz | awk {'print $6" "$9'} | sort | uniq -c | sed 's/"//g' 2 GET 200 70 GET 301 10206 GET 404 |