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

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

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 an

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

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 w

[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

Re: [zfs-discuss] zpool split how it works?

2010-11-15 Thread Craig Cory
>From the OpenSolaris ZFS FAQ page: http://hub.opensolaris.org/bin/view/Community+Group+zfs/faq > If you want to use a hardware-level backup or snapshot feature instead of the ZFS snapshot feature, then you will need to do the following steps: * zpool export pool-name * Hardware-level sn

Re: [zfs-discuss] zpool split how it works?

2010-11-10 Thread sridhar surampudi
Hi Darren, Thanks for your info. Sorry below might be lengthy : Yes I am looking for actual implementation rather how to use zpool split. My requirement is not at zfs file system level and also not zfs snapshot. As I understood, If my zpool say mypool is created using " zpool create mypool

[zfs-discuss] zpool split how it works?

2010-11-10 Thread sridhar surampudi
Hi, I was wondering how zpool split works or implemented. If a pool pool1 is on a mirror having two devices dev1 and dev2 then using zpool split I can split with the new pool name say pool-mirror on dev2. How split can change metadata on dev2 and rename/replace and associate with new name i.e

Re: [zfs-discuss] zpool split how it works?

2010-11-10 Thread Mark J Musante
On Wed, 10 Nov 2010, Darren J Moffat wrote: On 10/11/2010 11:18, sridhar surampudi wrote: I was wondering how zpool split works or implemented. Or are you really asking about the implementation details ? If you want to know how it is implemented then you need to read the source code. Also

Re: [zfs-discuss] zpool split how it works?

2010-11-10 Thread Darren J Moffat
On 10/11/2010 11:18, sridhar surampudi wrote: I was wondering how zpool split works or implemented. If a pool pool1 is on a mirror having two devices dev1 and dev2 then using zpool split I can split with the new pool name say pool-mirror on dev2. How split can change metadata on dev2 and renam

Re: [zfs-discuss] zpool split problem?

2010-04-01 Thread Miles Nordin
> "la" == Lori Alt writes: la> I'm only pointing out that eliminating the zpool.cache file la> would not enable root pools to be split. More work is la> required for that. makes sense. All the same, please do not retaliate against the bug-opener by adding a lazy-assertion to pr

Re: [zfs-discuss] zpool split problem?

2010-04-01 Thread Lori Alt
You might want to take this issue over to caiman-disc...@opensolaris.org, because this is more of an installation/management issue than a zfs issue. Other than providing a mechanism for updating the zpool.cache file, the actions listed below are not directly related to zfs. I believe that th

Re: [zfs-discuss] zpool split problem?

2010-04-01 Thread lori.alt
You might want to take this issue over to caiman-disc...@opensolaris.org, because this is more of an installation/management issue than a zfs issue. Other than providing a mechanism for updating the zpool.cache file, the actions listed below are not directly related to zfs. I believe that th

Re: [zfs-discuss] zpool split problem?

2010-04-01 Thread Damon Atkins
> You mean /usr/sbin/sys-unconfig? No, it does not reset a system back far enough. You still left with the orginal path_to_inst and the device tree. e.g. take a disk to a different system and the first disk might end up being sd10 and c15t0d0s0 instead of sd0 and c0 without cleaning up the system

Re: [zfs-discuss] zpool split problem?

2010-04-01 Thread Mark J Musante
> It would be nice for Oracle/Sun to produce a separate > script which reset system/devices back to a install > like beginning so if you move a OS disk with current > password file and software from one system to > another, and have it rebuild the device tree on the > new system. You mean /usr/sbi

Re: [zfs-discuss] zpool split problem?

2010-04-01 Thread Darren J Moffat
On 31/03/2010 16:19, Mark J Musante wrote: On Wed, 31 Mar 2010, Damon Atkins wrote: Why do we still need "/etc/zfs/zpool.cache" file??? The cache file contains a list of pools to import, not a list of pools that exist. If you do a "zpool export foo" and then reboot, we don't want foo to be im

Re: [zfs-discuss] zpool split problem?

2010-04-01 Thread Lori Alt
On 03/31/10 03:50 AM, Damon Atkins wrote: Why do we still need "/etc/zfs/zpool.cache" file??? (I could understand it was useful when zfs import was slow) zpool import is now multi-threaded (http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6844191), hence a lot faster, each disk cont

Re: [zfs-discuss] zpool split problem?

2010-04-01 Thread Mark J Musante
On Wed, 31 Mar 2010, Damon Atkins wrote: Why do we still need "/etc/zfs/zpool.cache" file??? The cache file contains a list of pools to import, not a list of pools that exist. If you do a "zpool export foo" and then reboot, we don't want foo to be imported after boot completes. Unfortunat

Re: [zfs-discuss] zpool split problem?

2010-03-31 Thread Damon Atkins
I assume the swap, dumpadm, grub is because the pool has a different name now, but is it still a problem if you take it to a *different system* boot off a CD change it back to rpool. (which is most likley unsupported, ie no help to get it working) Over 10 years ago (way before flash archive exi

Re: [zfs-discuss] zpool split problem?

2010-03-31 Thread lori.alt
On 03/31/10 10:42 AM, Frank Middleton wrote: On 03/31/10 12:21 PM, lori.alt wrote: The problem with splitting a root pool goes beyond the issue of the zpool.cache file. If you look at the comments for 6939334 , you will see other files whose co

Re: [zfs-discuss] zpool split problem?

2010-03-31 Thread Frank Middleton
On 03/31/10 12:21 PM, lori.alt wrote: The problem with splitting a root pool goes beyond the issue of the zpool.cache file. If you look at the comments for 6939334 , you will see other files whose content is not correct when a root pool is renam

Re: [zfs-discuss] zpool split problem?

2010-03-31 Thread Richard Elling
On Mar 31, 2010, at 2:50 AM, Damon Atkins wrote: > Why do we still need "/etc/zfs/zpool.cache" file??? > (I could understand it was useful when zfs import was slow) Yes. Imagine the case where your server has access to hundreds of LUs. If you must probe each one, then booting can take a long tim

Re: [zfs-discuss] zpool split problem?

2010-03-31 Thread lori.alt
On 03/31/10 03:50 AM, Damon Atkins wrote: Why do we still need "/etc/zfs/zpool.cache" file??? (I could understand it was useful when zfs import was slow) zpool import is now multi-threaded (http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6844191), hence a lot faster, each disk cont

Re: [zfs-discuss] zpool split problem?

2010-03-31 Thread Damon Atkins
Why do we still need "/etc/zfs/zpool.cache" file??? (I could understand it was useful when zfs import was slow) zpool import is now multi-threaded (http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6844191), hence a lot faster, each disk contains the hostname (http://bugs.opensolaris

Re: [zfs-discuss] zpool split problem?

2010-03-30 Thread Mark J Musante
OK, I see what the problem is: the /etc/zfs/zpool.cache file. When the pool was split, the zpool.cache file was also split - and the split happens prior to the config file being updated. So, after booting off the split side of the mirror, zfs attempts to mount rpool based on the information in

Re: [zfs-discuss] zpool split problem?

2010-03-29 Thread Mark J Musante
On Sat, 27 Mar 2010, Frank Middleton wrote: Started with c0t1d0s0 running b132 (root pool is called rpool) Attached c0t0d0s0 and waited for it to resilver Rebooted from c0t0d0s0 zpool split rpool spool Rebooted from c0t0d0s0, both rpool and spool were mounted Rebooted from c0t1d0s0, only rpool

[zfs-discuss] zpool split problem?

2010-03-27 Thread Frank Middleton
Zpool split is a wonderful feature and it seems to work well, and the choice of which disk got which name was perfect! But there seems to be an odd anomaly (at least with b132) . Started with c0t1d0s0 running b132 (root pool is called rpool) Attached c0t0d0s0 and waited for it to resilver Reboot

[zfs-discuss] zpool split

2010-01-06 Thread Jerry K
zpool split http://blogs.sun.com/mmusante/entry/seven_years_of_good_luck I came across this around noon today, originally on http://c0t0d0s0.org . More here: http://opensolaris.org/jive/thread.jspa?threadID=113685&tstart=60 Too bad this probably won't make it to the final release of OpenSola

Re: [zfs-discuss] zpool split

2007-01-25 Thread Matthew Ahrens
Dick Davies wrote: On 25/01/07, Adam Leventhal <[EMAIL PROTECTED]> wrote: On Wed, Jan 24, 2007 at 08:52:47PM +, Dick Davies wrote: > that's an excellent feature addition, look forward to it. > Will it be accompanied by a 'zfs join'? Out of curiosity, what will you (or anyone else) use this

Re: [zfs-discuss] zpool split

2007-01-25 Thread Torrey McMahon
Darren J Moffat wrote: What problem are you actually trying to solve ? Just because you did something this way in the SVM world doesn't mean that there should be a 1:1 in the ZFS world - there might be but it doesn't follow that there should be. If I had to guess... I want to quickly sh

Re: [zfs-discuss] zpool split

2007-01-24 Thread Dick Davies
On 25/01/07, Adam Leventhal <[EMAIL PROTECTED]> wrote: On Wed, Jan 24, 2007 at 08:52:47PM +, Dick Davies wrote: > that's an excellent feature addition, look forward to it. > Will it be accompanied by a 'zfs join'? Out of curiosity, what will you (or anyone else) use this for? If the idea is

Re: [zfs-discuss] zpool split

2007-01-24 Thread Dick Davies
On 23/01/07, Darren J Moffat <[EMAIL PROTECTED]> wrote: Can you pick another name for this please because that name has already been suggested for zfs(1) where the argument is a directory in an existing ZFS file system and the result is that the directory becomes a new ZFS file system while reta

Re: [zfs-discuss] zpool split

2007-01-23 Thread Darren J Moffat
Nicolas Williams wrote: On Tue, Jan 23, 2007 at 04:49:38PM +, Darren J Moffat wrote: Jeremy Teo wrote: I'm defining "zpool split" as the ability to divide a pool into 2 separate pools, each with identical FSes. The typical use case would be to split a N disk mirrored pool into a N-1 pool an

Re: [zfs-discuss] zpool split

2007-01-23 Thread Nicolas Williams
On Tue, Jan 23, 2007 at 04:49:38PM +, Darren J Moffat wrote: > Jeremy Teo wrote: > >I'm defining "zpool split" as the ability to divide a pool into 2 > >separate pools, each with identical FSes. The typical use case would > >be to split a N disk mirrored pool into a N-1 pool and a 1 disk pool,

Re: [zfs-discuss] zpool split

2007-01-23 Thread Darren J Moffat
Jeremy Teo wrote: I'm defining "zpool split" as the ability to divide a pool into 2 separate pools, each with identical FSes. The typical use case would be to split a N disk mirrored pool into a N-1 pool and a 1 disk pool, and then transport the 1 disk pool to another machine. Can you pick anot

[zfs-discuss] zpool split

2007-01-23 Thread Jeremy Teo
I'm defining "zpool split" as the ability to divide a pool into 2 separate pools, each with identical FSes. The typical use case would be to split a N disk mirrored pool into a N-1 pool and a 1 disk pool, and then transport the 1 disk pool to another machine. While contemplating "zpool split" fun