Re: CephFS: convert directory into subvolume

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

 



well, you should've used the ceph command to create the subvol
it's much simpler that way

$ ceph fs subvolume create mycephfs subvol2

The above command creates a new subvol (subvol2) in the default subvolume group.
So, in your case the actual path to the subvolume would be

/mnt/volumes/_nogroup/subvol2/<uuid>


On Tue, Aug 22, 2023 at 4:50 PM Eugen Block <eblock@xxxxxx> wrote:
>
> Hi,
>
> while writing a response to [1] I tried to convert an existing
> directory within a single cephfs into a subvolume. According to [2]
> that should be possible, I'm just wondering how to confirm that it
> actually worked. Because setting the xattr works fine, the directory
> just doesn't show up in the subvolume ls command. This is what I tried
> (in Reef and Pacific):
>
> # one "regular" subvolume already exists
> $ ceph fs subvolume ls cephfs
> [
>      {
>          "name": "subvol1"
>      }
> ]
>
> # mounted / and created new subdir
> $ mkdir /mnt/volumes/subvol2
> $ setfattr -n ceph.dir.subvolume -v 1 /mnt/volumes/subvol2
>
> # still only one subvolume
> $ ceph fs subvolume ls cephfs
> [
>      {
>          "name": "subvol1"
>      }
> ]
>
> I also tried it directly underneath /mnt:
>
> $ mkdir /mnt/subvol2
> $ setfattr -n ceph.dir.subvolume -v 1 /mnt/subvol2
>
> But still no subvolume2 available. What am I missing here?
>
> Thanks
> Eugen
>
> [1]
> https://lists.ceph.io/hyperkitty/list/ceph-users@xxxxxxx/thread/G4ZWGGUPPFQIOVB4SFAIK73H3NLU2WRF/
> [2] https://www.spinics.net/lists/ceph-users/msg72341.html
>
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>


-- 
Milind
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[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