Bug 986114 - ssm: wrong size when resizing btrfs pool
ssm: wrong size when resizing btrfs pool
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: system-storage-manager (Show other bugs)
7.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Lukáš Czerner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-18 21:59 EDT by Jimmy Pan
Modified: 2015-07-19 20:55 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-07-18 22:03:12 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jimmy Pan 2013-07-18 21:59:58 EDT
Description of problem:
ssm cannot be used to resize btrfs subvolume

Version-Release number of selected component (if applicable):
system-storage-manager-0.2-2.el7

How reproducible:
Always

Steps to Reproduce:
1. use dd and losetup to create loop devices
2. create mount point (/mnt/tmpmnt in this case)
3. ssm -b btrfs create /dev/loop0 /dev/loop1 /mnt/tmpmnt
4. ssm create -p btrfs_pool
5. use ssm resize command, see below

Actual results:
ssm resize a btrfs pool into the wrong size

Here are commands followed by result:

Before the resizing:
ssm list vol
-------------------------------------------------------------------------------------------------------------------------------
Volume                               Pool                       Volume size  FS       FS size       Free  Type    Mount point    
-------------------------------------------------------------------------------------------------------------------------------
/dev/rhel_intel-sugarbay-dh-01/swap  rhel_intel-sugarbay-dh-01      3.89 GB                               linear                 
/dev/rhel_intel-sugarbay-dh-01/root  rhel_intel-sugarbay-dh-01     50.00 GB  ext4    50.00 GB   35.04 GB  linear  /              
/dev/rhel_intel-sugarbay-dh-01/home  rhel_intel-sugarbay-dh-01    500.00 GB  ext4   500.00 GB  466.96 GB  linear  /home          
btrfs_pool                           btrfs_pool                     6.00 GB  btrfs    6.00 GB    6.00 GB  btrfs   /mnt/tmpmnt    
btrfs_pool:5                         btrfs_pool                     6.00 GB  btrfs    6.00 GB    6.00 GB  btrfs   /mnt/tmpmnt/5  
/dev/sdb1                                                         500.00 MB  xfs    495.31 MB  434.37 MB          /boot          
-------------------------------------------------------------------------------------------------------------------------------

sssm resize -s 3G btrfs_pool
Resize '/mnt/tmpmnt' of '3145728K'

After the resizingssm list vol
-------------------------------------------------------------------------------------------------------------------------------
Volume                               Pool                       Volume size  FS       FS size       Free  Type    Mount point    
-------------------------------------------------------------------------------------------------------------------------------
/dev/rhel_intel-sugarbay-dh-01/swap  rhel_intel-sugarbay-dh-01      3.89 GB                               linear                 
/dev/rhel_intel-sugarbay-dh-01/root  rhel_intel-sugarbay-dh-01     50.00 GB  ext4    50.00 GB   35.04 GB  linear  /              
/dev/rhel_intel-sugarbay-dh-01/home  rhel_intel-sugarbay-dh-01    500.00 GB  ext4   500.00 GB  466.96 GB  linear  /home          
btrfs_pool                           btrfs_pool                     7.00 GB  btrfs    7.00 GB    7.00 GB  btrfs   /mnt/tmpmnt    
btrfs_pool:5                         btrfs_pool                     7.00 GB  btrfs    7.00 GB    7.00 GB  btrfs   /mnt/tmpmnt/5  
/dev/sdb1                                                         500.00 MB  xfs    495.31 MB  434.37 MB          /boot          
-------------------------------------------------------------------------------------------------------------------------------


Expected results:
Able to resize a btrfs pool into the right size or reject to resize if not supported
Comment 1 Jimmy Pan 2013-07-18 22:03:12 EDT
The description of the problem, should be:
ssm resize btrfs pool into wrong size
Sorry for the mistake

Note You need to log in before you can comment on or make changes to this bug.