[Gluster-users] Distributed volumes

Franco Broi franco.broi at iongeo.com
Tue Jun 3 08:22:16 UTC 2014


On Tue, 2014-06-03 at 08:20 +0000, yalla.gnan.kumar at accenture.com
wrote: 
> Hi,
> 
> So , in which scenario, does the distributed volumes have files on both the bricks ?

If you make more than 1 file.

> 
> 
> -----Original Message-----
> From: Kaushal M [mailto:kshlmster at gmail.com] 
> Sent: Tuesday, June 03, 2014 1:19 PM
> To: Gnan Kumar, Yalla
> Cc: Franco Broi; gluster-users at gluster.org
> Subject: Re: [Gluster-users] Distributed volumes
> 
> You have only 1 file on the gluster volume, the 1GB disk image/volume that you created. This disk image is attached to the VM as a file system, not the gluster volume. So whatever you do in the VM's file system, affects just the 1 disk image. The files, directories etc. you created, are inside the disk image. So you still have just one file on the gluster volume, not many as you are assuming.
> 
> 
> 
> On Tue, Jun 3, 2014 at 1:09 PM,  <yalla.gnan.kumar at accenture.com> wrote:
> > I have created distributed volume,  created a 1 GB volume on it, and 
> > attached it to the VM and created a filesystem on it.  How to verify that the files in the vm are distributed across both the bricks on two servers ?
> >
> >
> >
> > -----Original Message-----
> > From: Franco Broi [mailto:franco.broi at iongeo.com]
> > Sent: Tuesday, June 03, 2014 1:04 PM
> > To: Gnan Kumar, Yalla
> > Cc: gluster-users at gluster.org
> > Subject: Re: [Gluster-users] Distributed volumes
> >
> >
> > Ok, what you have is a single large file (must be filesystem image??).
> > Gluster will not stripe files, it writes different whole files to different bricks.
> >
> > On Tue, 2014-06-03 at 07:29 +0000, yalla.gnan.kumar at accenture.com
> > wrote:
> >> root at secondary:/export/sdd1/brick# gluster volume  info
> >>
> >> Volume Name: dst
> >> Type: Distribute
> >> Status: Started
> >> Number of Bricks: 2
> >> Transport-type: tcp
> >> Bricks:
> >> Brick1: primary:/export/sdd1/brick
> >> Brick2: secondary:/export/sdd1/brick
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: Franco Broi [mailto:franco.broi at iongeo.com]
> >> Sent: Tuesday, June 03, 2014 12:56 PM
> >> To: Gnan Kumar, Yalla
> >> Cc: gluster-users at gluster.org
> >> Subject: Re: [Gluster-users] Distributed volumes
> >>
> >>
> >> What do gluster vol info and gluster vol status give you?
> >>
> >> On Tue, 2014-06-03 at 07:21 +0000, yalla.gnan.kumar at accenture.com
> >> wrote:
> >> > Hi,
> >> >
> >> > I have created a distributed volume on my   gluster node. I have attached this volume to a VM on openstack. The size is 1 GB. I have written files close to 1 GB onto the
> >> > Volume.   But when I do a ls inside the brick directory , the volume is present only on one gluster server brick. But it is empty on another server brick.  Files are meant to be
> >> > spread across both the bricks according to distributed volume definition.
> >> >
> >> > On the VM:
> >> > --------------
> >> >
> >> > # ls -al
> >> > total 1013417
> >> > drwxr-xr-x    3 root     root          4096 Jun  1 22:03 .
> >> > drwxrwxr-x    3 root     root          1024 Jun  1 21:24 ..
> >> > -rw-------    1 root     root     31478251520 Jun  1 21:52 file
> >> > -rw-------    1 root     root     157391257600 Jun  1 21:54 file1
> >> > -rw-------    1 root     root     629565030400 Jun  1 21:55 file2
> >> > -rw-------    1 root     root     708260659200 Jun  1 21:59 file3
> >> > -rw-------    1 root     root     6295650304 Jun  1 22:01 file4
> >> > -rw-------    1 root     root     39333801984 Jun  1 22:01 file5
> >> > -rw-------    1 root     root     78643200000 Jun  1 22:04 file6
> >> > drwx------    2 root     root         16384 Jun  1 21:24 lost+found
> >> > ----------
> >> > # du -sch *
> >> > 20.0M   file
> >> > 100.0M  file1
> >> > 400.0M  file2
> >> > 454.0M  file3
> >> > 4.0M    file4
> >> > 11.6M   file5
> >> > 0       file6
> >> > 16.0K   lost+found
> >> > 989.7M  total
> >> > ------------------------
> >> >
> >> >
> >> > On the gluster server nodes:
> >> > -----------------------
> >> > root at primary:/export/sdd1/brick# ll total 12 drwxr-xr-x 2 root root 
> >> > 4096 Jun  2 04:08 ./ drwxr-xr-x 4 root root
> >> > 4096 May 27 08:42 ../ root at primary:/export/sdd1/brick#
> >> > --------------------------
> >> >
> >> > root at secondary:/export/sdd1/brick# ll total 1046536
> >> > drwxr-xr-x 2 root root       4096 Jun  2 08:51 ./
> >> > drwxr-xr-x 4 root root       4096 May 27 08:43 ../
> >> > -rw-rw-rw- 1  108  115 1073741824 Jun  2 09:35
> >> > volume-0ec560be-997f-46da-9ec8-e9d6627f2de1
> >> > root at secondary:/export/sdd1/brick#
> >> > ---------------------------------
> >> >
> >> >
> >> > Thanks
> >> > Kumar
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > -----Original Message-----
> >> > From: Franco Broi [mailto:franco.broi at iongeo.com]
> >> > Sent: Monday, June 02, 2014 6:35 PM
> >> > To: Gnan Kumar, Yalla
> >> > Cc: gluster-users at gluster.org
> >> > Subject: Re: [Gluster-users] Distributed volumes
> >> >
> >> > Just do an ls on the bricks, the paths are the same as the mounted filesystem.
> >> >
> >> > On Mon, 2014-06-02 at 12:26 +0000, yalla.gnan.kumar at accenture.com
> >> > wrote:
> >> > > Hi All,
> >> > >
> >> > >
> >> > >
> >> > > I have created a distributed volume of 1 GB ,  using two bricks 
> >> > > from two different servers.
> >> > >
> >> > > I have written 7 files whose sizes are a total of  1 GB.
> >> > >
> >> > > How can I check that files are distributed on both the bricks ?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > Thanks
> >> > >
> >> > > Kumar
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > _________________________________________________________________
> >> > > ___
> >> > > __
> >> > >
> >> > >
> >> > > This message is for the designated recipient only and may contain 
> >> > > privileged, proprietary, or otherwise confidential information. 
> >> > > If you have received it in error, please notify the sender 
> >> > > immediately and delete the original. Any other use of the e-mail by you is prohibited.
> >> > > Where allowed by local law, electronic communications with 
> >> > > Accenture and its affiliates, including e-mail and instant 
> >> > > messaging (including content), may be scanned by our systems for 
> >> > > the purposes of information security and assessment of internal 
> >> > > compliance with Accenture policy.
> >> > > _________________________________________________________________
> >> > > ___
> >> > > __
> >> > > ________________
> >> > >
> >> > > www.accenture.com
> >> > > _______________________________________________
> >> > > Gluster-users mailing list
> >> > > Gluster-users at gluster.org
> >> > > http://supercolony.gluster.org/mailman/listinfo/gluster-users
> >> >
> >> >
> >> >
> >> >
> >> > ________________________________
> >> >
> >> > This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
> >> > ___________________________________________________________________
> >> > ___
> >> > ________________
> >> >
> >> > www.accenture.com
> >>
> >>
> >>
> >
> >
> >
> > _______________________________________________
> > Gluster-users mailing list
> > Gluster-users at gluster.org
> > http://supercolony.gluster.org/mailman/listinfo/gluster-users
> 





More information about the Gluster-users mailing list