Re: [zfs-discuss] create raidz with 1 disk offline

2008-09-28 Thread MC
> [most people don't seem to know Solaris has ramdisk devices]

That is because only a select few are able to unravel the enigma wrapped in a 
clue that is solaris :)
--
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] create raidz with 1 disk offline

2008-09-28 Thread Daniel Rock
Brandon High schrieb:
> 1. Create a sparse file on an existing filesystem. The size should be
> the same as your disks.
> 2. Create the raidz with 4 of the drives and the sparse file.
> 3. Export the zpool.
> 4. Delete the sparse file
> 5. Import the zpool. It should come up as degraded, since one of its
> vdevs is missing.
> 6. Copy your files onto the zpool.
> 7. replace the file vdev with the 5th disk.

You can skip steps 3-5 and just put the sparse file offline manually 
(zpool offline ...)

I have migrated a 2x1TB mirror to a 4x1TB RAIDZ this way a few weeks ago.


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


Re: [zfs-discuss] create raidz with 1 disk offline

2008-09-28 Thread Richard Elling
Tomas Ögren wrote:
> On 27 September, 2008 - Brandon High sent me these 1,0K bytes:
>
>   
>> On Sat, Sep 27, 2008 at 4:02 PM, Marcus Sundman <[EMAIL PROTECTED]> wrote:
>> 
>>> So, is it possible to create a 5 * 1 TB raidz with 4 disks (i.e., with
>>> one disk offline)? In that case I could use one of the 1 TB disks as
>>>   
>> The official answer is no, but it might be possible to fool Solaris
>> into letting you do it. I haven't tired this, so I don't know if it'll
>> work.
>>
>> 1. Create a sparse file on an existing filesystem. The size should be
>> the same as your disks.
>> 2. Create the raidz with 4 of the drives and the sparse file.
>> 3. Export the zpool.
>> 4. Delete the sparse file
>> 5. Import the zpool. It should come up as degraded, since one of its
>> vdevs is missing.
>> 6. Copy your files onto the zpool.
>> 7. replace the file vdev with the 5th disk.
>>
>> Like I said, I haven't tried this but it might work. I'd love to hear
>> if it does.
>> 
>
> I just tried (mkfile in /tmp) on both Sol10u5 and snv97, both seems to
> work.
>   

Or use a ramdisk.  See ramdiskadm(1m)
[most people don't seem to know Solaris has ramdisk devices]
 -- richard

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


Re: [zfs-discuss] create raidz with 1 disk offline

2008-09-28 Thread Tomas Ögren
On 27 September, 2008 - Brandon High sent me these 1,0K bytes:

> On Sat, Sep 27, 2008 at 4:02 PM, Marcus Sundman <[EMAIL PROTECTED]> wrote:
> > So, is it possible to create a 5 * 1 TB raidz with 4 disks (i.e., with
> > one disk offline)? In that case I could use one of the 1 TB disks as
> 
> The official answer is no, but it might be possible to fool Solaris
> into letting you do it. I haven't tired this, so I don't know if it'll
> work.
> 
> 1. Create a sparse file on an existing filesystem. The size should be
> the same as your disks.
> 2. Create the raidz with 4 of the drives and the sparse file.
> 3. Export the zpool.
> 4. Delete the sparse file
> 5. Import the zpool. It should come up as degraded, since one of its
> vdevs is missing.
> 6. Copy your files onto the zpool.
> 7. replace the file vdev with the 5th disk.
> 
> Like I said, I haven't tried this but it might work. I'd love to hear
> if it does.

I just tried (mkfile in /tmp) on both Sol10u5 and snv97, both seems to
work.

/Tomas
-- 
Tomas Ögren, [EMAIL PROTECTED], http://www.acc.umu.se/~stric/
|- Student at Computing Science, University of Umeå
`- Sysadmin at {cs,acc}.umu.se
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] create raidz with 1 disk offline

2008-09-27 Thread Marcus Sundman
"Brandon High" <[EMAIL PROTECTED]> wrote:
> On Sat, Sep 27, 2008 at 4:02 PM, Marcus Sundman <[EMAIL PROTECTED]>
> wrote:
> > So, is it possible to create a 5 * 1 TB raidz with 4 disks (i.e.,
> > with one disk offline)?
> 
> [...]
> 1. Create a sparse file on an existing filesystem. The size should be
> the same as your disks.
> 2. Create the raidz with 4 of the drives and the sparse file.
> [...]

That's brilliant in its simplicity, and I see no reason why it wouldn't
work. (ZFS even allows a larger sparse file than the size of the file
system it's on.) I'm still waiting for my new disks and SATA-card, but
I'll send a follow-up message once I've got them and tried your trick.
Thanks!

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


Re: [zfs-discuss] create raidz with 1 disk offline

2008-09-27 Thread Brandon High
On Sat, Sep 27, 2008 at 4:02 PM, Marcus Sundman <[EMAIL PROTECTED]> wrote:
> So, is it possible to create a 5 * 1 TB raidz with 4 disks (i.e., with
> one disk offline)? In that case I could use one of the 1 TB disks as

The official answer is no, but it might be possible to fool Solaris
into letting you do it. I haven't tired this, so I don't know if it'll
work.

1. Create a sparse file on an existing filesystem. The size should be
the same as your disks.
2. Create the raidz with 4 of the drives and the sparse file.
3. Export the zpool.
4. Delete the sparse file
5. Import the zpool. It should come up as degraded, since one of its
vdevs is missing.
6. Copy your files onto the zpool.
7. replace the file vdev with the 5th disk.

Like I said, I haven't tried this but it might work. I'd love to hear
if it does.

-B

-- 
Brandon High : [EMAIL PROTECTED]
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss