Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
failed to mount home partition after switched to systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
houqp
n00b
n00b


Joined: 22 Feb 2011
Posts: 28
Location: China

PostPosted: Fri Dec 23, 2011 4:55 pm    Post subject: failed to mount home partition after switched to systemd Reply with quote

Hi all,

This morning I was so boring that I decide to setup systemd in my gentoo box for fun. The result is I now get a system that cannot mount its home partition. :-(

Actually, my root partition can be correctly mounted during the boot process. But my home partition is managed with LVM and it seems that my systemd can not properly handle LVM partitions.

Now I get two error messages during the boot process:

first error:
Code:
systemd[1]: dev-hugepages.mount mount process exited, code=exited status=32
Starting Huge Pages File System failed, see 'systemctl status dev-hugepages.mount' for details


second error:
Code:
systemd[1]: Job dev-houqp_vg-lv_home/start timed out.
Starging /home aborted because a dependency failed.
systemd[1]: Job local-fs.target/start failed with result 'dependency'.
systemd[1]: Job home.mount/start failed with result 'dependency'.
systemd[1]: Job dev-houqp_vg-lv_home.device/start failed with result 'timeout'.
systemd[1]: lvm.service: control process exited, code=exited status=3
systemd[1]: Unit lvm.service entered failed state.


The first error is strange, because I did not create this kind of file system before and this file system is disable in my kernel. I try to search the /etc/systemd/system directory but cannot find out which unit is responsible for auto mounting the huge page file system.

Now I have no idea of how fixing my systemd. Any instructions will be greatly appreciated. :-)

Following is the content of my lvm.service:

Code:
[Unit]
Description=Linux Volume Manager
DefaultDependencies=no
Requires=udev-settle.service
After=udev-settle.service
Before=shutdown.target local-fs.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/pvscan --ignorelockingfailure
ExecStart=/sbin/vgscan --mknodes --ignorelockingfailure
ExecStart=/sbin/vgchange --sysinit -a ly
ExecStop=/sbin/lvchange --sysinit -a ln $(/sbin/vgs -o vg_name --noheadings --nosuffix 2> /dev/null)
ExecStop=/sbin/lvchange --sysinit -a ln
ExecStop=/sbin/vgchange --sysinit -a ln

[Install]
WantedBy=sysinit.target
Back to top
View user's profile Send private message
houqp
n00b
n00b


Joined: 22 Feb 2011
Posts: 28
Location: China

PostPosted: Fri Dec 23, 2011 5:21 pm    Post subject: Reply with quote

Well, after unmask the openrc package, the first error is fixed. But the second error persists.
Back to top
View user's profile Send private message
houqp
n00b
n00b


Joined: 22 Feb 2011
Posts: 28
Location: China

PostPosted: Fri Dec 23, 2011 8:41 pm    Post subject: Reply with quote

With a modified lvm.service, now my lvm partitions can be correctly activated. But still fails to mount the partition:

Code:
Starting Linux Volume Manager...
Started Linux Volume Manager.
systemd[1]: Job dev-houqp_vg-lv_home/start timed out.
Starging /home aborted because a dependency failed.
systemd[1]: Job local-fs.target/start failed with result 'dependency'.
systemd[1]: Job home.mount/start failed with result 'dependency'.
systemd[1]: Job dev-houqp_vg-lv_home.device/start failed with result 'timeout'.


I cannot find out the reason for Job dev-houqp_vg-lv_home/start timed out. :-(

output of udevadm info -p /dev/houqp_vg/lv_home -q all:
Code:
device path not found
should I write a udev rule for lv_home?

My new lvm.service:

Code:
[Unit]
Description=Linux Volume Manager
DefaultDependencies=no
Requires=udev-settle.service
After=udev-settle.service
Before=shutdown.target local-fs.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/pvscan --ignorelockingfailure
ExecStart=/sbin/vgscan --mknodes --ignorelockingfailure
ExecStart=/sbin/vgchange --sysinit -a ly
ExecStop=/sbin/lvchange --sysinit -a ln houqp_vg
ExecStop=/sbin/vgchange --sysinit -a ln

[Install]
WantedBy=sysinit.target
Back to top
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Tue Jan 01, 2013 12:51 pm    Post subject: Reply with quote

Did you ever find a solution for this? I currently seem to have exactly the same problem.
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum