From ArchWiki
Revision as of 06:11, 17 November 2009 by Redlever (talk | contribs)
Jump to: navigation, search

Hi, i'd like to link the italian translation of this article, how can i do that?dav2dev 19:18, 16 February 2009 (EST)

Addition for /arch/setup LVM install

It is possible, as of Arch 2009.08, to set up and install on LVM directly from /arch/setup. Here is how I did it - probably this info could be merged into the main article somehow? Redlever 01:11, 17 November 2009 (EST)

(2) Manually Partition Hard Drives

  • Type 82, 100M, for /boot partition
  • Type 8E, the rest, for LVM physical volume

(3) Manage Filesystems

82 partition gets EXT2 fs, mount at /boot

8E partition gets lvm-pv fs. This adds a new entry to the "Manage Filesystems", showing "/dev/sda3+".

Select that entry, say "YES", it has only one possible value, "lvm-vg", and you can label your volume group (e.g., "vg0"). This adds a new entry to "Manage Filesystems", showing "/dev/mapper/vg0".

Select that entry, which brings up a new "Manage LV's on this VG" menu. Be careful here, as it is confusing to try to edit / delete logical volumes.

Select "empty NEW", then select "YES" to creat the filesystem. It will select lvm-lv for you, and then you can enter a label (e.g., "root", "home", "whatever").

Repeat these steps (select "/dev/mapper/vg0", then "empty NEW", etc.) for each logical volume you want.

Each logical volume you create will be added to the "Manage Filesystems" menu, like "/dev/mapper/vg0-LABEL". Select each one of those, and create a filesystem on it as desired. Probably you want to choose mount points and labels that match each other (e.g., mount /dev/mapper/vg0-root on /), but this is up to you. You should have at least "/" and "swap" logical volumes.

Here is a complete example from my recent simple setup. I have one disk, /dev/sda. sda1 is an NTFS partition, sda2 is /boot, and sda3 is my LVM physical volume. I have a single volume group, called vg0. On that volume group, i have logical volumes for root, swap, var and home. This is what I see on "Manage filesystems" (copied from the screen, so I can't see the end of the lines):

/dev/sda1             raw->no_fs
/dev/sda2             raw->ext2;yes;/boot;no_opts;no_label;no_params
/dev/sda3             raw->lvm-pv;yes;no_mountpoint;no_opts;no_label;no_
/dev/sda3+            lvm-pv->lvm-vg;yes;no_mountpoint;no_opts;vg0;/dev/
/dev/mapper/vg0       lvm-vg(vg0)->lvm-lv;yes;no_mountpoint;no_opts;root
/dev/mapper/vg0-root  lvm-lv(root)->ext4;yes;/;no_opts;no_label;no_param
/dev/mapper/vg0-swap  lvm-lv(swap)->swap;yes;no_mountpoint;no_opts;no_la
/dev/mapper/vg0-var   lvm-lv(var)->ext4;yes;/var;no_opts;no_label;no_par
/dev/mapper/vg0-home  lvm-lv(home)->ext4;yes;/home;no_opts_no_label;no_p