[zfs-discuss] root zpool question

2008-11-06 Thread Krzys

Currently I have the following:

# zpool status
   pool: rootpool
  state: ONLINE
  scrub: none requested
config:

 NAMESTATE READ WRITE CKSUM
 rootpoolONLINE   0 0 0
   c1t1d0s0  ONLINE   0 0 0

errors: No known data errors
#

I would like to put c1t0d0s0 disk in and setup mirroring for my root disk. I am 
just addraid that if I do add my disk that instead of creating mirror I will 
add 
it to a pool to have it concat/stripe rather than mirror. How can I add disk to 
this pool and have mirroring instead of striping it?

Regards,

Chris

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] root zpool question

2008-11-06 Thread Krzys
never mind I did figure it out, I did play around with my settings and spare 
disk and it seems like its working

# zpool create -f testroot c1t0d0s0
Nov  6 20:02:10 adas ufs: NOTICE: mount: not a UFS magic number (0x0)
# zfs list
NAME  USED  AVAIL  REFER  MOUNTPOINT
rootpool 29.4G  37.6G  21.5K  /rootpool
rootpool/ROOT17.4G  37.6G18K  /rootpool/ROOT
rootpool/ROOT/zfsBE  17.4G  37.6G  17.4G  /
rootpool/dump4.02G  37.6G  4.02G  -
rootpool/swap8.00G  44.4G  1.13G  -
testroot 89.5K  9.78G 1K  /testroot
# zpool attach testroot c1t0d0s0 c1t0d0s1
# zpool list
NAME   SIZE   USED  AVAILCAP  HEALTH  ALTROOT
rootpool68G  22.6G  45.4G33%  ONLINE  -
testroot  9.94G   112K  9.94G 0%  ONLINE  -
# zpool status
   pool: rootpool
  state: ONLINE
  scrub: none requested
config:

 NAMESTATE READ WRITE CKSUM
 rootpoolONLINE   0 0 0
   c1t1d0s0  ONLINE   0 0 0

errors: No known data errors

   pool: testroot
  state: ONLINE
  scrub: resilver completed after 0h0m with 0 errors on Thu Nov  6 20:03:01 2008
config:

 NAME  STATE READ WRITE CKSUM
 testroot  ONLINE   0 0 0
   mirror  ONLINE   0 0 0
 c1t0d0s0  ONLINE   0 0 0
 c1t0d0s1  ONLINE   0 0 0

errors: No known data errors
#





On Thu, 6 Nov 2008, Krzys wrote:


 Currently I have the following:

 # zpool status
   pool: rootpool
  state: ONLINE
  scrub: none requested
 config:

 NAMESTATE READ WRITE CKSUM
 rootpoolONLINE   0 0 0
   c1t1d0s0  ONLINE   0 0 0

 errors: No known data errors
 #

 I would like to put c1t0d0s0 disk in and setup mirroring for my root disk. I 
 am
 just addraid that if I do add my disk that instead of creating mirror I will 
 add
 it to a pool to have it concat/stripe rather than mirror. How can I add disk 
 to
 this pool and have mirroring instead of striping it?

 Regards,

 Chris

 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


 !DSPAM:122,491393cf9027197925582!

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] root zpool question

2008-11-06 Thread Richard Elling
Krzys wrote:
 Currently I have the following:

 # zpool status
pool: rootpool
   state: ONLINE
   scrub: none requested
 config:

  NAMESTATE READ WRITE CKSUM
  rootpoolONLINE   0 0 0
c1t1d0s0  ONLINE   0 0 0

 errors: No known data errors
 #

 I would like to put c1t0d0s0 disk in and setup mirroring for my root disk. I 
 am 
 just addraid that if I do add my disk that instead of creating mirror I will 
 add 
 it to a pool to have it concat/stripe rather than mirror. How can I add disk 
 to 
 this pool and have mirroring instead of striping it?
   

The command is zpool attach
But more work is needed.  Please consult the ZFS Administration
Guide for the proper procedure for your hardware.
 -- richard

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss