[zfs-discuss] zfs upgrade unmounts filesystems

2010-07-29 Thread Gary Mills
Zpool upgrade on this system went fine, but zfs upgrade failed:

# zfs upgrade -a
cannot unmount '/space/direct': Device busy
cannot unmount '/space/dcc': Device busy
cannot unmount '/space/direct': Device busy
cannot unmount '/space/imap': Device busy
cannot unmount '/space/log': Device busy
cannot unmount '/space/mysql': Device busy
2 filesystems upgraded

Do I have to shut down all the applications before upgrading the
filesystems?  This is on a Solaris 10 5/09 system.

-- 
-Gary Mills--Unix Group--Computer and Network Services-
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs upgrade unmounts filesystems

2010-07-29 Thread Cindy Swearingen

Hi Gary,

I found a similar zfs upgrade failure with the device busy error, which
I believe was caused by a file system mounted under another file system.

If this is the cause, I will file a bug or find an existing one.

The workaround is to unmount the nested file systems and upgrade them
individually, like this:

# zfs upgrade space/direct
# zfs upgrade space/dcc

Thanks,

Cindy

On 07/29/10 09:48, Cindy Swearingen wrote:

Hi Gary,

This should just work without having to do anything.

Looks like a bug but I haven't seen this problem before.

Anything unusual about the mount points for the file systems
identified below?

Thanks,

Cindy

On 07/29/10 07:07, Gary Mills wrote:

Zpool upgrade on this system went fine, but zfs upgrade failed:

# zfs upgrade -a
cannot unmount '/space/direct': Device busy
cannot unmount '/space/dcc': Device busy
cannot unmount '/space/direct': Device busy
cannot unmount '/space/imap': Device busy
cannot unmount '/space/log': Device busy
cannot unmount '/space/mysql': Device busy
2 filesystems upgraded

Do I have to shut down all the applications before upgrading the
filesystems?  This is on a Solaris 10 5/09 system.


___
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] zfs upgrade unmounts filesystems

2010-07-29 Thread Pawel Jakub Dawidek
On Thu, Jul 29, 2010 at 12:00:08PM -0600, Cindy Swearingen wrote:
 Hi Gary,
 
 I found a similar zfs upgrade failure with the device busy error, which
 I believe was caused by a file system mounted under another file system.
 
 If this is the cause, I will file a bug or find an existing one.
 
 The workaround is to unmount the nested file systems and upgrade them
 individually, like this:
 
 # zfs upgrade space/direct
 # zfs upgrade space/dcc

'zfs upgrade' unmounts file system first, which makes it hard to upgrade
for example root file system. The only work-around I found is to clone
root file system (clone is created with most recent version), change
root file system to newly created clone, reboot, upgrade original root
file system, change root file system back, reboot, destroy clone.

-- 
Pawel Jakub Dawidek   http://www.wheelsystems.com
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgpDwyEEJ9AAb.pgp
Description: PGP signature
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs upgrade unmounts filesystems

2010-07-29 Thread Gary Mills
On Thu, Jul 29, 2010 at 10:26:14PM +0200, Pawel Jakub Dawidek wrote:
 On Thu, Jul 29, 2010 at 12:00:08PM -0600, Cindy Swearingen wrote:
  
  I found a similar zfs upgrade failure with the device busy error, which
  I believe was caused by a file system mounted under another file system.
  
  If this is the cause, I will file a bug or find an existing one.

No, it was caused by processes active on those filesystems.

  The workaround is to unmount the nested file systems and upgrade them
  individually, like this:
  
  # zfs upgrade space/direct
  # zfs upgrade space/dcc

Except that I couldn't unmount them because the filesystems were busy.

 'zfs upgrade' unmounts file system first, which makes it hard to upgrade
 for example root file system. The only work-around I found is to clone
 root file system (clone is created with most recent version), change
 root file system to newly created clone, reboot, upgrade original root
 file system, change root file system back, reboot, destroy clone.

In this case it wasn't the root filesystem, but I still had to disable
twelve services before doing the upgrade and enable them afterwards.
`fuser -c' is useful to identify the processes.  Mapping them to
services can be difficult.  The server is essentially down during the
upgrade.

For a root filesystem, you might have to boot off the failsafe archive
or a DVD and import the filesystem in order to upgrade it.

-- 
-Gary Mills--Unix Group--Computer and Network Services-
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss