acd_cli icon indicating copy to clipboard operation
acd_cli copied to clipboard

Unable to create LVM2 physical volume

Open ni3que opened this issue 9 years ago • 3 comments

Unfortunately its not possible to create a physical volume over a file which is stored on ACD and mounted via ACDFuse and loopback interface.

I got follwing error:

16-08-04 09:43:13.930 [DEBUG] [acdcli.acd_fuse] - -> getxattr /vserver1/backup0.img ('security.capability',)
16-08-04 09:43:13.939 [DEBUG] [acdcli.acd_fuse] - <- getxattr '[Errno 61] No data available'
16-08-04 09:43:13.940 [DEBUG] [acdcli.acd_fuse] - -> write /vserver1/backup0.img (4096, 4096, 2)
16-08-04 09:43:13.941 [ERROR] [acdcli.acd_fuse] - Wrong offset for writing to fh 2.
16-08-04 09:43:13.941 [DEBUG] [acdcli.acd_fuse] - <- write '[Errno 14] Bad address'

Any ideas?

Thanks & regard, Marko

ni3que avatar Aug 04 '16 07:08 ni3que

Only sequential (over)writes are supported, so that write at offset 4096 fails.

yadayada avatar Aug 04 '16 17:08 yadayada

ni3que, if you look at more of your log, does LVM2's writing pattern look like the issue I was having with ecryptfs? https://github.com/yadayada/acd_cli/issues/368

If so, I'm nearing completion on a PR that will allow for sequential writing using multiple file handles instead of requiring just one.

edit: yadayada, I didn't hear back in the other issue, is this a feature you'd be interested in?

bgemmill avatar Aug 04 '16 18:08 bgemmill

@bgemmill I guess writing on the current offset from different file handles will not have detrimental effects on standard write operations. If you make a PR, I probably will have a look at it on the weekend.

yadayada avatar Aug 04 '16 18:08 yadayada