Skip to contentSkip to conversation

shared images

DISCUSSION Harald Rößler 5 participants 5 messages May 13, 2013

lore
Share & tools
lore
#0 lore raw

Hi Together

is there a description of how a shared image works in detail? Can such an image can be used for a shared file system on two virtual machine (KVM) to mount. In my case, write on one machine and read only on the other KVM.Are the changes are visible on the read only KVM?

Thanks
With Regards
Harry

#1 lore raw
Quoted 7 lines · Harald Rößler

Hi Together

is there a description of how a shared image works in detail? Can such an image can be used for a shared file system on two virtual machine (KVM) to mount. In my case, write on one machine and read only on the other KVM.Are the changes are visible on the read only KVM?

The image is just striped across RADOS objects. In general you can think of it behaving exactly like a hard drive connected to your computer over iSCSI — a proper shared FS (eg, OCFS2) will work on top of it, but there's no magic that makes running an ext4 mount on two machines work...
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 9 lines · Gregory Farnum
Quoted 7 lines · Harald Rößler

Hi Together

is there a description of how a shared image works in detail? Can such an image can be used for a shared file system on two virtual machine (KVM) to mount. In my case, write on one machine and read only on the other KVM.Are the changes are visible on the read only KVM?

Quoted 7 lines

The image is just striped across RADOS objects. In general you can think of it behaving exactly like a hard drive connected to your computer over iSCSI — a proper shared FS (eg, OCFS2) will work on top of it, but there's no magic that makes running an ext4 mount on two machines work...
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Hi Greg

Thanks, and sorry maybe I did not explain clearly what I mean or. When I' mounting a rbd image on two KVM machines, then if I am writing a file in one system the other system does not recognize the change of the file system. I thought there is some magic in librbd which give the OS the information that something have changed, like when I am mounting a NFS share.

I saw in the documentation the "--shared tag" :

Option for lock add that allows multiple clients to lock the same image if they use the same tag. The tag is an arbitrary string. This is useful for situations where an image must be open from more than one client at once, like during live migration of a virtual machine, or for use underneath a clustered file system.

The use case is multiply KVM systems are mounting the same data storage, without use of cephfs (MDS).

Thanks
Harry

#3 lore raw
Quoted 29 lines · Harald Rößler
Quoted 9 lines · Gregory Farnum
Quoted 7 lines · Harald Rößler

Hi Together

is there a description of how a shared image works in detail? Can such an image can be used for a shared file system on two virtual machine (KVM) to mount. In my case, write on one machine and read only on the other KVM.Are the changes are visible on the read only KVM?

Quoted 7 lines

The image is just striped across RADOS objects. In general you can think of it behaving exactly like a hard drive connected to your computer over iSCSI — a proper shared FS (eg, OCFS2) will work on top of it, but there's no magic that makes running an ext4 mount on two machines work...
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Hi Greg

Thanks, and sorry maybe I did not explain clearly what I mean or. When I' mounting a rbd image on two KVM machines, then if I am writing a file in one system the other system does not recognize the change of the file system. I thought there is some magic in librbd which give the OS the information that something have changed, like when I am mounting a NFS share.

I saw in the documentation the "--shared tag" :

Quoted 8 lines

Option for lock add that allows multiple clients to lock the same image if they use the same tag. The tag is an arbitrary string. This is useful for situations where an image must be open from more than one client at once, like during live migration of a virtual machine, or for use underneath a clustered file system.

The use case is multiply KVM systems are mounting the same data storage, without use of cephfs (MDS).

Yeah, that absolutely will not work. RBD is a block device, not a shared filesystem. ;)
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

#4 lore raw
In reply to Harald Rößler

Hi,

Quoted 4 lines

Thanks, and sorry maybe I did not explain clearly what I mean or. When I' mounting a rbd image on two KVM machines, then if I am writing a file in one system the other system does not recognize the change of the file system. I thought there is some magic in librbd which give the OS the

There is no magic. If you have formatted that rbd with a file system like ext4 or similar, it will never work.

Quoted 1 line

I saw in the documentation the "--shared tag" :

This can be used if you format the rbd with a clustered file system that is meant to be mounted on more than computer at the same time (like for example the OCFS2 file system).

Signature · 7 lines
Jens Kristian Søgaard, Mermaid Consulting ApS,
[email protected],
http://www.mermaidconsulting.com/
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com