Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 986114 - ssm: wrong size when resizing btrfs pool
Summary: ssm: wrong size when resizing btrfs pool
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: system-storage-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukáš Czerner
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-19 01:59 UTC by Jimmy Pan
Modified: 2015-07-20 00:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-19 02:03:12 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jimmy Pan 2013-07-19 01:59:58 UTC
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-19 02:03:12 UTC
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.