root@sun_server [/root] >--> format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c1t1d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfa6b12f,0 1. c1t2d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfb6a1e0,0 2. c1t8d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfbfd5c0,0 3. c1t9d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfbfd593,0 4. c1t10d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfb45673,0 5. c1t11d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfa6c10e,0 Specify disk (enter its number): partition> p Current partition table (original): Total disk cylinders available: 14087 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 3221 - 4065 4.10GB (845/0/0) 8598720 1 swap wu 0 - 3220 15.63GB (3221/0/0) 32776896 2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312 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 unassigned wm 0 0 (0/0/0) 0 partition> 6 Part Tag Flag Cylinders Size Blocks 6 unassigned wm 0 0 (0/0/0) 0 Enter partition id tag[unassigned]: Enter partition permission flags[wm]: Enter new starting cyl[0]: 4066 Enter partition size[0b, 0c, 4066e, 0.00mb, 0.00gb]: 3c partition> p Current partition table (unnamed): Total disk cylinders available: 14087 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 3221 - 4065 4.10GB (845/0/0) 8598720 1 swap wu 0 - 3220 15.63GB (3221/0/0) 32776896 2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312 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 4066 - 4068 14.91MB (3/0/0) 30528 7 unassigned wm 0 0 (0/0/0) 0 partition> DISK 1: Free Hog partition[6]? 1 Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 14083c Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]: 0 Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 0 Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]: 0 Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]: 3c Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]: 0 Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 14082 68.33GB (14083/0/0) 143308608 1 swap wu 14083 - 14083 4.97MB (1/0/0) 10176 2 backup wu 0 - 14086 68.35GB (14087/0/0) 143349312 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 usr wm 14084 - 14086 14.91MB (3/0/0) 30528 7 unassigned wm 0 0 (0/0/0) 0 Okay to make this the current partition table[yes]? yes Enter table name (remember quotes): "datadisk" Ready to label disk, continue? yes ============================== partition> m Select partitioning base: 0. Current partition table (original) 1. All Free Hog Choose base (enter number) [0]? 1 Part Tag Flag Cylinders Size Blocks 0 root wm 0 0 (0/0/0) 0 1 swap wu 0 0 (0/0/0) 0 2 backup wu 0 - 14086 68.35GB (14087/0/0) 143349312 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 usr wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 Do you wish to continue creating a new partition table based on above table[yes]? Free Hog partition[6]? 1 Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 14083c Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]: 0 Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 0 Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]: 0 Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]: 3c Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]: 0 Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 14082 68.33GB (14083/0/0) 143308608 1 swap wu 14083 - 14083 4.97MB (1/0/0) 10176 2 backup wu 0 - 14086 68.35GB (14087/0/0) 143349312 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 usr wm 14084 - 14086 14.91MB (3/0/0) 30528 7 unassigned wm 0 0 (0/0/0) 0 Okay to make this the current partition table[yes]? yes Enter table name (remember quotes): "datadisk1" Ready to label disk, continue? yes AVAILABLE DISK SELECTIONS: 0. c1t1d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfa6b12f,0 1. c1t2d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfb6a1e0,0 2. c1t8d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfbfd5c0,0 3. c1t9d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfbfd593,0 4. c1t10d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfb45673,0 5. c1t11d0 /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfa6c10e,0 ====================== #!/bin/sh metadb -a -f -c 2 c1t1d0s6 # not using c1t2d0s0 for anything metaroot d0 metadb -a -c 2 c1t2d0s6 # metadb -a -c 2 c1t8d0s6 metadb -a -c 2 c1t9d0s6 metadb -a -c 2 c1t10d0s6 metadb -a -c 2 c1t11d0s6 # metainit -f d10 1 1 c1t1d0s0 # metainit d400 4 1 c1t8d0s0 1 c1t9d0s0 1 c1t10d0s0 1 c1t11d0s0 # mkdir /vol01 newfs /dev/md/rdsk/d400 cat "/dev/md/dsk/d400 /dev/md/rdsk/d400 /vol01 ufs 3 yes logging,largefiles" >> /etc/vfstab ========================= >--> metadb flags first blk block count a u 16 8192 /dev/dsk/c1t1d0s6 a u 8208 8192 /dev/dsk/c1t1d0s6 a u 16 8192 /dev/dsk/c1t2d0s6 a u 8208 8192 /dev/dsk/c1t2d0s6 a u 16 8192 /dev/dsk/c1t8d0s6 a u 8208 8192 /dev/dsk/c1t8d0s6 a u 16 8192 /dev/dsk/c1t9d0s6 a u 8208 8192 /dev/dsk/c1t9d0s6 a u 16 8192 /dev/dsk/c1t10d0s6 a u 8208 8192 /dev/dsk/c1t10d0s6 a u 16 8192 /dev/dsk/c1t11d0s6 ----------------------------------------------------- root@sun_server [/root] >--> metainit d40 4 1 c1t8d0s0 1 c1t9d0s0 1 c1t10d0s0 1 c1t11d0s0 d40: Concat/Stripe is setup ----------------------------------------------------- root@sun_server [/root] >--> newfs /dev/md/rdsk/d40 newfs: /dev/md/rdsk/d40 last mounted as /vol01 newfs: construct a new file system /dev/md/rdsk/d40: (y/n)? y /dev/md/rdsk/d40: 573203904 sectors in 56329 cylinders of 24 tracks, 424 sectors 279884.7MB in 5633 cyl groups (10 c/g, 49.69MB/g, 6016 i/g) super-block backups (for fsck -F ufs -o b=#) at: 32, 102224, 204416, 306608, 408800, 510992, 613184, 715376, 817568, 919760, Initializing cylinder groups: ............................................................................... ................................. super-block backups for last 10 cylinder groups at: 572206448, 572308640, 572410832, 572513024, 572615216, 572717408, 572819600, 572921792, 573023984, 573112352, ==================================================== root@sun_server [/root] >--> more createdbs.sh #!/bin/sh metadb -a -f -c 2 c1t1d0s6 # not using c1t2d0s0 for anything metaroot d0 metadb -a -c 2 c1t2d0s6 # metadb -a -c 2 c1t8d0s6 metadb -a -c 2 c1t9d0s6 metadb -a -c 2 c1t10d0s6 metadb -a -c 2 c1t11d0s6 # metainit -f d10 1 1 c1t1d0s0 # metainit d40 4 1 c1t8d0s0 1 c1t9d0s0 1 c1t10d0s0 1 c1t11d0s0 # mkdir /vol01 newfs /dev/md/rdsk/d40 # cat "/dev/md/dsk/d40 /dev/md/rdsk/d40 /vol01 ufs 3 yes logging,largefiles" >> /etc/vfstab ================================ >--> metadb flags first blk block count a m p luo 16 8192 /dev/dsk/c1t1d0s6 a p luo 8208 8192 /dev/dsk/c1t1d0s6 a p luo 16 8192 /dev/dsk/c1t2d0s6 a p luo 8208 8192 /dev/dsk/c1t2d0s6 a p luo 16 8192 /dev/dsk/c1t8d0s6 a p luo 8208 8192 /dev/dsk/c1t8d0s6 a p luo 16 8192 /dev/dsk/c1t9d0s6 a p luo 8208 8192 /dev/dsk/c1t9d0s6 a p luo 16 8192 /dev/dsk/c1t10d0s6 a p luo 8208 8192 /dev/dsk/c1t10d0s6 a luo 16 8192 /dev/dsk/c1t11d0s6 ----------------------------------------------------- root@sun_server [/root] >--> metastat d40: Concat/Stripe Size: 573203904 blocks (273 GB) Stripe 0: Device Start Block Dbase Reloc c1t8d0s0 0 No Yes Stripe 1: Device Start Block Dbase Reloc c1t9d0s0 10176 No Yes Stripe 2: Device Start Block Dbase Reloc c1t10d0s0 10176 No Yes Stripe 3: Device Start Block Dbase Reloc c1t11d0s0 10176 No Yes d10: Concat/Stripe Size: 8598720 blocks (4.1 GB) Stripe 0: Device Start Block Dbase Reloc c1t1d0s0 0 No Yes Device Relocation Information: Device Reloc Device ID c1t8d0 Yes id1,ssd@w20000004cfbfd5c0 c1t9d0 Yes id1,ssd@w20000004cfbfd593 c1t10d0 Yes id1,ssd@w20000004cfb45673 c1t11d0 Yes id1,ssd@w20000004cfa6c10e c1t1d0 Yes id1,ssd@w20000004cfa6b12f ---------------------------------------------------- john meister UNIX Systems Administrator ---------------------------------------------------- Example -- Creating a Concatenation of Four Slices # metainit d40 4 1 c0t1d0s2 1 c0t2d0s2 1 c0t2d0s3 1 c0t2d1s3 d40: Concat/Stripe is setup