A place for Unix Thoughts and Ideas

Quickly setting up disks for Veritas

Here is a quick trick for quickly labeling and initializing a group of disks for Veritas

Say you want to initialize luns 10-20 and they are all on c2t50060E800547725Dd* and force a smi label.

printf “label 0 y n n” > /tmp/cmd
for ((i=10;i<21;i++)); do format -d $i -f /tmp/cmd -e ;done
vxdisk scandiskss
for ((i=0;i<12;i++)); do /etc/vx/bin/vxdisksetup -i c2t50060E800547725Dd$i;done

Depending on how many unlabeled LUNs you have, this can take a long time.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: