On Wed, Apr 01, 2015 at 02:15:32PM +0300, Mimiko wrote: > Hello. > > I've setup a file server on Debian Wheezy x86_64. I've used 2 ssd > for system folders which are partitioned and used in software raid > with mdadm. It's working ok. Also there are a bunch of disks which > are combined in a big disk raid-z2 with zfs: > zpool create -f -m none -o ashift=12 zfspool raidz2 disk1 .... > > On this poll I've created three volumes: > zfs create -V 4T zfspool/backup > zfs create -V 1T zfspool/network > zfs create -V 1T zfspool/op > > mount /dev/zvol/zfspool/backup /backup > mount /dev/zvol/zfspool/network /backup/network > mount /dev/zvol/zfspool/op /backup/op > > As you can see, network and op a mount into /backup folder. > > No, the problem is where to describe mount parameters so it will > follow the order? I've used in /etc/fstab: > > /dev/zvol/zfspool/backup /backup ext4 > defaults,noauto,nofail,user_xattr,acl,barrier=1 0 2 > /dev/zvol/zfspool/network /backup/network ext4 > defaults,noauto,nofail,user_xattr,acl,barrier=1 0 2 > /dev/zvol/zfspool/op /backup/op ext4 > defaults,noauto,nofail,user_xattr,acl,barrier=1 0 2 > > I've put noauto and nofail parameters so on boot system will not > stop with error, because at boot zfs volumes are not ready and > imported yet. > > Although, that I've used this in fstab, /backup/network and > /backup/op are not mounted because they are mounted by zfs-mount in > incorrect order, before /backup is mounted. So in > /etc/init.d/zfs-mount script I've found do_mount() command and > duplicated it. First time do_mount() mounts only /backup, second > time do_mount() can mount other disks. > > The question is, is there are method better to overcome this > problem? How to specify mount order? How to enable zfs import early? > > Second problem arises for autofs. I've setup it, so in /backup are > some iso files. But when autofs starts it does not find /backup, > because it is not mounted yet. So the mounted by autofs folders are > empty. I need to restart autofs for files to appear. > > How to specify that autofs should start after zfs mounted those partition?
I suspect you will need to talk to the zfsonlinux mailing list. http://list.zfsonlinux.org/mailman/listinfo/zfs-discuss -dsr- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150401143329.gk26...@randomstring.org