Re: [zfs-discuss] Can I create ZPOOL with missing disks?

2009-01-18 Thread Jim Klimov
...and, apparently, I can replace two drives at the similar time (in two commands), and resilvering goes in parallel: {code} [r...@t2k1 /]# zpool status pool pool: pool state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue

Re: [zfs-discuss] Can I create ZPOOL with missing disks?

2009-01-18 Thread Jim Klimov
And one more note: while I could offline both "fake drives" in OpenSolaris tests, the Solaris 10u6 box refused to offline the second drive since it left the pool without parity. {code} [r...@t2k1 /]# zpool status test pool: test state: ONLINE scrub: none requested config: NAME

Re: [zfs-discuss] Can I create ZPOOL with missing disks?

2009-01-17 Thread Jim Klimov
Thanks to all those who helped, even despite the "non-enterprise approach" of this question ;) While experimenting I discovered that Solaris /tmp doesn't seem to support sparse files: "mkfile -n" still creates full-sized files which can either use up the swap space, or not fit there. ZFS and UFS

Re: [zfs-discuss] Can I create ZPOOL with missing disks?

2009-01-16 Thread Johan Hartzenberg
On Thu, Jan 15, 2009 at 5:18 PM, Jim Klimov wrote: > Usecase scenario: > > I have a single server (or home workstation) with 4 HDD bays, sold with 2 > drives. > Initially the system was set up with a ZFS mirror for data slices. Now we > got 2 > more drives and want to replace the mirror with a la

Re: [zfs-discuss] Can I create ZPOOL with missing disks?

2009-01-16 Thread Daniel Rock
Jim Klimov schrieb: > Is it possible to create a (degraded) zpool with placeholders specified > instead > of actual disks (parity or mirrors)? This is possible in linux mdadm > ("missing" > keyword), so I kinda hoped this can be done in Solaris, but didn't manage to. Create sparse files with th

Re: [zfs-discuss] Can I create ZPOOL with missing disks?

2009-01-15 Thread Jonathan
Tomas Ögren wrote: > On 15 January, 2009 - Jim Klimov sent me these 1,3K bytes: > >> Is it possible to create a (degraded) zpool with placeholders specified >> instead >> of actual disks (parity or mirrors)? This is possible in linux mdadm >> ("missing" >> keyword), so I kinda hoped this can be

Re: [zfs-discuss] Can I create ZPOOL with missing disks?

2009-01-15 Thread Jim Klimov
Thanks Tomas, I haven't checked yet, but your workaround seems feasible. I've posted an RFE and referenced your approach as a workaround. That's nearly what zpool should do under the hood, and perhaps can be done temporarily with a wrapper script to detect min(physical storage sizes) ;) //Jim -

Re: [zfs-discuss] Can I create ZPOOL with missing disks?

2009-01-15 Thread Tomas Ögren
On 15 January, 2009 - Jim Klimov sent me these 1,3K bytes: > Is it possible to create a (degraded) zpool with placeholders specified > instead > of actual disks (parity or mirrors)? This is possible in linux mdadm > ("missing" > keyword), so I kinda hoped this can be done in Solaris, but didn't

Re: [zfs-discuss] Can I create ZPOOL with missing disks?

2009-01-15 Thread Richard Elling
Jim Klimov wrote: > Is it possible to create a (degraded) zpool with placeholders specified > instead > of actual disks (parity or mirrors)? This is possible in linux mdadm > ("missing" > keyword), so I kinda hoped this can be done in Solaris, but didn't manage to. > > Usecase scenario: > > I h

[zfs-discuss] Can I create ZPOOL with missing disks?

2009-01-15 Thread Jim Klimov
Is it possible to create a (degraded) zpool with placeholders specified instead of actual disks (parity or mirrors)? This is possible in linux mdadm ("missing" keyword), so I kinda hoped this can be done in Solaris, but didn't manage to. Usecase scenario: I have a single server (or home worksta