View previous topic :: View next topic |
Author |
Message |
dabicho n00b
Joined: 28 Mar 2004 Posts: 28 Location: México
|
Posted: Wed Jul 08, 2015 1:10 am Post subject: systemd mount fstab problem |
|
|
I have a weird problem with mounting some partitions. they are lvm
I have said partitions configured in fstab with defaults and after a hard reboot, they stopped 'working' with systemd sending me to rescue mode.
And this is whay I found.
I set the partitions' options to noauto,defaults
I cannot mount the partitios to their directories nor crossing.
mount returns success though and there is no error anywhere.
I can mount them to different places however or if I comment them out of fstab and run
systemctl daemon-reload
I can mount them to their original places.
I can even uncoment them without running
systemctl daemon-reload
and mount will work.
As soon as I run
systemctl daemon-reload
with the lines uncomented from fstab, I can no longer mount the partitions in theri directories, but I can manually mount them to different places
I.e.
fstab says:
/dev/vg_main/lv_VM /opt/VM ext4 noauto,defaults 0 1
mount /opt/VM ---> success but in reality the partition is not mounted as shown by df or mount
mount /dev/vg_main/lv_VM /opt/VM ---> success but in reality the partition is not mounted as shown by df or mount
mount /dev/vg_main/lv_VM /some/other/path ---> success and partition is mounted
comment out fstab and run systemctl
#/dev/vg_main/lv_VM /opt/VM ext4 noauto,defaults 0 1
systemctl daemon-reload
mount /dev/vg_main/lv_VM /opt/VM ---> success but in reality the partition is not mounted as shown by df or mount
mount /dev/vg_main/lv_VM /some/other/path ---> success and partition is mounted
uncomment fstab without reloading changes
/dev/vg_main/lv_VM /opt/VM ext4 noauto,defaults 0 1
mount /opt/VM ---> success and partition is mounted
mount /dev/vg_main/lv_VM /opt/VM ---> success and partition is mounted
mount /dev/vg_main/lv_VM /some/other/path ---> success and partition is mounted
reload systemct changes and we are back to square one
What might be happening here?
I suppose systemd left something unfinished from previous shutdown and does not know how to recover but I have no clue what. I have googled without success.
Any suggestion is appreciated.
EDIT:
Actually, as long as systemd has read the uncomented fstab, I cannot mount anything into those directories. |
|
Back to top |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Sun Jul 12, 2015 10:32 am Post subject: |
|
|
Any information about your system? |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Sun Jul 12, 2015 10:47 am Post subject: |
|
|
maybe worth to write your own initramfs with utilizes busybox and custom script for your "special" setup.
--
I just was curious if mounting /opt as separate partition was allowed or even considered. Yes it is.
but seeing systemd screwing up standard principles, whatever(yes this is a rant)
http://www.pathname.com/fhs/pub/fhs-2.3.html
Quote: |
To boot a system, enough must be present on the root partition to mount other filesystems. This includes utilities, configuration, boot loader information, and other essential start-up data. /usr, /opt, and /var are designed such that they may be located on other partitions or filesystems. |
in a perfect world your use case scenario should work, maybe fixable with custom init script but If I were you, I would dig into systemd and check out |
|
Back to top |
|
|
|
|
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
|
|