Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I have a problem with sharing a file system. We have a SAN storage, directly attached to some servers. I would like to share the data among the hosts. Now we use GFS for this, but we wants to outsource the servers, and the outsourcing company couldn't handle any shared file system (GFS, VCFS, etc..), so I have to find out an alternative.
My idea is the following, because we need the data only for read, I would like to use ext3, and mount it only with read only. Of course one node will have rw access, and it will feed the storage with data.
I set up the system, I can mount the storage on every nodes, but when I write data to the storage, it is not visible on the other hosts. I know it is normal, because ext3 was not designed for this, but if I do umount and mount on the ro hosts, files will be available. I suppose behind that is that with mounting again the volume the kernel reads again the filesystem, and new files will be visible.
My question would be, are there any ways to reread the ext3 filesystem without unmounting and mounting? With this my problem is, if there is an open file from this volume, umount will not work.
I tried "sync" and "mount -o ro,remount" as well, but it does not read again the file system.
Nope.
And it gets worse. Any system that finds the filesystem marked as dirty at mount time will attempt to run the journal. Mounting as read only doesn't affect this behaviour, and you can't stop it. This was a design decision by Ted I later found out (I was only doing lab testing, so it didn't matter to me).
Can you trust your provider to ensure that the filesystem mounted r/w is always the last unmounted, and the first mounted ?. What about crashes ...
I know you're in a bind. but you really don't want to be involved in this. Seems you had a good system setup, and you've now got to make a cockup work. Make sure you document all you try, and get it signed off by your manager. I reckon I know who'll wear the blame otherwise.
Nope.
And it gets worse. Any system that finds the filesystem marked as dirty at mount time will attempt to run the journal. Mounting as read only doesn't affect this behaviour, and you can't stop it. This was a design decision by Ted I later found out (I was only doing lab testing, so it didn't matter to me).
Can you trust your provider to ensure that the filesystem mounted r/w is always the last unmounted, and the first mounted ?. What about crashes ...
I know you're in a bind. but you really don't want to be involved in this. Seems you had a good system setup, and you've now got to make a cockup work. Make sure you document all you try, and get it signed off by your manager. I reckon I know who'll wear the blame otherwise.
Really thank you that you highlighted this journal recovery case, I didn't know how it is working. We just discussed it, we can live with because we will write only temporary files to this disk, nothing important, we just want to share them, it is not a big problem if we loose the last X files because of a file system corruption.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.