Friday, January 26, 2007

Create a LVM partition

  1. create a linux partition with fdisk
  2. change the partition type to 8e with 't' option
  3. write
  4. in lvm
  5. use pvcreate /dev/sdaN to create PV
  6. create volume group with vgcreate /dev/sdaN
  7. create logical volumes with lvcreate --name --size
  8. To check the created volumes use lvscan
  9. exit lvm
  10. use mke2fs or other to format the logical volumes

SATA boot after clone

in /boot
mkinitrd `uname -r`.img `uname -r`

mount system partition and do
grub-install /dev/sda