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

Path csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From zithro <slack@rabbit.lu>
Newsgroups linux.debian.user
Subject Re: usrmerge on root NFS will not be run automatically
Date Fri, 08 Sep 2023 17:00:01 +0200
Message-ID <HbL7H-7API-3@gated-at.bofh.it> (permalink)
References <HbHx7-7yPN-1@gated-at.bofh.it>
X-Mailbox-Line From debian-user-request@lists.debian.org Fri Sep 8 14:55:47 2023
Old-Return-Path <slack@rabbit.lu>
X-Amavis-Spam-Status No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AOJu0YyC3+lbNNfcEZDDTlcOCuOgyodvDRzzrgmE/q7rSd/2JE/zqP3n LE+b3yoLGOuYF8dpPvGLIxww56bBF5dV6fH2Q3I=
X-Google-SMTP-Source AGHT+IEqJNX9GVn5bbXrsMCZoRCldwYNOzwApcmLFT53TDC8I3cTaVL8DmZFR1DR/333/KUTO/BJiQ==
X-Received by 2002:a05:600c:2307:b0:401:38dc:891c with SMTP id 7-20020a05600c230700b0040138dc891cmr2363051wmo.5.1694184924722; Fri, 08 Sep 2023 07:55:24 -0700 (PDT)
MIME-Version 1.0
Content-Language en-US
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Mailing-List <debian-user@lists.debian.org> archive/latest/803214
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/fb218c4e-c910-fc79-7dd5-9f4712c7afc4@rabbit.lu
Approved robomod@news.nic.it
Lines 56
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 8 Sep 2023 16:55:23 +0200
X-Original-Message-ID <fb218c4e-c910-fc79-7dd5-9f4712c7afc4@rabbit.lu>
X-Original-References <20230908125408.7d35c8cb@homerow>
Xref csiph.com linux.debian.user:261559

Show key headers only | 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