How to rename a BTRFS subvolume?
Posted
by
hochl
on Super User
See other posts from Super User
or by hochl
Published on 2012-03-23T15:44:27Z
Indexed on
2012/03/23
17:33 UTC
Read the original article
Hit count: 276
I have a BTRFS filesystem with a set of subvolumes in it. So far so good. I need to change the name of a subvolume, unfortunately the btrfs
program does not allow me to rename a subvolume. Searching with Google has yielded some results, one said I can just mv
, the other said I can just snapshot
to a new name and delete the old subvolume. Before I crash my partition and have to reload it from the backup (it's quite large), my question is:
- What is the currently best way to rename a subvolume?
- Is it ok to just
mv
it, or will it invalidate some internal structures? - Is making a new snapshot and removing the old subvolume the way to go, or has this some drawbacks?
I know everything is still experimental, but for my purposes it has been working quite well (so far, and I have incremental backups for each day).
© Super User or respective owner