[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 /volume/`

Re-reading the thread, is the answer basically:
1) Create group and subvolume
2) mount the subvolume onto the host and then move the data?

Or is there a more direct way to convert '/mnt/tank/database' to 
'/volume//database'

Thx!

Jie
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[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', '/mnt/tank/gitlab', etc...

I create a subvolume and getpath gives me:
/volumes/_nogroup/database/4a74

Questions:
1) How do I move /mnt/tank/database into /volumes/_nogroup/database/4a...74
2) Each of the directories have different pools associated with them, do I need 
to create the sub volume in the same pool?
3) Or can I just move '/mnt/tank/gitlab' --> /volumes/_nogroup/gitlab without 
first creating the volume?  This would skip question 2..

Thx!

Jie
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io