Red Hat Bugzilla – Bug 515293
RFE: Support formatting of new (ext3/4) filesystems for fs storage pool type
Last modified: 2012-06-20 02:20:18 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:
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.
Moving to 6.1
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.
v4 patch sent to upstream. https://www.redhat.com/archives/libvir-list/2011-April/msg00465.html
Patches committed into upstream: ddcd5674aa59ab1f818f333090c0e695ffe93b67 27758859c7192603d803fe0733ac9c141304c762 660cb2530f5bf15183475da54980eb260454000a
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) ...
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.
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