Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #261559

Re: usrmerge on root NFS will not be run automatically

From zithro <slack@rabbit.lu>
Newsgroups linux.debian.user
Subject Re: usrmerge on root NFS will not be run automatically
Date 2023-09-08 17:00 +0200
Message-ID <HbL7H-7API-3@gated-at.bofh.it> (permalink)
References <HbHx7-7yPN-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 08 Sep 2023 12:54, Marco wrote:
>    Warning: NFS detected, /usr/lib/usrmerge/convert-usrmerge will not be run
>    automatically. See #842145 for details.

Read :
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842145
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039522

The solution would be :
"convert-usrmerge can be run in a chroot on the NFS server"

If your NFS server is not Linux-based, carefully copy the files over a 
Linux machine, chroot+convert there, then move back to the NFS server.
Make backups ;)
Can help: 
https://unix.stackexchange.com/questions/312218/chroot-from-freebsd-to-linux


As per the why, I don't know.
Maybe the symlink handling by NFS ?

Reading the script "/usr/lib/usrmerge/convert-usrmerge", you get the 
reasons why it fails :

142     # The other cases are more complex and there are some corner 
cases that
143     # we do not try to resolve automatically.
144
145     # both source and dest are links
[...]
168     # the source is a link
[...]
175     # the destination is a link
[...]
191     # both source and dest are directories
192     # this is the second most common case

You may change the script to detect where/why it fails, so edit
     fatal("Both $n and /usr$n exist");
to
     fatal("Both $n and /usr$n exist - err line 145");
     fatal("Both $n and /usr$n exist - err line 168");

Also found this on
"https://en.opensuse.org/openSUSE:Usr_merge#Known_Problems" :

- "File systems that do not support RENAME_EXCHANGE such as ZFS or NFS 
cannot perform live conversion (Bug 1186637)"
- "Conversion fails if there's a mount point below 
(/usr)/{bin,sbin,lib,lib64}"

Good luck

-- 
++
zithro / Cyril

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

usrmerge on root NFS will not be run automatically Marco <lists@homerow.info> - 2023-09-08 13:10 +0200
  Re: usrmerge on root NFS will not be run automatically zithro <slack@rabbit.lu> - 2023-09-08 17:00 +0200
    Re: usrmerge on root NFS will not be run automatically Marco <lists@homerow.info> - 2023-09-08 18:10 +0200
  Re: usrmerge on root NFS will not be run automatically Stefan Monnier <monnier@iro.umontreal.ca> - 2023-09-08 18:50 +0200

csiph-web