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.
these are df -h of the 2 machines, even from what I see they don't even match the percentages of use for that I put below the uuid of the disks and you can see that they are exactly the same
Machine1
/dev/sdb1 21T 12T 8,8T 56% /mnt/back
blkid
/dev/sdb1: UUID="17799b02-1134-4102-9c86-1ea11adde8f3" TYPE="ext4" PARTUUID="a7017e92-63d4-f448-9c3c-b5b8a88475b7"
Machine2
/dev/sdb1 21T 7,7T 13T 39% /mnt/datos
blkid
/dev/sdb1: UUID="17799b02-1134-4102-9c86-1ea11adde8f3" TYPE="ext4" PARTUUID="a7017e92-63d4-f448-9c3c-b5b8a88475b7"
Machine2 is a VM inside machine1.
How /dev/sdb1 is mounted? (local or remote on machine1 and machine2)?
I guess there is a cache somewhere and when you access /dev/sdb1 on machine1 the other one does not recognize the change and still use the old data from cache.
You might need to invalidate that cache. But actually we don't know this setup (how this drive is shared/mounted), so I'm not really sure about that.
Normal filesystems cannot be mounted on multiple systems. They have no support for shared access. The best filesystem to do this on Linux is probably GFS2. https://en.wikipedia.org/wiki/GFS2
Machine1
/dev/sdb1 21T 12T 8,8T 56% /mnt/back
blkid
/dev/sdb1: UUID="17799b02-1134-4102-9c86-1ea11adde8f3" TYPE="ext4" PARTUUID="a7017e92-63d4-f448-9c3c-b5b8a88475b7"
Machine2
/dev/sdb1 21T 7,7T 13T 39% /mnt/datos
blkid
/dev/sdb1: UUID="17799b02-1134-4102-9c86-1ea11adde8f3" TYPE="ext4" PARTUUID="a7017e92-63d4-f448-9c3c-b5b8a88475b7"
Machine2 is a VM inside machine1.
How /dev/sdb1 is mounted? (local or remote on machine1 and machine2)?
I guess there is a cache somewhere and when you access /dev/sdb1 on machine1 the other one does not recognize the change and still use the old data from cache. You might need to invalidate that cache. But actually we don't know this setup (how this drive is shared/mounted), so I'm not really sure about that.
OP, given the fact you have JUST NOW SAID (after two threads, and 18 posts in this one), that the second machine is a VM **ON THE FIRST** is a good reason for you to actually answer questions. Think about what you're saying: you're trying to mount a disk on machine 1...from another machine that is ALSO on machine 1. You're still trying to mount the same resource that's already mounted.
That, plus the fact you're not giving any details and keep opening threads about the same system, apparently thinking no one here is going to notice.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.