[sheepdog-users] sheepfs: cannot detach / error failed to create sheepfs layout

Gerald Richter - ECOS richter at ecos.de
Wed Sep 18 20:29:04 CEST 2013


I do the following:

sheepfs /mnt
echo vm-1202-disk-1 > /mnt/vdi/mount 
echo vm-1202-disk-1 > /mnt/vdi/unmount 

vm-1202-disk-1 is an existing vdi which is about 300GB in size and 180GB is used. 

If I try to really mount the image between the two echo comand, it works as expected, but I always get the error

 -bash: echo: write error: Invalid argument

when doing the echo to the unmount.

I have two node, copies is set to 3 and both node have two md discs. Also cache and jounrnal is used

Hope this helps

Gerald




> -----Ursprüngliche Nachricht-----
> Von: Liu Yuan [mailto:namei.unix at gmail.com]
> Gesendet: Donnerstag, 12. September 2013 13:16
> An: Gerald Richter
> Cc: Lista sheepdog user
> Betreff: Re: [sheepdog-users] sheepfs: cannot detach / error failed to create
> sheepfs layout
> 
> On Thu, Sep 12, 2013 at 01:07:54PM +0200, Gerald Richter - ECOS wrote:
> > > > > >
> > > > > > That was what I was expecting, but a simple test shows:
> > > > > >
> > > > > > #echo vm-1201-disk-1 > /mnt/vdi/mount #echo vm-1201-disk-1 >
> > > > > > /mnt/vdi/unmount
> > > > > > -bash: echo: write error: Invalid argument
> > > > > >
> > > >
> > > > Syslog:
> > > > Sep 12 05:21:33 srvvm4 sheepfs[169962]:
> > > > volume_sync_and_delete(499) Sep 12 05:21:33 srvvm4
> > > > sheepfs[169962]: failed to flush vdi fb24b0
> > > >
> > > > I have done a "dog vdi cache flush vm-1201-disk-1" afterwards and
> > > > all
> > > changes I have made in this image seems to be correctly written.
> > >
> > > We don't need any manual command for sheepfs. It is quit self-
> contained.
> > > echo 'xxx' > sheepfs/vdi/unmount will flush the cache if any (this
> > > cache means object cache enabled in the sheep to which sheepfs
> > > connect)
> > >
> >
> > That's exactly what is not working:
> >
> > #echo vm-1201-disk-1 > /mnt/vdi/unmount
> >  -bash: echo: write error: Invalid argument
> >
> > And syslog says:
> > Sep 12 05:21:33 srvvm4 sheepfs[169962]: volume_sync_and_delete(499)
> > Sep 12 05:21:33 srvvm4 sheepfs[169962]: failed to flush vdi fb24b0
> 
> Hmm, I should include more information about the failure. How to reproduce
> this problem reliably?
> 
> Thanks
> Yuan




More information about the sheepdog-users mailing list