Re: mkswap - unable to relabel, operation not supported

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Mar 10, 2011 at 3:24 PM, Daniel J Walsh <dwalsh@xxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 03/10/2011 04:02 PM, neubyr wrote:
>> 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
>> _______________________________________________
>> CentOS mailing list
>> CentOS@xxxxxxxxxx
>> http://lists.centos.org/mailman/listinfo/centos
> Are you doing this on an NFS partition?
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk15QXwACgkQrlYvE4MpobP5VACeNEP3g4OJ0ATA040L8w78He2v
> 9pkAnAuPlGSVHWPoYmIy/BAiekFgeuD+
> =1orM
> -----END PGP SIGNATURE-----
>

Yup, the 'var' directory in path above is a nfs mount. Is there anyway
I can enable this?

Thanks,
neuby.r
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux