Re: [zfs-discuss] zfs raidz questions

2009-05-20 Thread Moutacim LACHHAB
You can add disks to to a RAID-Z configuration. The following shows how 
to convert a storage pool with one RAID–Z device to storage pool with 
two RAID-Z devices with 3 disks.


# *zpool status*
 pool: rpool
state: ONLINE
scrub: none requested
config:
   NAME STATE READ WRITE CKSUM
   rpoolONLINE   0 0 0
 raidz1 ONLINE   0 0 0
   c1t2d0   ONLINE   0 0 0
   c1t3d0   ONLINE   0 0 0
   c1t4d0   ONLINE   0 0 0

errors: No known data errors
# *zpool add rpool raidz c2t2d0 c2t3d0 c2t4d0*
# *zpool status*
 pool: rpool
state: ONLINE
scrub: none requested
config:
   NAME STATE READ WRITE CKSUM
   rpoolONLINE   0 0 0
 raidz1 ONLINE   0 0 0
   c1t2d0   ONLINE   0 0 0
   c1t3d0   ONLINE   0 0 0
   c1t4d0   ONLINE   0 0 0
 raidz1 ONLINE   0 0 0
   c2t2d0   ONLINE   0 0 0
   c2t3d0   ONLINE   0 0 0
   c2t4d0   ONLINE   0 0 0

errors: No known data errors


kind regards,
Moutacim

robert.ho...@allatnet.de schrieb:

Hi,

okay sorry. I want to migrate from non raid single disks to zfs raidz - at the 
moment i have 1 empty disk and 4 with data.

Its possible to create a pool at the beginning with one disk and add later disk 
2,3,4,5 and can the pool be a raidz then with single parity?

So ists possible for me to transfer the data.

kind regards

Hi robert.hoppe,

could you be more specific about your situation please ?
U wrote ntfs, but where is the problem with zfs ?
I you create a pool, you can add disks later # |zpool add xpool c1t0d0

kind regards,

|
robert.ho...@allatnet.de schrieb:
  

Hi there,

i'm building a small NAS with 5x1TB Disks. The disks contains at the moment 


some data, ntfs as the fs and aren't a raid.
  
Now my im wondering if its possible to add the parity later. So that i add 

step by step one disk to the pool. And when i add the last disk, i enable the 
parity.
  

(i have only one another 1 tb disk to backup the files)

Thank you for you replies and sorry for my bad english.

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




  



--


Moutacim LACHHAB
Service Engineer
Software Technical Services Center Sun Microsystems Inc.
Email moutacim.lach...@sun.com 
+33(0)134030594 x31457
For knowledge and support: http://sunsolve.sun.com

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


Re: [zfs-discuss] zfs raidz questions

2009-05-20 Thread Erik Trimble

robert.ho...@allatnet.de wrote:

Hi there,

i'm building a small NAS with 5x1TB Disks. The disks contains at the moment 
some data, ntfs as the fs and aren't a raid.

Now my im wondering if its possible to add the parity later. So that i add step 
by step one disk to the pool. And when i add the last disk, i enable the parity.

(i have only one another 1 tb disk to backup the files)

Thank you for you replies and sorry for my bad english.

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


You can cheat this was:

create the pool as a raidz1 with 4 1TB disks and a file:

e.g.

# mkfile -n 900g /some/path/here

(make sure the size of this file is SMALLER than your disks, though not 
much smaller)

this will give you a sparse file on /some/path/here

#  zpool create tank raidz1 c0t0d0 c0t1d0 c0t2d0 c0t3d0 /some/path/here

what you do next is fail the "file" device

# zpool offline tank /some/path/here

This will result in a degraded RAIDZ1 pool.

Go ahead and copy your data over to the pool.  When you are finished, 
add in the last 1TB drive this way:


# zpool replace /some/path/here c0t4d0


You can do something similar for RAIDZ2 pools.


Obviously, you can only have 1 "fake" drive in a RAIDZ1 pool, and 2 
"fake" drives in a RAIDZ2 pool.


--
Erik Trimble
Java System Support
Mailstop:  usca22-123
Phone:  x17195
Santa Clara, CA
Timezone: US/Pacific (GMT-0800)

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