You are not logged in.

#1 2010-01-12 16:43:57

awayand
Member
Registered: 2009-09-25
Posts: 398

[CLOSED + MOVED]Activate lvm2 on ext3 root partition

Hello guys,

I want to move to lvm2 on my arch installation, I haven't used any lvm before. So here's what I did so far:

1. shrink root partition using gparted to 7 gigabytes
2. created an lvm partition with size 8 gigabytes
3. migrated all files from the root partition to the lvm partition (in single user mode: # rsync -axSX / /newpartition)
4. added lvm2 hook before the filesystems hook in /etc/mkinitcpio.conf according to http://wiki.archlinux.org/index.php/Con … #Using_lvm
5. regenerated the initramfs image using # sudo mkinitcpio -g /boot/kernel26.img
5a. added a grub entry with root=/dev/vg/root (I have no idea what the difference is between that and /dev/mapper/vg-root)
5b. edited /etc/fstab to use /dev/vg/root (again, no idea if /dev/mapper/vg-root would have been more appropriate) as root mountpoint "/"
6. Rebooted
7. Unfortunately, I cannot copy-paste the output, but upon reboot, the initramfs loads fine, it seems to recognize to lvm2 volume, but then says "trying to open console - not found" or something like that and then kernel panics on me.

Any ideas?
thanks!

CLOSED+MOVED:Moving this question elsewhere, as this topic seems too advanced for this subgroup.

Last edited by awayand (2010-01-13 12:44:11)

Offline

Board footer

Powered by FluxBB