[CentOS] mkswap - unable to relabel, operation not supported
neubyr
neubyr at gmail.comThu Mar 10 21:02:57 UTC 2011
- Previous message: [CentOS] Any reliable way to determine LVM snapshot creation time?
- Next message: [CentOS] mkswap - unable to relabel, operation not supported
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I am getting following error on creating a swap fs. CentOS 5.5
{{{
mkswap: unable to relabel /srv/cloud/one/var/25/images/disk.1 to
system_u:object_r:swapfile_t: Operation not supported
}}}
The selinux is configured in permissive mode. Any clues on what might
be wrong here and how to fix it?
{{{
# /bin/dd if=/dev/zero of=/srv/cloud/one/var/25/images/disk.1 bs=1
count=1 seek=512M
# sudo /sbin/mkswap /srv/cloud/one/var/25/images/disk.1
Setting up swapspace version 1, size = 536866 kB
mkswap: unable to relabel /srv/cloud/one/var/25/images/disk.1 to
system_u:object_r:swapfile_t: Operation not supported
# file /srv/cloud/one/var/25/images/disk.1
/srv/cloud/one/var/25/images/disk.1: Linux/i386 swap file (new style)
1 (4K pages) size 131071 pages
}}}
--
thanks,
neuby.r
- Previous message: [CentOS] Any reliable way to determine LVM snapshot creation time?
- Next message: [CentOS] mkswap - unable to relabel, operation not supported
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list