[CentOS] filesystem rpm fails when /home is NFS mounted

Theo Band theo.band at greenpeak.com
Sun Apr 12 08:55:23 UTC 2009


R P Herrold wrote:
> On Wed, 1 Apr 2009, Paul Heinlein wrote:
>
>   
>> I don't know if it's a bug or a feature, but the
>> filesystem-2.4.0-2.el5.centos rpm won't upgrade cleanly if /home is an
>> NFS filesystem.
>>     
>
> I confirm this is present in 5.3 where /home is an NFS mount, 
> and that I missed it in testing.  A workaround is:
>
> 1. Boot into single user node.
> 2. run: /sbin/service network start
> 3. run: yum -y update filesystem
>
> If your system emitted the warning, but did not 'bail', it is 
> safe to retieve the rpm locally, and to run:
>
> # rpm -Uvh filesystem*rpm --force
>   
I have te same problem, an NFS mounted home share with root_squash. Yum
ignores the package, so I downloaded it and tried it with rpm:

[root at raaf ~]# rpm -Uvh --force filesystem-2.4.0-2.el5.centos.i386.rpm
Preparing...                ###########################################
[100%]
   1:filesystem             ###########################################
[100%]
error: unpacking of archive failed on file /home: cpio: chown failed -
Operation not permitted


But the package is still not installed (I don't know what you mean with
'bail' by the way). Is there another way to get this installed? Is there
perhaps an option to ignore any errors and just install (apparently
--force does not do that).
Unmounting is not an option, too many users on the machine. So a reboot
would be needed. As someone else mentioned, waiting a couple of weeks is
also an option, if it get's fixed in the end.

Theo




More information about the CentOS mailing list