Bug 1249478
Summary: | Not able to extend Btrfs file system on RHEL 7.1 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Awez <awshaikh> |
Component: | btrfs-progs | Assignee: | Ric Wheeler <rwheeler> |
Status: | CLOSED NOTABUG | QA Contact: | Filesystem QE <fs-qe> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | bkunal, xuw |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-17 14:27:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Awez
2015-08-03 06:54:23 UTC
I think that there is some misunderstanding for the "resize" cmd of btrfs. The resize format is " resize [<devid>:]<size>[gkm]|[<devid>:]max <path>", and if no devid applied, will use the default value '1'. From the message applied in Comment 0: [root@srv1-rhel7 ~]# btrfs filesystem show Label: none uuid: cbf6d3b8-0dc4-4424-87d2-1df38c2199a4 Total devices 2 FS bytes used 384.00KiB devid 1 size 350.00GiB used 2.04GiB path /dev/vdc devid 2 size 350.00GiB used 0.00 path /dev/vdd device with id 1 already added into btrfs filesystem, and the size btrfs can used is 359GiB. So when you use this cmd " btrfs filesystem resize +350g /btrfs/", the btrfs will find there is no extra 350GiB space in device 1, so will triger the -EFBIG. btrfs filesystem resize is used for device enlarge/shrink cases. for example: [root@hp-dl385pg8-09 ~]# btrfs fi show Label: none uuid: c24ca2d0-2d8a-4499-82c0-623484b4e2f2 Total devices 1 FS bytes used 128.00KiB devid 1 size 1.00GiB used 138.38MiB path /dev/loop0 [root@hp-dl385pg8-09 ~]# btrfs fi resize -100M /mnt Resize '/mnt' of '-100M' [root@hp-dl385pg8-09 ~]# btrfs fi show Label: none uuid: c24ca2d0-2d8a-4499-82c0-623484b4e2f2 Total devices 1 FS bytes used 128.00KiB devid 1 size 924.00MiB used 130.38MiB path /dev/loop0 [root@hp-dl385pg8-09 ~]# btrfs fi resize +100M /mnt Resize '/mnt' of '+100M' [root@hp-dl385pg8-09 ~]# btrfs fi show Label: none uuid: c24ca2d0-2d8a-4499-82c0-623484b4e2f2 Total devices 1 FS bytes used 128.00KiB devid 1 size 1.00GiB used 130.38MiB path /dev/loop0 As this is not a bug, so closing this and marking as "CLOSED" "NOTABUG". Please reopen in case issue is again found. -Regards, Awez |