McBofh <james.c.mcpher...@gmail.com> writes: > On 22/11/10 01:44 PM, Harry Putnam wrote: >> Is there some way to determine the size of disks discovered with >> `format' >> >> An attempt to create a 2 disk mirror failed with the message that the >> disks were different sizes, but I thought they were the same size... I >> must have used the wrong identifier for one of the disks... so to find >> the matching disk how can I tell what size the discs turned up by >> format are? > > > > $ pfexec format > Searching for disks...done > > > AVAILABLE DISK SELECTIONS: > 0. c3t4d0 <ATA -ST3320620AS -D cyl 38910 alt 2 hd 255 sec 63> > /p...@0,0/pci10de,3...@a/pci1000,3...@0/s...@4,0 > 1. c3t6d0 <ATA -ST3320620AS -K cyl 38910 alt 2 hd 255 sec 63> > /p...@0,0/pci10de,3...@a/pci1000,3...@0/s...@6,0 > 2. c5t5000C500204C9482d0 <ATA -ST31000528AS -CC38 cyl 60797 alt 2 > hd 255 sec 126> > /scsi_vhci/d...@g5000c500204c9482 > 3. c5t5000C500205E77DBd0 <ATA -ST31000528AS -CC38 cyl 60797 alt 2 > hd 255 sec 126> > /scsi_vhci/d...@g5000c500205e77db > 4. c5t5000CCA35DE9C580d0 <ATA -Hitachi HDS7210-A3EA cyl 60797 alt 2 > hd 255 sec 126> > /scsi_vhci/d...@g5000cca35de9c580 > 5. c5t5000CCA35DEA1ED5d0 <ATA -Hitachi HDS7210-A3EA cyl 60797 alt 2 > hd 255 sec 126> > /scsi_vhci/d...@g5000cca35dea1ed5 > 6. c5t5000CCA00510A7CCd0 <HITACHI-HUS1514SBSUN146-SA02 cyl 17826 alt 2 > hd 255 sec 63> > /scsi_vhci/d...@g5000cca00510a7cc > 7. c5t50024E90037AF38Cd0 <ATA -SAMSUNG HD103SJ-0001 cyl 60797 alt 2 > hd 255 sec 126> > /scsi_vhci/d...@g50024e90037af38c > 8. c5t50024E90037AF390d0 <ATA -SAMSUNG HD103SJ-0001 cyl 60797 alt 2 > hd 255 sec 126> > /scsi_vhci/d...@g50024e90037af390 > 9. c6t0d0 <drive type unknown> > /p...@0,0/pci108e,6...@2,1/h...@6/h...@1/stor...@1/d...@0,0 > 10. c6t0d1 <drive type unknown> > /p...@0,0/pci108e,6...@2,1/h...@6/h...@1/stor...@1/d...@0,1 > > > > It's mostly the cylinder numbers that you need to watch out for. > If you have devices with the same claimed manufacturer size but > different geometry, I'd create a slice of the maximum size on the > smaller disk, then create a slice with the same number of cylinders > on the larger disk, and then mirror those two slices.
Thanks... very helpful. I noticed though that once a disk is formatted or put into a zpool the cyl no. is no longer given, but then the size is shown I did also find a diffeent answer too. `iostat -En ' Appears to give both the names and the sizes. But not sure it would still be useful in the case you describe. _______________________________________________ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss