New answers tagged

0

I saw this myself in the beginning, letting LXD set up the ZFS partition for me and then going back into it to set the mountpoint, but as you say it was empty. You already have the answer provided by Andreas (and you should accept it as so), but just for clarification should it not be apparent: LXD mounts the individual paths in the same place as it would ...


0

I ended up resolving this issue. Apparently lvm and zfs don't play nicely together. Power down jbod enclosure reboot machine zpool status nolonger shows the drive. zpool import -d /dev/disk/by-id stor4 pool: stor4 state: ONLINE scan: scrub repaired 0 in 0h2m with 0 errors on Wed Apr 6 13:15:36 2016 config: NAME ...


0

I would recommend the following: Install the necessary tools and dependencies: sudo apt-get install build-essential git sudo apt-get build-dep linux clone the Xenial Ubuntu linux 4.4 kernel: git clone https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial and build the kernel: cd xenial fakeroot debian/rules clean debian/rules ...


0

What Ubuntu 16.04 did was include it in the kernel and the distribution, so you don't have to add extra PPAs anymore or build modules with DKMS everytime there is a new kernel update. This is a big deal. Integrating it with the installer is a natural next step, but it wasn't done in time for the 16.04 release. Maybe in a point release in the future.


0

you cant directly install you have to migrate https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-install-Ubuntu-16.04-to-a-Native-ZFS-Root-Filesystem


1

Since I can't comment your post (not enough reputation) I'm posting as an answer. I would like to tell you that I got the same issue with all my Xenial container servers (5). To add more information to our issue, the mounts do not appear anymore when you type mount. If you type zfs mount -a it only mounts back the non-running containers, with running ...


1

I still can't imagine what went wrong, but running sudo zfs mount -a fixed the issue (as mentioned above, the ZFS datasets did exist--as evident by their use of storage--they were just unmounted for some reason) for every container not running. Stopping www-server, I could fix its mountpoint as well with the same command, then start it again. N.B. If ...


0

If you have lxd configured properly to use zfs, then it will give you one zfs dataset per container. Something like this: NAME USED AVAIL REFER MOUNTPOINT nsn7/lxd 12,8G 241G 19K ...


0

If indeed mycontainer is unprivileged, then its owner might not have access to the path /pool/mydataset. Users in unprivileged containers have their uid offset on the host by the container-owner uid, so user1 inside the container isn't the same as user1 on the host. You can check what user on the host owns the container with sudo ls -l /pool/lxc | grep ...


0

I can get Ubuntu to automount my ZFS pool by opening up the /etc/rc.local file and adding the following line to it: zfs mount -vO -a Now my ZFS pool is automounted on reboot.


0

Against cryptolockers use for example an offline USB disk. For online offsite automatic encrypted backup use BitTorrent Sync. Install BitTorrent Sync to your computer and run it http://gamblisfx.com/how-to-install-bittorrent-sync-2-2-7-on-ubuntu-gnome-15-04/ Go to localhost:8888/gui with your browser Click Menu and select Encrypted folder ...


0

This is certainly possible although not very efficient as the disk head will seek between both disk areas for all writes. ZFS allows to work with whole disks, primary and logical partitions and files. Note that ZFS also support multiple data copies to help overcoming bit rot: zfs set copies=2 dataset


1

I followed this guide and it worked for me in a KVM with 3 disks in a raidz1 configuration: https://github.com/zfsonlinux/zfs/wiki/Ubuntu-16.04-Root-on-ZFS There were two caveats: I had to use non-virtio disks, or else grub (yes, grub), at boot time, would see only one disk instead of 3. Since I was using raidz1, that was not enough to boot. The other ...


0

I suggest you try with Ubuntu 16.04. I followed this tutorial and it worked: https://github.com/zfsonlinux/zfs/wiki/Ubuntu-16.04-Root-on-ZFS Didn't have to disable any ZFS feature, like compression. In fact, it was enabled (lz4), and I even used raidz1 with 3 disks as /. One caveat is that I had to export this shell var for grub to recognize the ...


0

your user account ohto doesn't seem to have a sensible home directory on the remote end , this is causing a login issue and making rsync attempt to use somewhere i can't write to for temp files. ohto is probably an account for service that has an unusual home dir , have a look in /etc/passwd to see where its home dir is.


0

Since you're syncing from Linux to DSM, I'd suggest using rsync directly, without first mounting the NAS destination on your desktop. There's no point letting SMB/samba sit in the middle - it will introduce extra potential problems, particularly with file naming and features not supported by SMB (such as symbolic links). There are a lot of different ways to ...


0

This has nothing to do with zfs, but with insufficient rights for your sync programs to access the gvfs folder. You can test this by mounting something so that /var/run/user/1000/gvfs is populated and then do a sudo ls /var/run/user/1000/gvfs and a ls /var/run/user/1000/gvfs. Only the last one will list the contents of the gvfs folder, the first one fails ...


1

As Bruno Pereira has said, the zfs version number from FreeNAS needs to be equal or smaller than the zfs version number ubuntu supports. After zfs v28, this switched over to the need for support of the enabled zfs options. For 16.04, the versions of zfs and FreeNAS 9.10 or even FreeNAS 10 are equal and a FreeNAS pool can be converted. I just converted a ...


2

Answering to your last sentence and not the title question, since this seems to be the reason for it: For zfs, the drives need to have the same size in an array for a meaningful combination. The size of the zpool is limited by the smallest disk in the array for raidzX modes. If you want to enlarge a pool, you need to make sure that you replace your disks ...


2

You can replace a physical drive from a zpool. Take a look at this tutorial made by Oracle. Replacing a Device in a ZFS Storage Pool Howerver according to the zpool man page (snv_92): zpool remove pool device ... Removes the specified device from the pool. This command currently only supports removing hot spares and cache devices. ...


0

OK - that was easy... but I don't know why (maybe because I skipped over 15.10?): sudo apt-get install zfsutils-linux showed a broken package and two zfs.doc packages pending with different versions. I suspected zfsutils-linux wasn't really installed and sudo apt-get remove zfsutils-linux confirmed it wasn't installed. So failing to have any other ...


0

The way I see it, each lxd host can only use one pool.


1

Here is what it looks like for containers: root@nsn7:~# zfs list -r nsn7/lxd/containers NAME USED AVAIL REFER MOUNTPOINT nsn7/lxd/containers 2,95G 259G 19K /nsn7/lxd/containers nsn7/lxd/containers/lds-xenial 2,68G 259G 3,16G /var/lib/lxd/containers/lds-xenial.zfs ...


0

sudo zfs send tank/dana@snap1 | ssh sys2Root zfs recv newtank/dana where sys2root is an entry in ~/.ssh/config, ie: host sys2Root HostName 192.168.0.x User root



Top 50 recent answers are included