To get all the wwns attached to an hba you can use this
# cfgadm -al -o show_FCP_dev | egrep ‘disk|tape’
Month: October 2011
create user’s homes from the entries at /etc/passwd
i don’t like to do a # cat /etc/passwd and manually create the users and chown their dirs… So, this is a one liner:
# grep -i home /etc/passwd | awk -F: ‘{print “mkdir ” $6 ” ; chown ” $1 ” ” $6 }’ > somefile; chmod 755 somefile;./somefile 183/433
scan for new disks inside a linux vmware vm
Just do this:
ls /sys/class/scsi_host/ | while read h;do echo "- - -" > /sys/class/scsi_host/$h/scan;done