I''m running snv_28. I created a pool called "swap". I get an
error when trying to destroy it or change the mountpoint. I believe this is
because it is confusing it with the entry for my swap partition in /etc/mnttab.
bash-3.00# zpool destroy swap
cannot unmount ''/etc/svc/volatile'': Device busy
could not destroy ''swap'': could not unmount datasets
bash-3.00# zfs set mountpoint=/foo swap
cannot unmount ''/etc/svc/volatile'': Device busy
bash-3.00# zpool status swap
pool: swap
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
swap ONLINE 0 0 0
/zfstest/swapfile ONLINE 0 0 0
bash-3.00# zpool list swap
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
swap 2.98G 44.5K 2.98G 0% ONLINE -
bash-3.00# zfs get mountpoint swap
NAME PROPERTY VALUE SOURCE
swap mountpoint /swap default
bash-3.00# df -k | egrep "swap|File"
Filesystem kbytes used avail capacity Mounted on
swap 422176 572 421604 1% /etc/svc/volatile
swap 421864 260 421604 1% /tmp
swap 421632 28 421604 1% /var/run
swap 3104896 8 3104853 1% /swap
bash-3.00# cat /etc/mnttab | grep swap
swap /etc/svc/volatile tmpfs xattr,dev=4480001 1136940872
swap /tmp tmpfs xattr,dev=4480002 1136940893
swap /var/run tmpfs xattr,dev=4480003 1136940893
swap /swap zfs rw,devices,setuid,exec,atime,dev=2d90019
1139004158
bash-3.00# uname -a
SunOS unknown 5.11 snv_28 i86pc i386 i86pc
This message posted from opensolaris.org