zfs disks

Emrah Gokce Bayram <[email protected]>
Newsgroups gmane.os.solaris.managers
Message-ID <CA+4qT1Y=oav1cBfxx=uBx+3N-KSf-M1ek3k_f5fEUzUxexgM3w@mail.gmail.com>
Hi Gurus;

I have a confusion w/ ZFS. Actually I had a mirrored volume but has been
detached after a reboot. Now I have 2 unmirrored disks. I first thought to
mirror them but when I checked with iostat I found there is some data in
disks:

 #: zpool status
  pool: eniq_sp_1
 state: ONLINE
 scrub: resilver completed after 0h45m with 0 errors on Wed Feb  1 19:00:39
2012
config:

        NAME         STATE     READ WRITE CKSUM
        eniq_sp_1    ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d0   ONLINE       0     0     0
            c4t0d0   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d1   ONLINE       0     0     0
            c4t0d1   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d2   ONLINE       0     0     0  104G resilvered
            c4t0d2   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d3   ONLINE       0     0     0
            c4t0d3   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d4   ONLINE       0     0     0
            c4t0d4   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d5   ONLINE       0     0     0
            c4t0d5   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d6   ONLINE       0     0     0
            c4t0d6   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d7   ONLINE       0     0     0
            c4t0d7   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d8   ONLINE       0     0     0
            c4t0d8   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d9   ONLINE       0     0     0
            c4t0d9   ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c2t1d10  ONLINE       0     0     0
            c4t0d10  ONLINE       0     0     0
          *c2t1d11    ONLINE       0     0     0*
*          c4t0d11    ONLINE       0     0     0*

errors: No known data errors


 #: zpool iostat -v 5
                capacity     operations    bandwidth
pool          used  avail   read  write   read  write
-----------  -----  -----  -----  -----  -----  -----
eniq_sp_1    1.46T  2.07T     27      7  2.87M  31.0K
  mirror      132G   146G      0      0    610  2.63K
    c2t1d0       -      -      0      0  4.04K  2.66K
    c4t0d0       -      -      0      0  3.78K  2.66K
  mirror      129G   149G      0      0  1.07K  3.54K
    c2t1d1       -      -      0      0  6.65K  3.57K
    c4t0d1       -      -      0      0  6.42K  3.57K
  mirror      104G   174G     12      1  1.44M  3.44K
    c2t1d2       -      -      0     16     18  1.94M
    c4t0d2       -      -     12      0  1.45M  2.62K
  mirror      130G   148G      0      0    697  1.81K
    c2t1d3       -      -      0      0  4.21K  1.84K
    c4t0d3       -      -      0      0  3.85K  1.84K
  mirror      130G   148G      0      0    528  2.46K
    c2t1d4       -      -      0      0  2.83K  2.50K
    c4t0d4       -      -      0      0  2.86K  2.50K
  mirror      127G   151G      0      0    522  2.94K
    c2t1d5       -      -      0      0  2.95K  2.97K
    c4t0d5       -      -      0      0  2.64K  2.97K
  mirror      124G   154G      0      0    738  3.54K
    c2t1d6       -      -      0      0  3.42K  3.58K
    c4t0d6       -      -      0      0  3.25K  3.58K
  mirror      102G   176G     12      0  1.42M     3K
    c2t1d7       -      -     11      0  1.42M  2.55K
    c4t0d7       -      -      0     15     10  1.73M
  mirror      129G   149G      0      0    599  2.04K
    c2t1d8       -      -      0      0  3.24K  2.07K
    c4t0d8       -      -      0      0  2.95K  2.07K
  mirror      129G   149G      0      0    499  1.65K
    c2t1d9       -      -      0      0  2.87K  1.68K
    c4t0d9       -      -      0      0  2.59K  1.68K
  mirror      122G   156G      0      0    443  1.43K
    c2t1d10      -      -      0      0  2.30K  1.46K
    c4t0d10      -      -      0      0  2.14K  1.46K
  *c2t1d11    92.9G   185G      0      0  2.93K   1022*
*  c4t0d11    40.8G   237G      0      0  2.77K  1.50K*
-----------  -----  -----  -----  -----  -----  -----


What I want to do is, I want to mirror these 2 disks again but without to
loose the data in them. (if possible in live)  I also want to see which
volumes do these devices belongs but I couldn't' find any parameter of zfs
or zlogin to do that.

I appreciate for any comment.


Emrah Bayram
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.