Let us assume that we have allocated 4 luns to a Solaris server and want to make them the same layout. We can do the same by using below commands to copy the disk geometry.
# First manually create the disk geometry for the first disk using foramt command.
bash-3.00# prtvtoc /dev/rdsk/c4t60060E8005BD26000000BD2600002A12d0s2 > /tmp/disk
#Above command will create a file of disk geometry in the path mentioned which is "disk" file.
# Then we can use the below commands to replicate the same disk geometry on the other disks.
bash-3.00# fmthard -s /tmp/disk /dev/rdsk/c4t60060E8005BD26000000BD2600002A13d0s2
fmthard: New volume table of contents now in place.
bash-3.00# fmthard -s /tmp/disk /dev/rdsk/c4t60060E8005BD26000000BD2600002A14d0s2
fmthard: New volume table of contents now in place.
bash-3.00# fmthard -s /tmp/disk /dev/rdsk/c4t60060E8005BD26000000BD2600002A15d0s2
Thanks
Gorav
# First manually create the disk geometry for the first disk using foramt command.
bash-3.00# prtvtoc /dev/rdsk/c4t60060E8005BD26000000BD2600002A12d0s2 > /tmp/disk
#Above command will create a file of disk geometry in the path mentioned which is "disk" file.
# Then we can use the below commands to replicate the same disk geometry on the other disks.
bash-3.00# fmthard -s /tmp/disk /dev/rdsk/c4t60060E8005BD26000000BD2600002A13d0s2
fmthard: New volume table of contents now in place.
bash-3.00# fmthard -s /tmp/disk /dev/rdsk/c4t60060E8005BD26000000BD2600002A14d0s2
fmthard: New volume table of contents now in place.
bash-3.00# fmthard -s /tmp/disk /dev/rdsk/c4t60060E8005BD26000000BD2600002A15d0s2
Thanks
Gorav
No comments:
Post a Comment