Re: [Gluster-users] Migrate from an NFS storage to GlusterFS

2010-02-18 Thread Vikas Gorur

Harald Stürzebecher wrote:

Would reexporting the GlusterFS volume as described in
http://gluster.com/community/documentation/index.php/Storage_Server_Installation_and_Configuration#Add_NFSv3_Protocol
work in this case?

  

Re-export will work without problems.

Vikas
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] Migrate from an NFS storage to GlusterFS

2010-02-17 Thread Harald Stürzebecher
2010/2/16 Vikas Gorur :
> Olivier Le Cam wrote:
>>
>> Thanks Vikas. BTW, might it be possible to have the same volume exported
>> both by regular-NFS and GlusterFS at the same time in order to migrate my
>> clients smoothly? Is there any risks to get GlusterFS confused and/or the
>> ext3 volume damaged?
>
> That would be quite risky. If you have both GlusterFS clients and NFS
> clients operating on
> the same files or directories there are chances of race conditions which
> might lead
> to lost files, GlusterFS getting confused, NFS getting confused etc. I
> wouldn't recommend it.

Would reexporting the GlusterFS volume as described in
http://gluster.com/community/documentation/index.php/Storage_Server_Installation_and_Configuration#Add_NFSv3_Protocol
work in this case?


Harald Stürzebecher
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] Migrate from an NFS storage to GlusterFS

2010-02-16 Thread Stephan von Krawczynski
On Tue, 16 Feb 2010 17:31:00 +0530
Vikas Gorur  wrote:

> Olivier Le Cam wrote:
> > Thanks Vikas. BTW, might it be possible to have the same volume 
> > exported both by regular-NFS and GlusterFS at the same time in order 
> > to migrate my clients smoothly? Is there any risks to get GlusterFS 
> > confused and/or the ext3 volume damaged?
> That would be quite risky. If you have both GlusterFS clients and NFS 
> clients operating on
> the same files or directories there are chances of race conditions which 
> might lead
> to lost files, GlusterFS getting confused, NFS getting confused etc. I 
> wouldn't recommend it.

But isn't that a setup that every average user would expect to work? You can
share data between nfs and a local (nfs-server) user, too. Is your file
locking racy? Did you break atomic operations?

Remember that long discussion about soft migrating data by just exporting
already existing data via glusterfs without copying? This point is very
similar. It is a common understanding in modern fs that multiple users of the
same file should be managed by record- and/or file-locking. A network based fs
on top of some other fs should behave just as it were some average local user
- then your data should (and must) be safe.

> Vikas

-- 
Regards,
Stephan
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] Migrate from an NFS storage to GlusterFS

2010-02-16 Thread Vikas Gorur

Olivier Le Cam wrote:
Thanks Vikas. BTW, might it be possible to have the same volume 
exported both by regular-NFS and GlusterFS at the same time in order 
to migrate my clients smoothly? Is there any risks to get GlusterFS 
confused and/or the ext3 volume damaged?
That would be quite risky. If you have both GlusterFS clients and NFS 
clients operating on
the same files or directories there are chances of race conditions which 
might lead
to lost files, GlusterFS getting confused, NFS getting confused etc. I 
wouldn't recommend it.


Vikas
--
Engineer - Gluster, Inc.
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] Migrate from an NFS storage to GlusterFS

2010-02-16 Thread Olivier Le Cam

Vikas Gorur wrote:

Olivier Le Cam wrote:
Does it make sense to go that way? In fact, I don't have all the 
equipment required to switch to a (replicated/distributed) 4-bricks. 
This is why it came to my mind to do it step-by-step.
Yes, the steps you outlined will work. Just export your existing volume 
using GlusterFS.
When you add a new volume for replication, do an 'ls -lR' to trigger 
self-heal. Use the defrag

script when you want to use distribute as well.


Thanks Vikas. BTW, might it be possible to have the same volume exported 
both by regular-NFS and GlusterFS at the same time in order to migrate 
my clients smoothly? Is there any risks to get GlusterFS confused and/or 
the ext3 volume damaged?


--
Olivier
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] Migrate from an NFS storage to GlusterFS

2010-02-16 Thread Vikas Gorur

Olivier Le Cam wrote:
Does it make sense to go that way? In fact, I don't have all the 
equipment required to switch to a (replicated/distributed) 4-bricks. 
This is why it came to my mind to do it step-by-step.
Yes, the steps you outlined will work. Just export your existing volume 
using GlusterFS.
When you add a new volume for replication, do an 'ls -lR' to trigger 
self-heal. Use the defrag

script when you want to use distribute as well.

Vikas

___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] Migrate from an NFS storage to GlusterFS

2010-02-16 Thread Olivier Le Cam

Vikas Gorur wrote:

Olivier Le Cam wrote:

Hi -

I already have an NFS server in production which shares Web data for a 
4-node Apache cluster. I'd like to switch to GlusterFS.


Do I have to copy the files from the NFS storage to a GlusterFS one, 
or may it work if I just install GlusterFS on that server, configuring 
a GFS volume to the existing storage directory (assuming, of course, 
the NFS server is shuuted down and not used anymore), then ls -lR?
What kind of GlusterFS configuration do you intend to use? Distribute, 
Replicate, or both?


At this step, I just wanna give it a try. I was actually thinking (if 
this is possible) to install GlusterFS on the current NFS server and 
switch from regular-NFS to GlusterFS (on both clients and server side).


Then, if everything goes fine, add a second replicated brick (forcing 
synchronization).


Then again, if everything is still fine, add two other bricks in order 
to distribute. Thanks to the "defrag" script, it should be possible to 
rebalance the files over the distributed storage with an acceptable 
disturbance.


Does it make sense to go that way? In fact, I don't have all the 
equipment required to switch to a (replicated/distributed) 4-bricks. 
This is why it came to my mind to do it step-by-step.


Thanks and best regards,
--
Olivier Le Cam
Département des Technologies de l'Information et de la Communication
Académie de Versailles


___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] Migrate from an NFS storage to GlusterFS

2010-02-16 Thread Vikas Gorur

Olivier Le Cam wrote:

Hi -

I already have an NFS server in production which shares Web data for a 
4-node Apache cluster. I'd like to switch to GlusterFS.


Do I have to copy the files from the NFS storage to a GlusterFS one, 
or may it work if I just install GlusterFS on that server, configuring 
a GFS volume to the existing storage directory (assuming, of course, 
the NFS server is shuuted down and not used anymore), then ls -lR?
What kind of GlusterFS configuration do you intend to use? Distribute, 
Replicate, or both?


Vikas
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


[Gluster-users] Migrate from an NFS storage to GlusterFS

2010-02-16 Thread Olivier Le Cam

Hi -

I already have an NFS server in production which shares Web data for a 
4-node Apache cluster. I'd like to switch to GlusterFS.


Do I have to copy the files from the NFS storage to a GlusterFS one, or 
may it work if I just install GlusterFS on that server, configuring a 
GFS volume to the existing storage directory (assuming, of course, the 
NFS server is shuuted down and not used anymore), then ls -lR?


Thanks,
--
Olivier Le Cam
Département des Technologies de l'Information et de la Communication
Académie de Versailles
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users