Unable to expand filesystem to larger size.

I'm trying to upgrade to a new 2 TB NVMe driver from an old 512 GB one for use in my Legion Go 1. 0. I put the new drive inside a NVMe <-> USB enclosure. 1. Attached that enclosure / interface to the LGO1. In a live environment, used ddrescue to make a 1:1 clone. 2. Attached that enclosure / interface to my laptop, and there: https://paste.debian.net/plain/1404573/ 3. Put the new (2 TB) NVMe drive inside the LGO1, and succesfully booted from it. However, old size was still maintained. 4. On the LGO1:
─$ sudo btrfs device scan
Scanning for Btrfs filesystems
registered: /dev/nvme0n1p3

─$ sudo btrfs filesystem resize max /sysroot
Resize device id 1 (/dev/nvme0n1p3) from 475.35GiB to max

─$ sudo btrfs filesystem df /sysroot
Data, single: total=469.34GiB, used=464.88GiB
System, DUP: total=8.12MiB, used=80.00KiB
Metadata, DUP: total=3.00GiB, used=1.88GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
─$ sudo btrfs device scan
Scanning for Btrfs filesystems
registered: /dev/nvme0n1p3

─$ sudo btrfs filesystem resize max /sysroot
Resize device id 1 (/dev/nvme0n1p3) from 475.35GiB to max

─$ sudo btrfs filesystem df /sysroot
Data, single: total=469.34GiB, used=464.88GiB
System, DUP: total=8.12MiB, used=80.00KiB
Metadata, DUP: total=3.00GiB, used=1.88GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
I tried:
─$ sudo mount -o remount,rw /sysroot

─$ sudo btrfs filesystem resize max /sysroot
Resize device id 1 (/dev/nvme0n1p3) from 475.35GiB to max

# But old size is still maintained...
─$ sudo btrfs filesystem df /sysroot
Data, single: total=469.34GiB, used=464.88GiB
System, DUP: total=8.12MiB, used=80.00KiB
Metadata, DUP: total=3.00GiB, used=1.88GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
─$ sudo mount -o remount,rw /sysroot

─$ sudo btrfs filesystem resize max /sysroot
Resize device id 1 (/dev/nvme0n1p3) from 475.35GiB to max

# But old size is still maintained...
─$ sudo btrfs filesystem df /sysroot
Data, single: total=469.34GiB, used=464.88GiB
System, DUP: total=8.12MiB, used=80.00KiB
Metadata, DUP: total=3.00GiB, used=1.88GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
So how should I now proceed?
1 Reply

Did you find this page helpful?