Script to label disks in solaris

WARNING: USE CAREFULLY : WARNING

To label the disks you can use this script, just make sure you feed it the right disks, in this case it’s all that appear as “c6t” in my server

format < /dev/null | grep -i c6t | grep "<" | awk '{ print $2 }'| while read d;do printf "label\nyes\nquit\n" | format -d $d; done

Leave a Reply

Your email address will not be published. Required fields are marked *