Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Actually, when I do an umount -l (must be lazy because stuff in use) and then a remount as configged in fstab
it shows up correct.
However after a reboot the correction is gone again.
As I see, the "problem" is with devices mounted within initrd image.
No problem with these names at all. You should revise your boot image to fix names.
I am not sure that you will success, but you will learn a lot.
not sure that separate /usr is a problem with lvm but with systemd /usr is not being used but you have 2 options rebuild initrd or initramfs (not sure which) to support separate /usr or move it to root.
BTW Thanks for posting this thread the machine that I'm on is having problems & it's most likely due to separate /usr.
Anything that I want to use I have to execute from /usr/bin
I actually tried unpacking/decompressing the image last weekend. It looked succesfull, but where to go from there .... ?
@eddy1
"rebuild initrd to support separate /usr".
I am not familliar with this process. Can you point me in the right direction ? (I can google it myself, but about 10 million links show up).
What is the core functionality of systemd ?
Last edited by shadow-fmx; 06-30-2015 at 04:04 AM.
Not me.
I got lost in too much detail without knowing what exactly is causing this.
Still have this issue in my template server, either after updating or new (!) installation from iso.
and yet, both the other two lv's show fine in both...
Code:
/dev/mapper/raid5-home on /home type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/mapper/raid5-data on /data type ext4 (rw,relatime,errors=remount-ro,data=ordered)
Everything is fine and mounted on my box. I just cut the relative info out for the post.
my var, usr, etc, etc. are all on that lv (/)
I can't find anything on this elsewhere, not sure what to search for either though.
Oh, and other than this 'visual' issue, the system is fine. Just my monitoring scripts and such that look for the dm mapped named had to all be revised to point to the dev name instead - it's just bothering because I can't figure it out
I read that as sda2 get mounted (rw), remounted (rw), remounted again (rw)... sda2 is my / partition
Anyway a 'mount' command shows everything is good.
Code:
/dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
Perhaps you have a similar "problem".
BTW How does the kernel know whether to mount / as (ro) or (rw) without first mounting it, so that it can see what the /etc/fstab file has to say about things?
Last edited by JeremyBoden; 10-29-2015 at 03:49 PM.
The LVM volume is mounted just fine. The /dev/mapper/LVNAME is a mapping to the long device name for ease of use. The dm-2 name is a very short name for the device itself, which isn't the proper method of displaying the LVM volume.
From what I understand the initial root volume is always mount RO at first then remounted with FSTAB options. So I believe that is functioning as designed.
More explanation on the /dev/mapper vs /dev/dm naming:
Well, from functional point of view they are same - they point to the
same device, of course. But dmsetup/lvm itself does not create the
/dev/dm-X nodes - the ones in /dev/mapper are the right and official
ones that should always be used.
The /dev/dm-X nodes are created by some general udev rules, dm-X is
only internal kernel name for that device and you can't rely on those
names (because the number X that is assigned is not stable and could
be changed - it depends on the sequence of device activation).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.