Use the following tips to help you manage disks more efficiently.
Invoke format -M to enable extended and diagnostic messages for using the format utility with SCSI devices only.
In this example, the series of numbers below Inquiry: represent the hexadecimal value of the inquiry data displayed to the right of the numbers.
# format -M Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t3d0 <SUN0535 cyl 1866 alt 2 hd 7 sec 80> /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0 Specify disk (enter its number): 0 selecting c0t3d0 [disk formatted] format> inquiry Inquiry: 00 00 02 02 27 00 00 12 43 4f 4e 4e 45 52 20 20 ....'...CONNER 43 50 33 30 35 34 30 20 20 53 55 4e 30 35 33 35 CP30540 SUN0535 42 30 42 42 39 33 30 38 46 39 30 B0BB9308F90 Vendor: CONNER Product: CP30540 SUN0535 Revision: B0BB format> |
Use the prtvtoc and fmthard commands to label multiple disks with the same disk geometry.
Use this for loop in a script to copy a disk label from one disk and replicate it on multiple disks.
# for i in x y z > do > prtvtoc /dev/rdsk/cwtxdysz | fmthard -s - /dev/rdsk/cwt${i}d0s2 > done |
In this example, the disk label from c2t0d0s0 is copied to four other disks.
# for i in 1 2 3 5 > do > prtvtoc /dev/rdsk/c2t0d0s0 | fmthard -s - /dev/rdsk/c2t${i}d0s2 > done fmthard: New volume table of contents now in place. fmthard: New volume table of contents now in place. fmthard: New volume table of contents now in place. fmthard: New volume table of contents now in place. # |