On 04/02/2009 07:42 PM, Rodrique Heron wrote: > > lvcreate -L 20G -n spacewalk-01-disk0 VMVOL > File descriptor 3 left open > File descriptor 4 left open > Logical volume "spacewalk-01-disk0" created > /usr/bin/chcon -t virt_image_t /dev/mapper/VMVOL-spacewalk--01--disk0 > /usr/bin/chcon: failed to change context of > /dev/mapper/VMVOL-spacewalk--01--disk0 to system_u:object_r:virt_image_t:s0: > Invalid argument > /usr/sbin/semanage fcontext -a -t virt_image_t > /dev/mapper/VMVOL-spacewalk--01--disk0 > libsepol.context_from_record: type virt_image_t is not defined > libsepol.context_from_record: could not create context structure > libsemanage.validate_handler: invalid context > system_u:object_r:virt_image_t:s0 specified for > /dev/mapper/VMVOL-spacewalk--01--disk0 [all files] > libsemanage.dbase_llist_iterate: could not iterate over records > /usr/sbin/semanage: Could not add file context for > /dev/mapper/VMVOL-spacewalk--01--disk0 > SELinux security context setting to LVM partition failed > >
This is due to the SElinux context virt_image_t not being available on CentOS 5.3. Fortunately, CentOS 5.3 has just been released, which includes the necessary SElinux types. If that's an option for you, I'd suggest upgrading, if not, you could at least update the SElinux package (selinux-policy-targeted). Jasper _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
