Start a Conversation

Unsolved

This post is more than 5 years old

1285

February 11th, 2017 10:00

Mounting volume on CentOS 7

I am having issue with mounting a shared volume on a client VM running CentOS 7:

Client A:

mount /dev/scinia1 /mnt/volume1

mkdir /mnt/volume1/testA

dir

-- testA

Client B:

mount /dev/scinia1 /mnt/volume1

mkdir /mnt/volume1/testB

dir

-- testB

Essentially - client A does not see files/folders created by client B and vice versa. On remount, both clients can see all files. Not sure why updates are not propagated to clients automatically.


Apart from defaults/auto/netdev, are there any other mounting options that need to be specified for /dev/sciniX? Or do I need to use a specific fs for scaleio volumes (tried ext4 and xfs - same issue).

21 Posts

February 11th, 2017 19:00

Just curious what protocol you're using to mount, and if you "cat /etc/mtab" does it show as a mount? Maybe also a "ls -l /mnt/volume1" to compare permissions.

73 Posts

February 13th, 2017 06:00

Hi hypsin,

Your last question is the answer. The behavior you are describing is normal for a file system that is not cluster aware. Sharing a LUN between two hosts does not automatically make it cluster aware, unfortunately. You will need to use a filesystem such as ocfs2, gpfs, gfs2, etc. It has to do with cache on the OS and file locking. On a non-clustered file system, the OS does not need to notify any other host that a file was created or changed. With a clustered file system, there are checks and processes in place to make sure all of these changes are captured and sent to all other hosts sharing this same device.

Hope that helps,

Rick

No Events found!

Top