remsnet
Posts: 151
Joined: Wed Dec 19, 2012 7:32 pm
Location: Planet Gaia
Contact: Website Yahoo Messenger

FC17rc2 rasp : FIX for startup LVM2 & mdadm

Thu Dec 20, 2012 8:12 pm

HI all,

I´m "game" with LVM2 and mdadm on one of my rasp´s with Fc17 remix R2 for rasperry..

First of all , you have to have issue install lvm2 , madm , missing init5 sysv scripts for mdadm
bevor you can play with it.

My reasons for change the default Filesystem layout are simple :
I want /var , /usr /opt and /home on LVM2 as my rasp´s planed to run serval years ( +10 ) ..

Game resulted in LVM2 do not startup at boot time.
LVM access seems ONLY after manualy issued "vgchange -ay" or manualy /lib/systemd/fedora-storage-init

SAD Idea that LVM2 startup got removed !!

Reasons seems MISSING required storange systemd services been unmask ´ed
in the fc17rc2 remix .

Here the FIX command ( depend that you installed all required lvm2, mdadm ., systemd ..):

# systemctl unmask fedora-wait-storage.service fedora-storage-init-late.service fedora-storage-init.service

check it:
# systemctl -t service | grep stor
fedora-s...it-late.service loaded active exited Initialize storage subsystems (RAID, LVM, etc.)
fedora-s...ge-init.service loaded active exited Initialize storage subsystems (RAID, LVM, etc.)
fedora-w...storage.service loaded active exited Wait for storage scan

User avatar
tedsluis
Posts: 107
Joined: Sun Mar 03, 2013 11:49 am
Location: The Netherlands

Re: FC17rc2 rasp : FIX for startup LVM2 & mdadm

Sun Mar 03, 2013 9:18 pm

Hi remsnet,

Great advice! I was looking for this solution.
I had previously fc18 alpha running. In that configuration I had a number of file systems (/home, /tmp, /var and /appl) placed in a LVM. These LVM file systems always got active by itself after a reboot.
Now I am running fc18 rc2. And I am running into the problem that the volume group was not available after a reboot. I had to run "vgchange -ay" before the vg got available.
Now "systemctl unmask fedora-wait-storage.service fedora-storage-init-late.service fedora-storage-init.service" fixed it:

Code: Select all

[root@raspi ~]# ll /dev/mapper/
total 0
crw------- 1 root root 10, 236 Mar  1 23:28 control 
[root@raspi ~]# systemctl unmask fedora-wait-storage.service fedora-storage-init-late.service fedora-storage-init.service
rm '/etc/systemd/system/fedora-storage-init-late.service'
rm '/etc/systemd/system/fedora-storage-init.service'
[root@raspi ~]# reboot
Connection to 192.168.11.2 closed by remote host.
Connection to 192.168.11.2 closed.
[root@vmhost-redhat /]# ssh 192.168.11.2
root@192.168.11.2's password: 
Last login: Sun Mar  3 20:48:28 2013 from 192.168.11.52
[root@raspi ~]# systemctl -t service | grep stor
fedora-s...t-late.service loaded active     exited        Initialize storage subsystems (RAID, LVM, etc.)
fedora-s...e-init.service loaded active     exited        Initialize storage subsystems (RAID, LVM, etc.)
[root@raspi ~]# ll /dev/mapper/
total 0
crw------- 1 root root 10, 236 Mar  1 23:28 control
lrwxrwxrwx 1 root root       7 Mar  1 23:28 vg.iomega.ssd-lv.appl -> ../dm-0
Why would such a thing as LVM be disabled in a new release?

Thanks a lot!
--- If you cannot divide then you cannot multiply. ---

Return to “Advanced users”