[ceph-users] Re: CephFS: convert directory into subvolume

2023-10-12 Thread Eugen Block
Hi, you'll need to have either both mount points mounted on your host or simply mount the root directory. I don't think there's a different method available to convert directories to subvolumes. Zitat von jie.zha...@gmail.com: Eugon, Thank you, however I'm am still lost. I can create a s

[ceph-users] Re: CephFS: convert directory into subvolume

2023-10-11 Thread jie . zhang7
Eugon, Thank you, however I'm am still lost. I can create a subvolume group, that I understand. The issue is '/volume/' isn't a real directory on the host, it's a 'virtual directory' in cephfs. '/mnt/tank/database' is a real folder structure on the host. I can't `mv /mnt/tank/database /volu

[ceph-users] Re: CephFS: convert directory into subvolume

2023-10-10 Thread Eugen Block
Hi, check out this thread [1] as well, where Anh Phan pointed out: Not really sure what you want, but for simplicity, just move folder to following structure: /volumes/[Sub Volume Group Name]/[Sub Volume Name] ceph will recognize it (no extend attr needed), if you use subvolumegroup name d

[ceph-users] Re: CephFS: convert directory into subvolume

2023-10-10 Thread jie . zhang7
Hello, I'm following this tread and the original. I'm trying to convert directories into subvolumes. Where I'm stuck is how you move a directory into the subvolume root directory. I have a volume 'tank' and it's mounted on the host as '/mnt/tank' I have subfolders '/mnt/tank/database', '/mn

[ceph-users] Re: CephFS: convert directory into subvolume

2023-08-24 Thread Milind Changire
fyi - the xattr is indeed required even if the dir is under a subvolumegroup dir there's some management involved in the way the subvolume dir is created On Thu, Aug 24, 2023 at 5:10 PM Eugen Block wrote: > > Thanks, I understand that. I was just explicitly asking for the > conversion of an exis

[ceph-users] Re: CephFS: convert directory into subvolume

2023-08-24 Thread Eugen Block
Thanks, I understand that. I was just explicitly asking for the conversion of an existing directory (created without subvolume) with xattr as mentioned in the thread [2]. Anyway, apparently it works like Anh Phan stated in his response, moving an existing directory to the subvolumegroup sub

[ceph-users] Re: CephFS: convert directory into subvolume

2023-08-23 Thread Milind Changire
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/