RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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:
Embargoed:


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.