Re: [zfs-discuss] zpool split failing

2012-04-17 Thread Cindy Swearingen

Hi Matt,

Regarding this issue:

>As an aside, I have noticed that on the old laptop, it would not boot
>if the USB part of the mirror was not attached to the laptop,
>successful boot could only be achieved when both mirror devices were
>online. Is this a know issue with ZFS ? bug ?

Which Solaris release is this? I see related bugs are fixed so I'm
not sure what is going on here.

I detach mirrored root pool disks and booting is not impacted. The
best method is to let ZFS know that the device is detached before
the reboot, like this:

# zpool detach rpool usb-disk

Thanks,

Cindy


On 04/17/12 04:47, Matt Keenan wrote:

Hi Cindy,

Tried out your example below in a vbox env, and detaching a device from
a pool makes that device simply unavailable. and simply cannot be
re-imported.

I then tried setting up a mirrored rpool within a vbox env, agreed one
device is not USB however, when booted into the rpool, split worked, I
then tried booting directly into the rpool on the faulty laptop, and
split still failed.

My only conclusion for failure is
- The rpool I'm attempting to split has a LOT of history been around for
some 2 years now, so has gone through a lot of upgrades etc, there may
be some ZFS history there that's not letting this happen, BTW the
version is 33 which is current.
- or is it possible that one of the devices being a USB device is
causing the failure ? I don't know.

My reason for splitting the pool was so I could attach the clean USB
rpool to another laptop and simply attach the disk from the new laptop,
let it resilver, installgrub to new laptop disk device and boot it up
and I would be back in action.

As a workaround I'm trying to simply attach my USB rpool to the new
laptop and use zfs replace to effectively replace the offline device
with the new laptop disk device. So far so good, 12% resilvering, so
fingers crossed this will work.

As an aside, I have noticed that on the old laptop, it would not boot if
the USB part of the mirror was not attached to the laptop, successful
boot could only be achieved when both mirror devices were online. Is
this a know issue with ZFS ? bug ?

cheers

Matt


On 04/16/12 10:05 PM, Cindy Swearingen wrote:

Hi Matt,

I don't have a way to reproduce this issue and I don't know why
this is failing. Maybe someone else does. I know someone who
recently split a root pool running the S11 FCS release without
problems.

I'm not a fan of root pools on external USB devices.

I haven't tested these steps in a while but you might try
these steps instead. Make sure you have a recent snapshot
of your rpool on the unhealthy laptop.

1. Ensure that the existing root pool and disks are healthy.

# zpool status -x

2. Detach the USB disk.

# zpool detach rpool disk-name

3. Connect the USB disk to the new laptop.

4. Force import the pool on the USB disk.

# zpool import -f rpool rpool2

5. Device cleanup steps, something like:

Boot from media and import rpool2 as rpool.
Make sure the device info is visible.
Reset BIOS to boot from this disk.

On 04/16/12 04:12, Matt Keenan wrote:

Hi

Attempting to split a mirrored rpool and fails with error :

Unable to split rpool: pool already exists


I have a laptop with main disk mirrored to an external USB. However as
the laptop is not too healthy I'd like to split the pool into two pools
and attach the external drive to another laptop and mirror it to the new
laptop.

What I did :

- Booted laptop into an live DVD

- Import the rpool:
$ zpool import rpool

- Attempt to split :
$ zpool split rpool rpool-ext"

- Error message shown and split fails :
Unable to split rpool: pool already exists

- So I tried exporting the pool
and re-importing with a different name and I still get the same
error. There are no other zpools on the system, both zpool list and
zpool export return nothing other than the rpool I've just imported.

I'm somewhat stumped... any ideas ?

cheers

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



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


Re: [zfs-discuss] zpool split failing

2012-04-17 Thread Matt Keenan

On 04/17/12 01:00 PM, Jim Klimov wrote:

2012-04-17 14:47, Matt Keenan wrote:

- or is it possible that one of the devices being a USB device is
causing the failure ? I don't know.


Might be, I've got little experience with those beside LiveUSB
imagery ;)


My reason for splitting the pool was so I could attach the clean USB
rpool to another laptop and simply attach the disk from the new laptop,
let it resilver, installgrub to new laptop disk device and boot it up
and I would be back in action.


If the USB disk split-off were to work, I'd rather try booting
the laptop off the USB disk, if BIOS permits, or I'd boot off
a LiveCD/LiveUSB (if Solaris 11 has one - or from installation
media and break out into a shell) and try to import the rpool
from USB disk and then attach the laptop's disk to it to resilver.


This is exactly what I am doing, booted new laptop into LiveCD, imported 
USB pool, and zpool replacing the old laptop disk device which is in 
degraded state, with the new laptop disk device (after I partitioned to 
keep windows install).





As a workaround I'm trying to simply attach my USB rpool to the new
laptop and use zfs replace to effectively replace the offline device
with the new laptop disk device. So far so good, 12% resilvering, so
fingers crossed this will work.


Won't this overwrite the USB disk with the new laptop's (empty)
disk? The way you describe it...


No the offline disk in this instance is the old laptop's internal disk, 
the online device is the USB drive.





As an aside, I have noticed that on the old laptop, it would not boot if
the USB part of the mirror was not attached to the laptop, successful
boot could only be achieved when both mirror devices were online. Is
this a know issue with ZFS ? bug ?


Shouldn't be as mirrors are to protect against the disk failures.
What was your rpool's "failmode" zpool-level attribute?
It might have some relevance, but should define kernel's reaction
to "catastrophic failures" of the pool, and loss of a mirror's
side IMHO should not be one?.. Try failmode=continue and see if
that helps the rpool, to be certain. I think that's what the
installer should have done.


Exactly what I would have thought ZFS should actually help here not 
hinder. From what I can see the default failmode as set by install is 
"wait" which is exactly what is happening when I attempt to boot.


Just tried setting zpool failmode=continue and unfortunately still fails 
to boot, failmode=wait is definitely the default.


cheers

Matt

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


Re: [zfs-discuss] zpool split failing

2012-04-17 Thread Jim Klimov

2012-04-17 14:47, Matt Keenan wrote:

- or is it possible that one of the devices being a USB device is
causing the failure ? I don't know.


Might be, I've got little experience with those beside LiveUSB
imagery ;)


My reason for splitting the pool was so I could attach the clean USB
rpool to another laptop and simply attach the disk from the new laptop,
let it resilver, installgrub to new laptop disk device and boot it up
and I would be back in action.


If the USB disk split-off were to work, I'd rather try booting
the laptop off the USB disk, if BIOS permits, or I'd boot off
a LiveCD/LiveUSB (if Solaris 11 has one - or from installation
media and break out into a shell) and try to import the rpool
from USB disk and then attach the laptop's disk to it to resilver.


As a workaround I'm trying to simply attach my USB rpool to the new
laptop and use zfs replace to effectively replace the offline device
with the new laptop disk device. So far so good, 12% resilvering, so
fingers crossed this will work.


Won't this overwrite the USB disk with the new laptop's (empty)
disk? The way you describe it...


As an aside, I have noticed that on the old laptop, it would not boot if
the USB part of the mirror was not attached to the laptop, successful
boot could only be achieved when both mirror devices were online. Is
this a know issue with ZFS ? bug ?


Shouldn't be as mirrors are to protect against the disk failures.
What was your rpool's "failmode" zpool-level attribute?
It might have some relevance, but should define kernel's reaction
to "catastrophic failures" of the pool, and loss of a mirror's
side IMHO should not be one?.. Try failmode=continue and see if
that helps the rpool, to be certain. I think that's what the
installer should have done.



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


Re: [zfs-discuss] zpool split failing

2012-04-17 Thread Matt Keenan

Hi Cindy,

Tried out your example below in a vbox env, and detaching a device from 
a pool makes that device simply unavailable. and simply cannot be 
re-imported.


I then tried setting up a mirrored rpool within a vbox env, agreed one 
device is not USB however, when booted into the rpool, split worked, I 
then tried booting directly into the rpool on the faulty laptop, and 
split still failed.


My only conclusion for failure is
 - The rpool I'm attempting to split has a LOT of history been around 
for some 2 years now, so has gone through a lot of upgrades etc, there 
may be some ZFS history there that's not letting this happen, BTW the 
version is 33 which is current.
- or is it possible that one of the devices being a USB device is 
causing the failure ? I don't know.


My reason for splitting the pool was so I could attach the clean USB 
rpool to another laptop and simply attach the disk from the new laptop, 
let it resilver, installgrub to new laptop disk device and boot it up 
and I would be back in action.


As a workaround I'm trying to simply attach my USB rpool to the new 
laptop and use zfs replace to effectively replace the offline device 
with the new laptop disk device. So far so good, 12% resilvering, so 
fingers crossed this will work.


As an aside, I have noticed that on the old laptop, it would not boot if 
the USB part of the mirror was not attached to the laptop, successful 
boot could only be achieved when both mirror devices were online. Is 
this a know issue with ZFS ? bug ?


cheers

Matt


On 04/16/12 10:05 PM, Cindy Swearingen wrote:

Hi Matt,

I don't have a way to reproduce this issue and I don't know why
this is failing. Maybe someone else does. I know someone who
recently split a root pool running the S11 FCS release without
problems.

I'm not a fan of root pools on external USB devices.

I haven't tested these steps in a while but you might try
these steps instead. Make sure you have a recent snapshot
of your rpool on the unhealthy laptop.

1. Ensure that the existing root pool and disks are healthy.

# zpool status -x

2. Detach the USB disk.

# zpool detach rpool disk-name

3. Connect the USB disk to the new laptop.

4. Force import the pool on the USB disk.

# zpool import -f rpool rpool2

5. Device cleanup steps, something like:

Boot from media and import rpool2 as rpool.
Make sure the device info is visible.
Reset BIOS to boot from this disk.

On 04/16/12 04:12, Matt Keenan wrote:

Hi

Attempting to split a mirrored rpool and fails with error :

Unable to split rpool: pool already exists


I have a laptop with main disk mirrored to an external USB. However as
the laptop is not too healthy I'd like to split the pool into two pools
and attach the external drive to another laptop and mirror it to the new
laptop.

What I did :

- Booted laptop into an live DVD

- Import the rpool:
$ zpool import rpool

- Attempt to split :
$ zpool split rpool rpool-ext"

- Error message shown and split fails :
Unable to split rpool: pool already exists

- So I tried exporting the pool
and re-importing with a different name and I still get the same
error. There are no other zpools on the system, both zpool list and
zpool export return nothing other than the rpool I've just imported.

I'm somewhat stumped... any ideas ?

cheers

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


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


Re: [zfs-discuss] zpool split failing

2012-04-16 Thread Cindy Swearingen

Hi Matt,

I don't have a way to reproduce this issue and I don't know why
this is failing. Maybe someone else does. I know someone who
recently split a root pool running the S11 FCS release without
problems.

I'm not a fan of root pools on external USB devices.

I haven't tested these steps in a while but you might try
these steps instead. Make sure you have a recent snapshot
of your rpool on the unhealthy laptop.

1. Ensure that the existing root pool and disks are healthy.

# zpool status -x

2. Detach the USB disk.

# zpool detach rpool disk-name

3. Connect the USB disk to the new laptop.

4. Force import the pool on the USB disk.

# zpool import -f rpool rpool2

5. Device cleanup steps, something like:

Boot from media and import rpool2 as rpool.
Make sure the device info is visible.
Reset BIOS to boot from this disk.

On 04/16/12 04:12, Matt Keenan wrote:

Hi

Attempting to split a mirrored rpool and fails with error :

Unable to split rpool: pool already exists


I have a laptop with main disk mirrored to an external USB. However as
the laptop is not too healthy I'd like to split the pool into two pools
and attach the external drive to another laptop and mirror it to the new
laptop.

What I did :

- Booted laptop into an live DVD

- Import the rpool:
$ zpool import rpool

- Attempt to split :
$ zpool split rpool rpool-ext"

- Error message shown and split fails :
Unable to split rpool: pool already exists

- So I tried exporting the pool
and re-importing with a different name and I still get the same
error. There are no other zpools on the system, both zpool list and
zpool export return nothing other than the rpool I've just imported.

I'm somewhat stumped... any ideas ?

cheers

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

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


[zfs-discuss] zpool split failing

2012-04-16 Thread Matt Keenan

Hi

Attempting to split a mirrored rpool and fails with error :

  Unable to split rpool: pool already exists


I have a laptop with main disk mirrored to an external USB. However as 
the laptop is not too healthy I'd like to split the pool into two pools 
and attach the external drive to another laptop and mirror it to the new 
laptop.


What I did :

- Booted laptop into an live DVD

- Import the rpool:
  $ zpool import rpool

- Attempt to split :
  $ zpool split rpool rpool-ext"

- Error message shown and split fails :
  Unable to split rpool: pool already exists

- So I tried exporting the pool
  and re-importing  with a different name and I still get the same
  error. There are no other zpools on the system, both zpool list and
  zpool export return nothing other than the rpool I've just imported.

I'm somewhat stumped... any ideas ?

cheers

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