Re: [Openstack] Some questions about "Cinder Multi-Attach" in Openstack Queens

2018-03-06 Thread Arne Wiebalck
Multi-attach will not allow you to have a block device with a local file-system 
to be concurrently
accessed from multiple nodes. It is intended for HA scenarios where a second 
server can take
over a block device from another server. So, if you unmount on your first 
server, you can mount
on the second and you will see your file.

Arne

On 06 Mar 2018, at 09:53, 谭 明宵 
> wrote:

I  installed the openstack queens use devstack. I want to test the "Cinder 
Multi-Attach" function

1. create a  multiattach volume
```
# cinder type-create multiattach
# cinder type-key multiattach set multiattach=" True"
#  cinder create 10 --name multiattach-volume --volume-type 
```
2. attache the volume to two instances
```
# nova volume-attach test01 
# nova volume-attach test02 
```
<7B194ED4-5D18-4FFA-9FF3-E54DB425E7E4.png>
3. mount the volume , create some file,but the file don't sync between the two 
instance,It seems that they are two independent volumes
<4DFCCC80-5132-4383-B986-726664E45EAF.png>

then test02 create a file,but i cannot find it in test01,The reverse is the 
same.



I think i have something wrong,the test like the "share storage"
What should the correct effect be like? thanks

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : 
openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

--
Arne Wiebalck
CERN IT

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Some questions about "Cinder Multi-Attach" in Openstack Queens

2018-03-06 Thread 谭 明宵

thanks a lot for your help

On 3/6/2018 17:47,Arne 
Wiebalck wrote:
Multi-attach will not allow you to have a block device with a local file-system 
to be concurrently
accessed from multiple nodes. It is intended for HA scenarios where a second 
server can take
over a block device from another server. So, if you unmount on your first 
server, you can mount
on the second and you will see your file.

Arne

On 06 Mar 2018, at 09:53, 谭 明宵 
> wrote:

I  installed the openstack queens use devstack. I want to test the "Cinder 
Multi-Attach" function

1. create a  multiattach volume
```
# cinder type-create multiattach
# cinder type-key multiattach set multiattach=" True"
#  cinder create 10 --name multiattach-volume --volume-type 
```
2. attache the volume to two instances
```
# nova volume-attach test01 
# nova volume-attach test02 
```
<7B194ED4-5D18-4FFA-9FF3-E54DB425E7E4.png>
3. mount the volume , create some file,but the file don't sync between the two 
instance,It seems that they are two independent volumes
<4DFCCC80-5132-4383-B986-726664E45EAF.png>

then test02 create a file,but i cannot find it in test01,The reverse is the 
same.



I think i have something wrong,the test like the "share storage"
What should the correct effect be like? thanks

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : 
openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

--
Arne Wiebalck
CERN IT

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Some questions about "Cinder Multi-Attach" in Openstack Queens

2018-03-06 Thread Van Leeuwen, Robert
# I  installed the openstack queens use devstack. I want to test the "Cinder 
Multi-Attach" function
# 3. mount the volume , create some file,but the file don't sync between the 
two instance,It seems that they are two independent volumes

Did you unmount the filesystem on the first node before mounting it on the 
second node?
You cannot mount a filesystem on 2 nodes at the same time unless you are using 
a shared-disk filesystem. (e.g. something like gfs2 ).

Cheers,
Robert van Leeuwen
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack