Re: Convert existing folder on cephfs into subvolume

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

 



You could set an xattr on the dir of your choice to convert it to a
subvolume.
eg.
# setfattr -n ceph.dir.subvolume -v 1 my/favorite/dir/is/now/a/subvol1

You can also disable the subvolume feature by setting the xattr value to 0
(zero)

But there are constraints on a subvolume dir, namely:
* you can't move/create one subvolume dir under another
* you can't hard-link a file across subvolumes
* you can't create snapshots on dirs below the subvolume dir, only at
subvolume root
* if subvolume xattr is set to 1 on parent dir of subvolume dir, then the
parent dir now enforces all constraints



On Tue, Jun 7, 2022 at 12:39 PM Stolte, Felix <f.stolte@xxxxxxxxxxxxx>
wrote:

> Hey guys,
>
> we are using the ceph filesystem since Luminous and exporting
> subdirectories via samba as well as nfs. We did upgrade to Pacific and want
> to use the subvolume feature. Is it possible to convert a subdirectory into
> a subvolume without using data?
>
> Best regards
> Felix
>
>
> ---------------------------------------------------------------------------------------------
>
> ---------------------------------------------------------------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Dr. Astrid Lambrecht, Prof. Dr. Frauke Melchior
>
> ---------------------------------------------------------------------------------------------
>
> ---------------------------------------------------------------------------------------------
>
> _______________________________________________
> 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