zfs configuration
Hi All, So I use zfs for the root file system. Works well. However now I want to move /tmp to ram-disk (memory disk or what ever). When I try to unmount /tmp with the zfs command of course it won't because its busy. With ufs I would just edit fstab and reboot what do I don with zfs?? Thx in advance... Don 8( ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zfs configuration
On 2013-01-21 09:50, Don Dugger wrote: Hi All, So I use zfs for the root file system. Works well. However now I want to move /tmp to ram-disk (memory disk or what ever). When I try to unmount /tmp with the zfs command of course it won't because its busy. With ufs I would just edit fstab and reboot what do I don with zfs?? Your best option is to reboot into single user mode, however if that's not possible, zfs umount -f will force it to unmount. -- Thanks, Dean E. Weimer http://www.dweimer.net/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zfs configuration
21.01.2013 17:50, Don Dugger: Hi All, So I use zfs for the root file system. Works well. However now I want to move /tmp to ram-disk (memory disk or what ever). When I try to unmount /tmp with the zfs command of course it won't because its busy. With ufs I would just edit fstab and reboot what do I don with zfs?? I've been moving a lot of machines from 9.0 to 9.1 with some patches this days (like tmpfs-nrbtree). I inject some code inde /etc/rc.d/zfs to update this. I'm adding this to /etc/fstab: tmpfs /tmp tmpfs rw,nosuid 0 0 After this I'm changing /etc/rc.d/zfs: @@ -23,6 +23,12 @@ zfs_start_main() { + umount /tmp + zfs destroy mypool/tmp + rm -rf /tmp + mkdir -p /tmp + chmod ugo+rwxt /tmp + mount /tmp zfs mount -a zfs share -a if [ ! -r /etc/zfs/exports ]; then After reboot zfs filesystem for tmp is gone and tmpfs is in charge. The code is harmless upon reexecution and just does the job. I haven't found easier way of doing this. -- Sphinx of black quartz, judge my vow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zfs configuration
On 22/01/2013 02:51, dweimer wrote: On 2013-01-21 09:50, Don Dugger wrote: Hi All, So I use zfs for the root file system. Works well. However now I want to move /tmp to ram-disk (memory disk or what ever). When I try to unmount /tmp with the zfs command of course it won't because its busy. With ufs I would just edit fstab and reboot what do I don with zfs?? Your best option is to reboot into single user mode, however if that's not possible, zfs umount -f will force it to unmount. haven't tried it but zfs set canmount=off zroot/tmp should match editing the fstab ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zfs configuration
On Mon, Jan 21, 2013 at 10:33 PM, kpn...@pobox.com wrote: On Mon, Jan 21, 2013 at 07:50:58AM -0800, Don Dugger wrote: Hi All, So I use zfs for the root file system. Works well. However now I want to move /tmp to ram-disk (memory disk or what ever). When I try to unmount /tmp with the zfs command of course it won't because its busy. With ufs I would just edit fstab and reboot what do I don with zfs?? You can install and run 'lsof' to see which running programs are currently using anything in /tmp. Stop them, mount a new /tmp, and then restart them. Or use fstat and avoid the lsof overhead -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zfs configuration
Hi, If you are using different filesystem for /tmp, which I guess you do, I would recommend trying: zfs set mountpoint=/something zfsroot/tmp This way you will change the mountpoint to some other location. Also if you have trouble dismounting the system you can do: 1. fstat to find out which process is using the system; 2. use -f option to force the dismount process. Hope this helps. Regards, Ivailo Tanusheff Don Dugger dondugge...@gmail.com Sent by: owner-freebsd-questi...@freebsd.org 21.01.2013 17:51 To freebsd-questions@freebsd.org cc Subject zfs configuration Hi All, So I use zfs for the root file system. Works well. However now I want to move /tmp to ram-disk (memory disk or what ever). When I try to unmount /tmp with the zfs command of course it won't because its busy. With ufs I would just edit fstab and reboot what do I don with zfs?? Thx in advance... Don 8( ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Disclaimer: The information contained in this message is intended solely for the use of the individual or entity to whom it is addressed and to others authorised to receive it. It may contain confidential or legally privileged information. It you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or taking any action based on the contents of this message is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this e-mail and then delete it from your system. ProCredit Bank is neither liable for the proper and complete transmission for the information contained in this message nor for any delay in its receipt. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org