[OpenIndiana-discuss] find size of raw disks

McBofh james.c.mcpherson at gmail.com
Mon Nov 22 03:56:54 UTC 2010


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>
           /pci at 0,0/pci10de,376 at a/pci1000,3150 at 0/sd at 4,0
        1. c3t6d0 <ATA    -ST3320620AS    -K    cyl 38910 alt 2 hd 255 sec 63>
           /pci at 0,0/pci10de,376 at a/pci1000,3150 at 0/sd at 6,0
        2. c5t5000C500204C9482d0 <ATA    -ST31000528AS   -CC38 cyl 60797 alt 2 hd 255 sec 126>
           /scsi_vhci/disk at g5000c500204c9482
        3. c5t5000C500205E77DBd0 <ATA    -ST31000528AS   -CC38 cyl 60797 alt 2 hd 255 sec 126>
           /scsi_vhci/disk at g5000c500205e77db
        4. c5t5000CCA35DE9C580d0 <ATA    -Hitachi HDS7210-A3EA cyl 60797 alt 2 hd 255 sec 126>
           /scsi_vhci/disk at g5000cca35de9c580
        5. c5t5000CCA35DEA1ED5d0 <ATA    -Hitachi HDS7210-A3EA cyl 60797 alt 2 hd 255 sec 126>
           /scsi_vhci/disk at g5000cca35dea1ed5
        6. c5t5000CCA00510A7CCd0 <HITACHI-HUS1514SBSUN146-SA02 cyl 17826 alt 2 hd 255 sec 63>
           /scsi_vhci/disk at g5000cca00510a7cc
        7. c5t50024E90037AF38Cd0 <ATA    -SAMSUNG HD103SJ-0001 cyl 60797 alt 2 hd 255 sec 126>
           /scsi_vhci/disk at g50024e90037af38c
        8. c5t50024E90037AF390d0 <ATA    -SAMSUNG HD103SJ-0001 cyl 60797 alt 2 hd 255 sec 126>
           /scsi_vhci/disk at g50024e90037af390
        9. c6t0d0 <drive type unknown>
           /pci at 0,0/pci108e,6676 at 2,1/hub at 6/hub at 1/storage at 1/disk at 0,0
       10. c6t0d1 <drive type unknown>
           /pci at 0,0/pci108e,6676 at 2,1/hub at 6/hub at 1/storage at 1/disk at 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.


McB




More information about the OpenIndiana-discuss mailing list