Re: CephFS Big Size File Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm using admin key with following "ceph auth list" output. I don;t see any problem there. I'm not sure sure it is related to path restriction since dd with small file was OK.

client.admin
        key: AQBBk81Wk76dBxAA0SGKyJGgfSUt202NKX8tNQ==
        caps: [mds] allow *
        caps: [mon] allow *
        caps: [osd] allow *

Best regards,

On Thu, Aug 25, 2016 at 8:15 PM, Yan, Zheng <ukernel@xxxxxxxxx> wrote:
On Thu, Aug 25, 2016 at 11:12 AM, Lazuardi Nasution
<mrxlazuardin@xxxxxxxxx> wrote:
> Hi,
>
> My setup is default. How can I know if there is path restriction? If it is
> path restriction, why operation with small size if file is OK?
>

run "ceph auth list". check if there is "path=/XXX" in MDS' auth string

> Best regards,
>
>
> On Aug 25, 2016 08:12, "Yan, Zheng" <ukernel@xxxxxxxxx> wrote:
>>
>> have you enabled path restriction on cephfs?
>>
>> On Thu, Aug 25, 2016 at 1:25 AM, Lazuardi Nasution
>> <mrxlazuardin@xxxxxxxxx> wrote:
>> > Hi,
>> >
>> > I have problem with CephFS on writing big size file. I have found that
>> > my
>> > OpenStack Nova backup was not working after I change the rbd based mount
>> > of
>> > /var/lib/nova/instances/snapshots to CephFS based (mounted on /etc/fstab
>> > on
>> > all Nova compute nodes). I couldn't relize the cause until I tried to do
>> > some test below.
>> >
>> > [root@compute-aa instances]# sudo -S -u nova dd if=/dev/zero
>> > of=./snapshots/test/test.dat bs=4096 count=1024
>> > 1024+0 records in
>> > 1024+0 records out
>> > 4194304 bytes (4.2 MB) copied, 0.002956 s, 1.4 GB/s
>> >
>> > It seem that making 4.2MB size file is OK. The "test" folder was been
>> > created by nova user too.
>> >
>> > [root@compute-aa instances]# sudo -S -u nova dd if=/dev/zero
>> > of=./snapshots/test/test.dat bs=4096 count=1048576
>> >
>> > This test was hang and gave me "D state" of dd process which cannot be
>> > killed, so I must reboot that node. This make afraid to do some more
>> > test
>> > with lower size. When I tried to see the folder content, I found
>> > following
>> > result.
>> >
>> > [root@compute-aa ~]# ls -lah /var/lib/nova/instances/snapshots/test/
>> > total 0
>> > drwxr-xr-x 1 nova nova 0 Aug 24 22:35 .
>> > drwxr-xr-x 1 nova nova 0 Aug 24 22:33 ..
>> > -rw-r--r-- 1 nova nova 0 Aug 24 22:35 test.dat
>> >
>> > I prefer to use CephFS since the snapshot folder is only for temporary.
>> > Please help me to solve this problem.
>> >
>> > Best regards,
>> >
>> >
>> > _______________________________________________
>> > ceph-users mailing list
>> > ceph-users@xxxxxxxxxxxxxx
>> > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>> >

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux