Sample Header Ad - 728x90

Share an ext4 filesystem between two RHEL servers, but only one will mount at a time

2 votes
3 answers
4667 views
I have two RHEL 6 servers which share a physical connection to a SAN storage (i.e., so both servers can see this /dev/sdb when running fdisk -l). My goal is not to have both servers access the ext4 at the same time. In fact, one of the servers will be mounting it for most of the time. Only when the first server fails, I will want the other server to mount this ext4 filesystem. I already created logical volumes and have tested that both servers can mount this filesystem successfully. I am going to write scripts that are going to check and make sure the volume is not mounted on the other server before mounting. My question is, when servers take turns to mount an ext4 filesystem like this, will there be underlying problems that I am missing? I fear that the OS might have some check or "notes" on the volumes...
Asked by Lok.K. (21 rep)
Jul 13, 2016, 04:56 AM
Last activity: Jun 4, 2019, 08:04 AM