Comments on: ZFS Administration, Part XV- iSCSI, NFS and Samba https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/ Linux. GNU. Freedom. Mon, 09 Oct 2017 10:42:05 +0000 hourly 1 https://wordpress.org/?v=4.9-alpha-41547 By: Doug https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-257263 Mon, 21 Dec 2015 21:06:20 +0000 http://pthree.org/?p=2943#comment-257263 Re: SMB sahres

I can't get this to work with the instructions. SMB is running. When I go to set the smbshare=on, I get :

cannot share 'mypool/test2': smb add share failed

But when I check it, it does turn it on:

zfs get sharesmb mypool/test2
NAME PROPERTY VALUE SOURCE
mypool/test2 sharesmb on local

But then telling it to share it:

zfs share mypool/test2
cannot share 'mypool/test2': smb add share failed

But running smbclient it does not show up as a share and therefore trying to mount with the smbclient fails.

]]>
By: NM https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-233071 Tue, 12 May 2015 11:40:27 +0000 http://pthree.org/?p=2943#comment-233071 You closed bug #1170

]]>
By: Mike https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-206120 Mon, 29 Sep 2014 18:58:55 +0000 http://pthree.org/?p=2943#comment-206120 Thanks for this series. It's been really helpful.

Can someone point me to the zfs config file in CentOS7? I've installed zfs from the EPEL repository, but I don't have /etc/default/zfs. I don't see anything similar in /etc/zfs/ either.

]]>
By: Chris Scott https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-168139 Sat, 09 Aug 2014 14:09:07 +0000 http://pthree.org/?p=2943#comment-168139 How can I remove a NFS share I've created? I shared my entire ZFS drive (as per http://www.latentexistence.me.uk/zfs-and-ubuntu-home-server-howto/) but now I think I'd prefer to share out only the folders I create within the ZFS pool.

Can't figure out how to remove my ZFS shares altogether, though (apart from setting them to "off")

]]>
By: Mark https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-132081 Wed, 12 Mar 2014 10:42:18 +0000 http://pthree.org/?p=2943#comment-132081 "Unfortunately, sharing ZFS datasets via iSCSI is not yet supported with ZFS on Linux"

Doesn't this just refer to the meta data on the volume? If you create a zvol and hence a block device in the kernel, can't you just tell the IET (the iscsi target) to use that block device.

Other than convenience, what other benefits are there for using the zfs command to create iscsi (and for that matter smb) shares?

]]>
By: Fernando https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-132051 Fri, 21 Feb 2014 15:23:43 +0000 http://pthree.org/?p=2943#comment-132051 Hi guys!

Nevermind my last question.. I solved my problem with:

sudo smbpasswd -L -a your_username
sudo smbpasswd -L -e your_username

Thanks!

Fernando

]]>
By: Fernando https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-132050 Thu, 20 Feb 2014 20:17:55 +0000 http://pthree.org/?p=2943#comment-132050 Hi there!

I would like to share a ZFS dataset via SMB.

At the end of the SMB section, you mounting the SMB share with: "mount -t cifs -o username=USERNAME //localhost/srv /mnt"

Which username should I use here? My linux username? I'm asking because with my linux username I could not authenticate. Do I need to edit smb.conf in order to authenticate?

Thanks!

Fernando

]]>
By: Lloyd https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-126887 Sat, 22 Jun 2013 03:29:36 +0000 http://pthree.org/?p=2943#comment-126887 Great work!

For Ubuntu 13.04 it looks like you do need a dummy export. Without it this happens.

lloyd@tank:/var/log$ sudo /etc/init.d/nfs-kernel-server start
* Not starting NFS kernel daemon: no exports.

]]>
By: Aaron Toponce : ZFS Administration, Appendix A- Visualizing The ZFS Intent LOG (ZIL) https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-125166 Tue, 23 Apr 2013 13:45:30 +0000 http://pthree.org/?p=2943#comment-125166 [...] iSCSI, NFS and Samba [...]

]]>
By: Aaron Toponce : ZFS Administration, Part XII- Snapshots and Clones https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-124819 Fri, 19 Apr 2013 10:58:51 +0000 http://pthree.org/?p=2943#comment-124819 [...] iSCSI, NFS and Samba [...]

]]>
By: Aaron Toponce : ZFS Administration, Part III- The ZFS Intent Log https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-124809 Fri, 19 Apr 2013 10:56:16 +0000 http://pthree.org/?p=2943#comment-124809 [...] iSCSI, NFS and Samba [...]

]]>
By: Aaron Toponce : ZFS Administration, Part I- VDEVs https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-124806 Fri, 19 Apr 2013 10:55:44 +0000 http://pthree.org/?p=2943#comment-124806 [...] iSCSI, NFS and Samba [...]

]]>
By: Aaron Toponce https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-123234 Wed, 16 Jan 2013 15:51:39 +0000 http://pthree.org/?p=2943#comment-123234 That's good to know about just the existence of the /etc/exports file, instead of its contents. Thanks for the heads up. Also, with regards to legacy booting, it's only an issue if using it for filesystem mounts, such as /var/, /home/, etc. Things outside of that, such as /kvm/ may or may not be affected, all depending on when your starting services need the mounts.

]]>
By: Roger Hunwicks https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-123219 Wed, 16 Jan 2013 10:52:02 +0000 http://pthree.org/?p=2943#comment-123219 FWIW I am also not using .legacy-bootordering and I haven't had any problems. That may be because the zfs pool I am using is all shares (NFS and SMB) and virtual machines (run using libvirt/KVM on the same server), and I am not using ZFS for the OS files (on a separate ext4 mdadm mirror)

]]>
By: Roger Hunwicks https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-123218 Wed, 16 Jan 2013 10:42:46 +0000 http://pthree.org/?p=2943#comment-123218 Thanks for the great series of posts - you've encouraged me to finally set up a ZFS server for experimenting with.

On my Ubuntu 12.04.1 server I didn't need to create a dummy export in order to get NFS shares working - the supplied /etc/init.d/nfs-kernel-server checks for the existing of /etc/exports, but doesn't care what is in. The file exists by default but contains only comments, which is enough.

Similarly, I am using the mountall from the Ubuntu ZFS PPA and that seems be working fine without changing ZFS_MOUNT in /etc/default/zfs

Therefore the only change I needed was to change ZFS_SHARE to yes in /etc/default/zfs

]]>
By: Aaron Toponce : Install ZFS on Debian GNU/Linux https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-122845 Tue, 08 Jan 2013 04:27:42 +0000 http://pthree.org/?p=2943#comment-122845 [...] iSCSI, NFS and Samba [...]

]]>
By: Aaron Toponce : ZFS Administration, Part V- Exporting and Importing zpools https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-122839 Tue, 08 Jan 2013 04:26:00 +0000 http://pthree.org/?p=2943#comment-122839 [...] iSCSI, NFS and Samba [...]

]]>
By: Aaron Toponce : ZFS Administration, Part VIII- Zpool Best Practices and Caveats https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-122836 Tue, 08 Jan 2013 04:25:12 +0000 http://pthree.org/?p=2943#comment-122836 [...] iSCSI, NFS and Samba [...]

]]>
By: David E. Anderson https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/#comment-122456 Mon, 31 Dec 2012 15:29:27 +0000 http://pthree.org/?p=2943#comment-122456 thanks again for the series of docs and in particular the boot-spanning and serial tips!

]]>