Sponsored Content
Operating Systems Solaris zfs cannot unmount (cannot unshare) Post 302550537 by RychnD on Friday 26th of August 2011 04:33:01 AM
Old 08-26-2011
zfs cannot unmount (cannot unshare)

I have installed Solaris 11 Express on my machine, created a raidz2 zpool named shares and set up sharing (zfs set sharesmb=on shares). I also created a script for automatic backuping using snapshots.

Everything worked fine. But yesterday I tried recovering from one of those backuped snapshots:

Code:
zpool destroy shares
zpool create raidz2 shares ... 
zfs unmount shares
zfs send backup/shares@... | zfs receive -F shares
zfs mount shares
sharemgr start -P smb zfs

The restoration seems to have succeeded, even sharing works. But now I cannot unmount the shares filesystem.

Code:
zfs unmount shares

yields this output: cannot unshare 'shares': not found: unshare(1M) failed

I tried to play with unshare for a while but did not succeed.

Thanks for your help,
Dusan
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

[FreeBSD] Unable to unmount

I have mounted an ISO-file to do a network install of Red Hat. Afterwards, I removed the ISO and forgot about the mount. Now, I am unable to unmount this mount, because the target no longer exists... Here's the error I get when I try to unmount: Even if I put all the files back and... (6 Replies)
Discussion started by: indo1144
6 Replies

2. AIX

how do i unmount ?

hi all, I am new to AIX as well as UNIX also ,i have a question One of my program has created a new filesystem on the system..... df shows : /dev/fslv04 2031616 2030648 1% 3 1% /replicas/source when i tried to umount the above filesystem by umount... (3 Replies)
Discussion started by: vamshi_k
3 Replies

3. HP-UX

Cannot unmount mount points??

When taking a snap, I have a script that stops any active snap. When running the script, I'm getting a message that u02 and u04 are already mounted. How can I find out what process(es) is/are latching on the these mount points? Thank you for your time. (1 Reply)
Discussion started by: genzbeat
1 Replies

4. AIX

Unmount strongly command

Dear Guy's I'm making script to easier my work to mount and unmount some file systems I'm executing this command umount -f /file_system To unmount the file system but some times is not allow the un mounting it's giving me device is busy ... I want to know is there any another... (2 Replies)
Discussion started by: ITHelper
2 Replies

5. Filesystems, Disks and Memory

Can we unmount device?

Hi, I know that if we need to unmount a device, we use the command umount mount-point, example 'umount /tmp/mount1' But We can also unmount the device with device name example 'umount /dev/hda6'. NOTE: I think in RHEL3 we cannot unmount with device name. Correct me if I am wrong. What... (1 Reply)
Discussion started by: praveen_b744
1 Replies

6. Shell Programming and Scripting

Unmount USB disk

Hi, How can I unmount an usb disk using the command umount? (3 Replies)
Discussion started by: Guccio
3 Replies

7. Solaris

NFS: Cannot unshare directory.

Hi, I'm currently having a problem unsharing a directory. When I specify the command. Below is an example of the problem. Any ideas? # share - /test/dir1 rw "" - /test/dir2 root=10.0.0.1,root=10.0.0.1 "" - /test/dir3 root=10.11.1.1,root=10.11.1.1 "" - /test/dir4... (6 Replies)
Discussion started by: sparcman
6 Replies

8. UNIX for Dummies Questions & Answers

unmount the partition

Dear all, I have a two hard drive.On the second (/dev/sdb1 and /dev/sdb2) hard drive i have two partitions. The /dev/sdb2 has been mounted on the /home2 directory.I want to unmount that /dev/sdb2.I have no idea to how to do it.Can anybody give me the details about that?. Regards, Prakashkumar.S (2 Replies)
Discussion started by: prakashkumar41
2 Replies

9. Shell Programming and Scripting

Unmount files via script

Hi all, I have a requirement to do an upgrade. As part of that upgrade I have to unmounts files in the fstab (there could be 100's), is there a way I can do this via script? The problem is, is that the mount points on every server will be different.... For example: /u001/oradata/T865 ... (4 Replies)
Discussion started by: gartie
4 Replies

10. AIX

Filesystem unable unmount

Hi all , I have issue oracle filesystem name /oracle/SID unable to unmount even though no any process are running mentioned fs .would appreciate anyone assist further high level .my system running aix 6.1 (7 Replies)
Discussion started by: Arulji
7 Replies
ZFS-FUSE(8)							  [FIXME: manual]						       ZFS-FUSE(8)

NAME
zfs-fuse - ZFS filesystem daemon SYNOPSIS
zfs-fuse [--pidfile filename] [--no-daemon] [--no-kstat-mount] [--disable-block-cache] [--disable-page-cache] [--fuse-attr-timeout SECONDS] [--fuse-entry-timeout SECONDS] [--log-uberblocks] [--max-arc-size MB] [--fuse-mount-options OPT,OPT,OPT...] [--min-uberblock-txg MIN] [--stack-size=size] [--enable-xattr] [--help] DESCRIPTION
This manual page documents briefly the zfs-fuse command. zfs-fuse is a daemon which provides support for the ZFS filesystem, via fuse. Ordinarily this daemon will be invoked from system boot scripts. OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. -h --help Show summary of options. -p filename --pidfile filename Write the daemon's PID to filename after daemonizing. Ignored if --no-daemon is passed. filename should be a fully-qualified path. -n --no-daemon Stay in foreground, don't daemonize. --no-kstat-mount Do not mount kstats in /zfs-kstat --disable-block-cache Enable direct I/O for disk operations. Completely disables caching reads and writes in the kernel block cache. Breaks mmap() in ZFS datasets too. --disable-page-cache Disable the page cache for files residing within ZFS filesystems. Not recommended as it slows down I/O operations considerably. -a SECONDS --fuse-attr-timeout SECONDS Sets timeout for caching FUSE attributes in kernel. Defaults to 0.0. Higher values give a 40% performance boost. -e SECONDS --fuse-entry-timeout SECONDS Sets timeout for caching FUSE entries in kernel. Defaults to 0.0. Higher values give a 10000% performance boost but cause file permission checking security issues. --log-uberblocks Logs uberblocks of any mounted filesystem to syslog -m MB --max-arc-size MB Forces the maximum ARC size (in megabytes). Range: 16 to 16384. -o OPT... --fuse-mount-options OPT,OPT,OPT... Sets FUSE mount options for all filesystems. Format: comma-separated string of characters. -u MIN --min-uberblock-txg MIN Skips uberblocks with a TXG < MIN when mounting any fs -v MB --vdev-cache-size MB adjust the size of the vdev cache. Default : 10 --zfs-prefetch-disable Disable the high level prefetch cache in zfs. This thing can eat up to 150 Mb of ram, maybe more --stack-size=size Limit the stack size of threads (in kb). default : no limit (8 Mb for linux) -x --enable-xattr Enable support for extended attributes. Not generally recommended because it currently has a significant performance penalty for many small IOPS -h --help Show this usage summary. REMARKS ON PRECEDENCE
Note that the parameters passed on the command line take precedence over those supplied through /etc/zfs/zfsrc. BUGS
/CAVEATS The path to the configuration file (/etc/zfs/zfsrc) cannot at this time be configured. Most existing packages suggest settings can be set at the top of their init script. These get frequently overridden by a (distribution specific) /etc/default/zfs-fuse file, if it exists. Be sure to look at these places if you want your changes to options to take effect. The /etc/zfs/zfsrc is going to be the recommended approach in the future. So, packagers, please refrain from passing commandline parameters within the initscript (except for --pid-file). SEE ALSO
zfs (8), zpool (8), zdb(8), zstreamdump(8), /etc/zfs/zfsrc AUTHOR
This manual page was written by Bryan Donlan bdonlan@gmail.com for the Debian(TM) system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation, or the Common Development and Distribution License. Revised by Seth Heeren zfs-fuse@sehe.nl On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. The text of the Common Development and Distribution Licence may be found at /usr/share/doc/zfs-fuse/copyright COPYRIGHT
Copyright (C) 2010 Bryan Donlan [FIXME: source] 2010-06-09 ZFS-FUSE(8)
All times are GMT -4. The time now is 11:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy