[opensuse] expanding btrfs
Hello, After some error of mine I get a 42.3 btrfs root really full and so unable to run anything (not even booting). but... I have an other install (the one I use to write - Leap 15) and a available partition. my goal is to add this partition to the root to get room for subsequent operation. the simpler page I found is this one: https://www.thegeekdiary.com/how-to-resize-expand-a-btrfs-volume-filesystem/ (end of the page Add a new disk to btrfs volume) but I have a question. I have to make this action from my leap 15. Will this then allows me to boot my 42.3? What I mean: mount /dev/sdb1 /mnt # the actual 42.3 root btrfs device add /dev/sdb5 /mnt btrfs btrfs filesystem balance /mnt other reference: https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices#Ad... (I don't need raid, just add to disk size) jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Feb 13, 2019 at 10:48 AM jdd@dodin.org <jdd@dodin.org> wrote:
What I mean:
mount /dev/sdb1 /mnt # the actual 42.3 root btrfs device add /dev/sdb5 /mnt btrfs btrfs filesystem balance /mnt
I would not do it. SUSE installer/partitioner does not support multi-device btrfs at all, and I am not sure whether grub will also handle it correctly. Extend partition and resize filesystem. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 13/02/2019 à 09:24, Andrei Borzenkov a écrit :
On Wed, Feb 13, 2019 at 10:48 AM jdd@dodin.org <jdd@dodin.org> wrote:
What I mean:
mount /dev/sdb1 /mnt # the actual 42.3 root btrfs device add /dev/sdb5 /mnt btrfs btrfs filesystem balance /mnt
I would not do it. SUSE installer/partitioner does not support multi-device btrfs at all, and I am not sure whether grub will also handle it correctly. Extend partition and resize filesystem.
the two partitions are not contiguous, so I can't expand the root partition physically jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 13/02/2019 09.31, jdd@dodin.org wrote:
Le 13/02/2019 à 09:24, Andrei Borzenkov a écrit :
On Wed, Feb 13, 2019 at 10:48 AM jdd@dodin.org <jdd@dodin.org> wrote:
What I mean:
mount /dev/sdb1 /mnt # the actual 42.3 root btrfs device add /dev/sdb5 /mnt btrfs btrfs filesystem balance /mnt
I would not do it. SUSE installer/partitioner does not support multi-device btrfs at all, and I am not sure whether grub will also handle it correctly. Extend partition and resize filesystem.
the two partitions are not contiguous, so I can't expand the root partition physically
Then reorder all the partitions... dd the intermediate partition to another disk, etc. Or, create an LVM space on those two partitions, and create a single btrfs volume on it, if you are happy with LVM - I am not, so I would go the first route. There were tools that could move partitions. Partition Magic for Windows did, with some support for Linux. Maybe: <https://www.linuxalt.com/linux-alternatives-to/windows/partition_magic.html> -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
Le 13/02/2019 à 11:55, Carlos E. R. a écrit :
On 13/02/2019 09.31, jdd@dodin.org wrote:
the two partitions are not contiguous, so I can't expand the root partition physically
Then reorder all the partitions... dd the intermediate partition to another disk, etc.
why make things complicated when it can be simple? this disk is msdos one, root is first (primary) partition, other is somewhere in extended partition, so moving it would ask me to move most entirely a 500Mb disk. after reading many internet pages, I went ahead and could add the second partition. I now have a half empty disk where I can work and it boots perfectly. It's not yet revived because it don't connect by itself to the net (not even run yast, only zypper), I have to use a recovery system, but I expect to solve this soon thanks jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Carlos E. R.
-
jdd@dodin.org