Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 515293 - RFE: Support formatting of new (ext3/4) filesystems for fs storage pool type
RFE: Support formatting of new (ext3/4) filesystems for fs storage pool type
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt (Show other bugs)
6.0
All Linux
low Severity low
: rc
: ---
Assigned To: Osier Yang
Virtualization Bugs
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-03 11:57 EDT by Daniel Berrange
Modified: 2012-06-20 02:20 EDT (History)
14 users (show)

See Also:
Fixed In Version: libvirt-0.9.9-1.el6
Doc Type: Enhancement
Doc Text:
No ducumentation needed.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-20 02:20:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0748 normal SHIPPED_LIVE Low: libvirt security, bug fix, and enhancement update 2012-06-19 15:31:38 EDT

  None (edit)
Description Daniel Berrange 2009-08-03 11:57:08 EDT
Description of problem:
The 'fs' storage pool type can only mount block devices which have already been formatted with a filesystem. 

The 'build' operation needs to be implemented for this pool type to allowing formatting of new filesystems on a block device.

Version-Release number of selected component (if applicable):
0.7.0

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 2 RHEL Product and Program Management 2009-08-03 12:19:09 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.
Comment 4 Dave Allan 2010-05-17 15:22:10 EDT
Moving to 6.1
Comment 7 Osier Yang 2011-01-29 02:08:17 EST
The patch was pushed into upstream early in Feb, 2010.

commit b738016b78f157be16ed3200fb0e0023e81e2adb
Author: Dave Allan <dallan@redhat.com>
Date:   Wed Feb 24 09:51:34 2010 +0100

    Format FS pools on creation
    
    Create the filesystem on the partition used by the pool
    * configure.ac: check for mkfs availability
    * libvirt.spec.in: add extra require on util-linux for mkfs
    * src/storage/storage_backend_fs.c: run mkfs with the expected
      fs type when creating a filesystem pool

Also checked libvirt RHEL6.1 source code. the patch is there. so move it to POST.
Comment 12 Osier Yang 2011-04-14 22:08:40 EDT
v4 patch sent to upstream.

https://www.redhat.com/archives/libvir-list/2011-April/msg00465.html
Comment 15 Osier Yang 2011-09-02 09:31:42 EDT
Patches committed into upstream:

ddcd5674aa59ab1f818f333090c0e695ffe93b67
27758859c7192603d803fe0733ac9c141304c762
660cb2530f5bf15183475da54980eb260454000a
Comment 17 Huang Wenlong 2012-01-10 01:50:09 EST
Verify this bug with: 
libvirt-0.9.9-1.el6.x86_64


#virsh pool-dumpxml sda1

<pool type='fs'>
  <name>sda1</name>
  <uuid>335d8d99-e88e-4d28-ec7d-5c6025d16fc2</uuid>
  <capacity>507744256</capacity>
  <allocation>10762240</allocation>
  <available>496982016</available>
  <source>
    <device path='/dev/sda1'/>
    <format type='ext4'/>
  </source>
  <target>
    <path>/var/lib/libvirt/images/sda1</path>
    <permissions>
      <mode>0700</mode>
      <owner>-1</owner>
      <group>-1</group>
    </permissions>
  </target>
</pool>

# virsh pool-build sda1 --overwrite 
Pool sda1 built

# virsh pool-start sda1  
Pool sda1 started

# mount
...
/dev/sda1 on /var/lib/libvirt/images/sda1 type ext4 (rw)
...
Comment 18 Osier Yang 2012-05-04 06:46:13 EDT
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No ducumentation needed.
Comment 20 errata-xmlrpc 2012-06-20 02:20:18 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0748.html

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