On 2020-07-09 02:28, Zenaan Harkness wrote:
Since I have to re-send this anyway, my current laptop setup for some time is
this:

  - there is one internal drive, ~750 MiB

  - Root partition, ~30 GiB, Debian default Ext4

  - (there's also a default sized EFI partition, may be ~1GiB from memory)

  - remainder, ~700 MiB is a single data partition, which is assigned to
    a single-partition zpool (zfs disk pool)

  - inside the ZFS "internal" data pool, I create a number of ZFS
    "filesystems", see tutorial below

  - one of these holds various crypt volumes (virtual/loop mounted FSes)

  - inside each crypt vol is another, nested, ZFS filesystem - snapshots
    are just SO nice, I could not resist this...

On my laptops, I prefer to put all the free space into one partition, encrypt the partition, and then put something on top of the encrypted virtual device (usually ext4, but I tried ZFS on Linux recently). Everything is encrypted by default, so I do not need encfs(1), etc..


There's an earlier tute and example code (bash script) and commands for
setting up this combination, but it's a little more technical than the
tutorials below, which are designed for absolute ZFS beginners.  See
here:

    https://github.com/zenaan/quick-fixes-ftfw/tree/master/zfs

(If new to ZFS, perhaps read the zfs tutorial below first though.)

If I had a second internal drive, this is how I would use it:

  - as a single, full-drive ZFS pool

  - inside would be at least a "primary user" filesystem,

I would move the large drive to the second bay, put a small, fast drive in the primary bay, install Debian on the primary drive, and use the secondary drive for data.


  - as well as a " 'primary drive data partition' backup filisystem", to
    which I would make regular backups of my primary drive data partition

I use zfs-auto-snapshot on my systems with ZFS:

https://packages.debian.org/search?searchon=names&keywords=zfs-auto-snapshot


    (in my case, my primary data backups are made to an external USB drive,
    but same diff...)

I would set up the USB drive as follows -- put all the free space into one partition, encrypt the partition, and put the encrypted virtual device into a ZFS pool.


For backups, I would replicate the ZFS filesystems from the laptop pool to the USB drive ZFS pool.


David

Reply via email to