Re: [OpenIndiana-discuss] find size of raw disks

2010-11-23 Thread Roy Sigurd Karlsbakk
> 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.

Try creating a dummy zpool on the drive and then destroy that. That's a quick 
way to fix partition messups (IMHO)

Vennlige hilsener / Best regards

roy
--
Roy Sigurd Karlsbakk
(+47) 97542685
r...@karlsbakk.net
http://blogg.karlsbakk.net/
--
I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er 
et elementært imperativ for alle pedagoger å unngå eksessiv anvendelse av 
idiomer med fremmed opprinnelse. I de fleste tilfeller eksisterer adekvate og 
relevante synonymer på norsk.

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] find size of raw disks

2010-11-21 Thread Chris Ridd

On 22 Nov 2010, at 04:14, Harry Putnam wrote:

> McBofh  writes:
> 
>> 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

Once they've got EFI labels, that's the format (sic) you get IIRC. Does prtvtoc 
help?

I thought ZFS was nowadays able to copy with mirroring "identical" disks which 
differed by a number of blocks.

Cheers,

Chris



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] find size of raw disks

2010-11-21 Thread Harry Putnam
McBofh  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 
>   /p...@0,0/pci10de,3...@a/pci1000,3...@0/s...@4,0
>1. c3t6d0 
>   /p...@0,0/pci10de,3...@a/pci1000,3...@0/s...@6,0
>2. c5t5000C500204C9482d0  hd 255 sec 126>
>   /scsi_vhci/d...@g5000c500204c9482
>3. c5t5000C500205E77DBd0  hd 255 sec 126>
>   /scsi_vhci/d...@g5000c500205e77db
>4. c5t5000CCA35DE9C580d0  hd 255 sec 126>
>   /scsi_vhci/d...@g5000cca35de9c580
>5. c5t5000CCA35DEA1ED5d0  hd 255 sec 126>
>   /scsi_vhci/d...@g5000cca35dea1ed5
>6. c5t5000CCA00510A7CCd0  hd 255 sec 63>
>   /scsi_vhci/d...@g5000cca00510a7cc
>7. c5t50024E90037AF38Cd0  hd 255 sec 126>
>   /scsi_vhci/d...@g50024e90037af38c
>8. c5t50024E90037AF390d0  hd 255 sec 126>
>   /scsi_vhci/d...@g50024e90037af390
>9. c6t0d0 
>   /p...@0,0/pci108e,6...@2,1/h...@6/h...@1/stor...@1/d...@0,0
>   10. c6t0d1 
>   /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


Re: [OpenIndiana-discuss] find size of raw disks

2010-11-21 Thread McBofh

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 
  /p...@0,0/pci10de,3...@a/pci1000,3...@0/s...@4,0
   1. c3t6d0 
  /p...@0,0/pci10de,3...@a/pci1000,3...@0/s...@6,0
   2. c5t5000C500204C9482d0 
  /scsi_vhci/d...@g5000c500204c9482
   3. c5t5000C500205E77DBd0 
  /scsi_vhci/d...@g5000c500205e77db
   4. c5t5000CCA35DE9C580d0 
  /scsi_vhci/d...@g5000cca35de9c580
   5. c5t5000CCA35DEA1ED5d0 
  /scsi_vhci/d...@g5000cca35dea1ed5
   6. c5t5000CCA00510A7CCd0 
  /scsi_vhci/d...@g5000cca00510a7cc
   7. c5t50024E90037AF38Cd0 
  /scsi_vhci/d...@g50024e90037af38c
   8. c5t50024E90037AF390d0 
  /scsi_vhci/d...@g50024e90037af390
   9. c6t0d0 
  /p...@0,0/pci108e,6...@2,1/h...@6/h...@1/stor...@1/d...@0,0
  10. c6t0d1 
  /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.


McB


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] find size of raw disks

2010-11-21 Thread Harry Putnam
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?


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss