SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I love using LVM with EXT4. I see no reason to use LVM with BTRFS.
If you must (and I am VERY curious why you would) I would look for two things: 1) how to do it with LVM and EXT4, then 2) how to do it with btrfs. You are going to be replacing the EXT4 steps with the BTRFS commands.
Madness.
btrfs is not (just) a filesystem, it is more a data manager - aka LVM+ext4 say or zfs. Putting btrfs on top of another block device layer makes no sense. Unless you have a very specific edge case - in which case let's hear about it.
How did you reach this configuration ?. I'm guessing an in-place conversion from ext to btrfs - if so, why ?.
/dev/sde, ID: 2
Device size: 20.00GiB
Unallocated: 20.00GiB
Initially before to add /dev/sde
df -h /u
Filesystem Size Used Avail Use% Mounted on
/dev/sdc 20G 3.8M 18G 1% /u
After i added /dev/sde
df -h /u
Filesystem Size Used Avail Use% Mounted on
/dev/sdc 40G 3.8M 38G 1% /u
No need to expand /u.Give me example when i need to extend filesystem?Only if i shrunk first this filesystem?
then
btrfs filesystem resize 9g /u
Resize '/u' of '9g'
linux-l9l8:~ # df -h /u
Filesystem Size Used Avail Use% Mounted on
/dev/sdc 29G 3.8M 27G 1% /u
Why i have the size reduced at 29G?
btrfs fi sh /u
Label: none uuid: bed671b0-9e2b-47dd-b864-75f7cdfef0f0
Total devices 2 FS bytes used 416.00KiB
devid 1 size 9.00GiB used 2.02GiB path /dev/sdc
devid 2 size 20.00GiB used 0.00B path /dev/sde
I see that only filesystem on /dev/sdc is reduced to 9g.
if now
btrfs filesystem resize -9g /u
btrfs filesystem resize: invalid option -- '9'
usage: btrfs filesystem resize [devid:][+/-]<newsize>[kKmMgGtTpPeE]|[devid:]max <path>
Resize a filesystem
If 'max' is passed, the filesystem will occupy all available space
on the device 'devid'.
[kK] means KiB, which denotes 1KiB = 1024B, 1MiB = 1024KiB, etc.
why this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.