When I use "cfgadm -a" it only seems to list usb devices?

#cfgadm -a
Ap_Id                          Type         Receptacle   Occupant     Condition
usb2/1                         unknown      empty        unconfigured ok
usb2/2                         unknown      empty        unconfigured ok
usb2/3                         unknown      empty        unconfigured ok
usb3/1                         unknown      empty        unconfigured ok

I'm trying to convert a nonredundant storage pool to a mirrored pool.
I'm following the "zfs admin guide" on page 71.

I currently have a existing rpool:

#zpool status

  pool: rpool
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          c3d0s0    ONLINE       0     0     0

I want to mirror this drive, I tried using format to get the disk name

#format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c3d0 <DEFAULT cyl 24318 alt 2 hd 255 sec 63>
          /p...@0,0/pci-...@14,1/i...@0/c...@0,0
       1. c3d1 <drive type unknown>
          /p...@0,0/pci-...@14,1/i...@0/c...@1,0

So I tried

#zpool attach rpool c3d0s0 c3d1s0 // failed
cannot open '/dev/dsk/c3d1s0': No such device or address

#zpool attach rpool c3d0s0 c3d1 // failed
cannot label 'c3d1': EFI labeled devices are not supported on root pools.

Thoughts?

Thanks,
Hua-Ying

On Mon, Jul 6, 2009 at 2:37 AM, Carsten
Aulbert<carsten.aulb...@aei.mpg.de> wrote:
> Hi
>
> Hua-Ying Ling wrote:
>> How do I discover the disk name to use for zfs commands such as:
>> c3d0s0?  I tried using format command but it only gave me the first 4
>> letters: c3d1.  Also why do some command accept only 4 letter disk
>> names and others require 6 letters?
>
>
> Usually i find
>
> cfgadm -a
>
> helpful enough for that (mayby adding '|grep disk' to it).
>
> Why sometimes 4 and sometimes 6 characters:
>
> c3d1 <- this would be disk#1 on controller#3
> c3d0s0 <- this would be slice #0 (partition) on disk #0 on controller #3
>
> Usually there is a also t0 there, e.g.:
>
> cfgadm -a|grep disk |head
> sata0/0::dsk/c0t0d0            disk         connected    configured   ok
> sata0/1::dsk/c0t1d0            disk         connected    configured   ok
> sata0/2::dsk/c0t2d0            disk         connected    configured   ok
> sata0/3::dsk/c0t3d0            disk         connected    configured   ok
> sata0/4::dsk/c0t4d0            disk         connected    configured   ok
> sata0/5::dsk/c0t5d0            disk         connected    configured   ok
> sata0/6::dsk/c0t6d0            disk         connected    configured   ok
> sata0/7::dsk/c0t7d0            disk         connected    configured   ok
> sata1/0::dsk/c1t0d0            disk         connected    configured   ok
> sata1/1::dsk/c1t1d0            disk         connected    configured   ok
>
>
> HTH
>
> Carsten
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to