Talk:LVM

From NixOS Wiki
Revision as of 20:47, 28 November 2018 by imported>Addict3d (Slight tweaks to fix the creation example, and idea to clarify how to use in your configuration.nix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Slight tweaks

1. The lvcreate step under `Create a logical volume` seems slightly incorrect. If it is trying to create a logical volume named "home", that is specified by:

[-n|--name LogicalVolume{Name|Path}]

it is not an implicit argument as shown in the example. (See https://linux.die.net/man/8/lvcreate)


2. The section `Use the Logical Volume` describes writing a declaration under "filesystems", however this is taken care of during installation for example, by nixos-generate-config.

Quoting from the nixos manual:

" Another critical option is fileSystems, specifying the file systems that need to be mounted by NixOS. However, you typically don’t need to set it yourself, because nixos-generate-config sets it automatically in /mnt/etc/nixos/hardware-configuration.nix from your currently mounted file systems. "

Should this section mention that, and link to, or point out that information?

(See https://nixos.org/nixos/manual/#sec-installation-installing, currently towards the bottom of step 4.)