Hi guys,

I recently was adding and removing some devices to a zfs mirror and now
the format command command seems to be a bit confused (or is being given
erroneous information) ....

This happened under
                   Solaris Express Community Edition snv_81 X86

I have 3 disks in a pool

    # zpool status -v
      pool: p_monster
     state: ONLINE
     scrub: resilver completed with 0 errors on Sun Sep  7 00:34:14 2008
    config:

            NAME        STATE     READ WRITE CKSUM
            p_monster   ONLINE       0     0     0
              mirror    ONLINE       0     0     0
                c6t0d0  ONLINE       0     0     0
                c5t0d0  ONLINE       0     0     0
                c4t0d0  ONLINE       0     0     0

    errors: No known data errors

All is great. :-)

# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c3d0 <DEFAULT cyl 4859 alt 2 hd 255 sec 63>
                        /[EMAIL PROTECTED],0/[EMAIL PROTECTED],2/[EMAIL 
PROTECTED]/[EMAIL PROTECTED],0
       1. c4t0d0 <Seagate-FreeAgent Pro-400A-698.64GB>
                        /[EMAIL PROTECTED],0/pci1028,[EMAIL PROTECTED],7/[EMAIL 
PROTECTED]/[EMAIL PROTECTED],0
       2. c5t0d0 <Seagate-FreeAgent Pro-400A-698.64GB>
                        /[EMAIL PROTECTED],0/pci1028,[EMAIL PROTECTED],7/[EMAIL 
PROTECTED]/[EMAIL PROTECTED],0
       3. c6t0d0 <Seagate-FreeAgent Pro-4109-698.64GB>
                        /[EMAIL PROTECTED],0/pci1028,[EMAIL PROTECTED],7/[EMAIL 
PROTECTED]/[EMAIL PROTECTED],0

Okay, those three disks certainly look like they go with three different
devices (storage@ 8, 5, 7)

And yet format seems to have its wires crossed somewhere ...


Specify disk (enter its number): 2
selecting c5t0d0
[disk formatted]
/dev/dsk/c4t0d0s0 is part of active ZFS pool p_monster. Please see zpool(1M).

********************************************************************************
Why is format telling me something about  c4.....  when I have selected c5 ???
********************************************************************************

Specify disk (enter its number): 1
selecting c4t0d0
[disk formatted]
/dev/dsk/c4t0d0s0 is part of active ZFS pool p_monster. Please see zpool(1M).

Specify disk (enter its number)[2]: 3
selecting c6t0d0
[disk formatted]
/dev/dsk/c6t0d0s0 is part of active ZFS pool p_monster. Please see zpool(1M).


Some zpool history ...

Originally the mirror was just two drives
                        c4t0d0
                        c5t0d0

        I added a third device to the mirror

2008-09-06.08:27:50 zpool attach p_monster c5t0d0 c6t0d0

        so now I have   c4t0d0
                              c5t0d0
                              c6t0d0

        I detached one of the original drives because I wanted to run
        the windows seagate utility to turn of the "spin down when idle feature"
        and did completely not trust it would be nice to my data


2008-09-06.12:53:37 zpool detach p_monster c4t0d0

        so now I have   c5t0d0
                              c6t0d0

        I attached it back
2008-09-06.12:59:55 zpool attach p_monster c5t0d0 c4t0d0

        so now I have   c5t0d0
                              c6t0d0
                              c4t0d0

        resliver completes

        I detached the other original disk for the same reason

2008-09-06.17:29:01 zpool detach p_monster c5t0d0

        so now I have   c6t0d0
                              c4t0d0

        Then I tried to add it back
                    zpool attach p_monster c4t0d0 c5t0d0
        or
                    zpool attach p_monster c6t0d0 c5t0d0
        but it would not let me.
        It said that c4t0d0 was a member of p_monster ...
        (Sorry, I don't have the actual text spit out any longer)

        This is when I eventually found the info shown by the format command

        So, out of desperation I took a chance and did

2008-09-06.19:46:18 zpool detach p_monster c4t0d0

        so now I have   c6t0d0

        Then the next two commands worked

2008-09-06.19:46:45 zpool attach p_monster c6t0d0 c5t0d0

        wait for resilver to finish

2008-09-06.22:11:46 zpool attach p_monster c6t0d0 c4t0d0

        BUT FORMAT STILL PRINTS OUT THE INFORMATION described at the
        beginning of this post.


With very little confidence that it would make a difference, I
exported the pool, installed b97 onto another slice of my boot
drive, and imported the pool.
'format' shows the same ugly output.

Suggestions?
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to