[zfs-discuss] convert raidz from osx

2009-10-08 Thread dirk schelfhout
I am converting a 4 disk raidz from osx to opensolaris. And I want to keep the 
data intact.
I want zfs to get access to the full disk instead of a slice.
I believe like c8d0 instead off c8d0s1.
I wanted to do this 1 disk at a time and let it resilver.
what is the proper way to do this.
I tried, I believe from memory : zpool replace -f rpool c8d1s1 c8d1
but it didn't let me do that.
then I tried to put the disk offline first , but same result.

Thanks,

Dirk
-- 
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] convert raidz from osx

2009-10-08 Thread Cindy Swearingen

Dirk,

I'm not sure I'm following you exactly but this is what I think you are
trying to do:

You have a RAIDZ pool that is built with slices and you are trying to
convert the slice configuration to whole disks. This isn't possible
because you are trying replace the same disk. This is what happens:

# zpool create test raidz c0t4d0s0 c0t5d0s0 c0t6d0s0
# zpool replace test c0t6d0s0 c0t6d0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c0t6d0s0 is part of active ZFS pool test. Please see zpool(1M).

You could replace the disk slice with a different disk like this:

# zpool replace test c0t6d0s0 c0t7d0

If you don't have any additional disks then I think you will have to
backup the data and recreate the pool. Maybe someone else has a better
idea.

Also, you refer to rpool, which is the default name of the ZFS root
pool in the Opensolaris release. This pool cannot be RAIDZ pool nor
can it contain whole disks. It must be created with disk slices.

Cindy

On 10/08/09 02:15, dirk schelfhout wrote:

I am converting a 4 disk raidz from osx to opensolaris. And I want to keep the 
data intact.
I want zfs to get access to the full disk instead of a slice.
I believe like c8d0 instead off c8d0s1.
I wanted to do this 1 disk at a time and let it resilver.
what is the proper way to do this.
I tried, I believe from memory : zpool replace -f rpool c8d1s1 c8d1
but it didn't let me do that.
then I tried to put the disk offline first , but same result.

Thanks,

Dirk

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


Re: [zfs-discuss] convert raidz from osx

2009-10-08 Thread Dirk Schelfhout

yes, that was what I was doing.
I wanted to give the raidz whole disks because grub didn't want to  
install.

(  I forgot which command I used . bootadm ? )
I have another slice free on a shared disk with osx and win7 but I  am  
having problems with grub.
I will try that again and document it so I can ask a proper question  
about it.
As the installer has problems and I couldn't get  the fdisk workaround  
to work with the osol-1002-118-x86.iso

Dirk
On 08 Oct 2009, at 16:03, Cindy Swearingen wrote:


Dirk,

I'm not sure I'm following you exactly but this is what I think you  
are

trying to do:

You have a RAIDZ pool that is built with slices and you are trying to
convert the slice configuration to whole disks. This isn't possible
because you are trying replace the same disk. This is what happens:

# zpool create test raidz c0t4d0s0 c0t5d0s0 c0t6d0s0
# zpool replace test c0t6d0s0 c0t6d0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c0t6d0s0 is part of active ZFS pool test. Please see zpool 
(1M).


You could replace the disk slice with a different disk like this:

# zpool replace test c0t6d0s0 c0t7d0

If you don't have any additional disks then I think you will have to
backup the data and recreate the pool. Maybe someone else has a better
idea.

Also, you refer to rpool, which is the default name of the ZFS root
pool in the Opensolaris release. This pool cannot be RAIDZ pool nor
can it contain whole disks. It must be created with disk slices.

Cindy

On 10/08/09 02:15, dirk schelfhout wrote:
I am converting a 4 disk raidz from osx to opensolaris. And I want  
to keep the data intact.

I want zfs to get access to the full disk instead of a slice.
I believe like c8d0 instead off c8d0s1.
I wanted to do this 1 disk at a time and let it resilver.
what is the proper way to do this.
I tried, I believe from memory : zpool replace -f rpool c8d1s1 c8d1
but it didn't let me do that.
then I tried to put the disk offline first , but same result.
Thanks,
Dirk


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