#---------------------------------------------------------------------- # root disk (c0t0d0) layout: #---------------------------------------------------------------------- % prtvtoc /dev/rdsk/c0t0d0s0 * /dev/rdsk/c0t0d0s0 partition map * * Dimensions: * 512 bytes/sector * 133 sectors/track * 27 tracks/cylinder * 3591 sectors/cylinder * 4926 cylinders * 4924 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 4197879 3081078 7278956 / 1 3 01 0 4197879 4197878 2 5 00 0 17682084 17682083 3 9 01 17470215 211869 17682083 7 8 00 7278957 10191258 17470214 /usr/local Total disk cylinders available: 4924 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 1169 - 2026 1.47GB (858/0/0) 3081078 1 swap wu 0 - 1168 2.00GB (1169/0/0) 4197879 2 backup wm 0 - 4923 8.43GB (4924/0/0) 17682084 3 alternates wu 4865 - 4923 103.45MB (59/0/0) 211869 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 home wm 2027 - 4864 4.86GB (2838/0/0) 10191258 # create a copy of the boot disk (cot8d0) for a cold spare % prtvtoc /dev/rdsk/c0t0d0s0 | fmthard -s - /dev/rdsk/c0t8d0s0 % newfs /dev/rdsk/c0t8d0s0 % newfs /dev/rdsk/c0t8d0s7 % dd if=/dev/rdsk/c0t0d0s0 of=/dev/rdsk/c0t8d0s0 % dd if=/dev/rdsk/c0t0d0s7 of=/dev/rdsk/c0t8d0s7 % # make the cold spare bootable: % /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t8d0s0 # create metadb on the boot disk: % metadb -a -f -c 2 c0t0d0s3 #---------------------------------------------------------------------- # set up partitioning for the striped disks #---------------------------------------------------------------------- % prtvtoc /dev/rdsk/c2t0d0s0 * /dev/rdsk/c2t0d0s0 partition map * * Dimensions: * 512 bytes/sector * 248 sectors/track * 19 tracks/cylinder * 4712 sectors/cylinder * 7508 cylinders * 7506 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 9 01 0 235600 235599 2 5 01 0 35368272 35368271 7 8 00 235600 35132672 35368271 Current partition table (original): Total disk cylinders available: 7506 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 alternates wu 0 - 49 115.04MB (50/0/0) 235600 1 unassigned wm 0 0 (0/0/0) 0 2 backup wu 0 - 7505 16.86GB (7506/0/0) 35368272 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 home wm 50 - 7505 16.75GB (7456/0/0) 35132672 % cat tt c2t1d0 c2t2d0 c2t3d0 c2t8d0 c2t9d0 c2t10d0 c2t11d0 % foreach d (`cat tt`) ? cat /tmp/t | fmthard -s - /dev/rdsk/${d}s0 ? end #---------------------------------------------------------------------- # add a metadb to each member of the striped partition #---------------------------------------------------------------------- % echo "c2t0d0" >> tt % foreach d (`cat tt`) ? metadb -a ${d}s0 ? end #---------------------------------------------------------------------- # build the /export/home striped partition #---------------------------------------------------------------------- metainit d31 1 4 c2t0d0s7 c2t1d0s7 c2t2d0s7 c2t3d0s7 metainit d32 1 4 c2t8d0s7 c2t9d0s7 c2t10d0s7 c2t11d0s7 metainit d3 -m d31 metattach d3 d32