]>
Commit | Line | Data |
---|---|---|
41b2b327 AF |
1 | Thing to implement for using LVM on rootfs: |
2 | - if rootfs device have unsupported name then check if this is block device | |
3 | with major 58 | |
4 | - check PVDEVICES and if empty do: | |
5 | -- run lvdisplay to determine volumen group (vg) | |
e53a328e | 6 | -- run pvscan to find physical volumens (pv) belong to determined vg |
41b2b327 AF |
7 | (better write help application to parse /etc/lvmtab.d/[vgname] or |
8 | /etc/lvmconf/[vgname].conf - ask malekith for help) | |
e53a328e | 9 | - for all found pvs find needed modules (support all devices that are |
41b2b327 AF |
10 | supported for rootfs device) |
11 | - add to startup: | |
12 | mount /proc | |
13 | mount /tmp | |
14 | mkdir /tmp/lvmtab.d | |
15 | mkdir /tmp/lvmconf | |
16 | lvm-initrd vgscan | |
17 | lvm-initrd vgchange -a y | |
18 | umount /tmp | |
19 | umount /proc | |
20 | ||
e53a328e ER |
21 | NOTE: vgscan need writable /etc/lvmtab and /etc/lvmtab.d/. Distrib kernels are |
22 | built only with romfs, so mount tmpfs on /tmp and symlink writable files from | |
23 | original location to /tmp. | |
41b2b327 | 24 | But tmpfs are only in kernel series 2.4.x or later. |
6f4f4332 AM |
25 | |
26 | There is also problematic case with LVM on top of for example SOFTRAID. You would | |
27 | need to find all pvdevices and set them up in initrd so there would be multiple | |
28 | rootdevs with multiple dev_lists. |