From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FE1P1-0007VB-Hc for garchives@archives.gentoo.org; Tue, 28 Feb 2006 09:44:19 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1S9dPMq011212; Tue, 28 Feb 2006 09:39:25 GMT Received: from ender.volumehost.net (adsl-69-154-123-202.dsl.fyvlar.swbell.net [69.154.123.202]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1S9S4aB017290 for ; Tue, 28 Feb 2006 09:28:05 GMT Received: from localhost (localhost [127.0.0.1]) by ender.volumehost.net (Postfix) with ESMTP id 176F4EF50 for ; Tue, 28 Feb 2006 09:29:24 +0000 (UTC) Received: from ender.volumehost.net ([127.0.0.1]) by localhost (ender.volumehost.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22601-07-2 for ; Tue, 28 Feb 2006 09:29:22 +0000 (UTC) Received: from monster (ip70-178-175-2.ks.ks.cox.net [70.178.175.2]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ender.volumehost.net (Postfix) with ESMTP id D72B9EF4F for ; Tue, 28 Feb 2006 09:29:21 +0000 (UTC) From: "Boyd Stephen Smith Jr." To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Gentoo LVM Newbie Question Date: Tue, 28 Feb 2006 03:29:21 -0600 User-Agent: KMail/1.9.1 References: <200602270748.13076.ext-dirk.heinrichs@nokia.com> <200602272301.09811.krakrjak@volumehost.net> In-Reply-To: <200602272301.09811.krakrjak@volumehost.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602280329.21135.bss03@volumehost.net> X-Virus-Scanned: amavisd-new at volumehost.net X-Archives-Salt: 8fbe440b-730a-46ca-8f47-9ec58bd4e5dc X-Archives-Hash: e4e3bf85392353031354e6773be84f5b On Monday 27 February 2006 23:01, Zac Slade wrote about 'Re: [gentoo-user] Gentoo LVM Newbie Question': > On Monday 27 February 2006 00:48, Dirk Heinrichs wrote: > > Wrong. Switch to runlevel 1 (using "telinit 1"), which is for > > maintenance. In RL 1, no user processes are running and you can umount > > everything except /. Also, some maintenance tasks can be run when a filesystem is mounted read-only that can't be run when a filesystem is mounted read-write. So, you may be able to do some tasks without disturbing the system as much as a init 1 will do. > Partially right. Gentoo has several gotchas in runlevel 1. If /usr is > a seperate filesystem you have to be careful. Also, I've had init scripts leave things open in both /usr and /var, but these stragglers can be killed simply: fuser -mv # to list fuser -mk # to kill In my experience the processes killed will be either recreated when the service is restarted, or were not actually required for any service. > Bash by default is not > statically linked and requires readline (which is installed in > /usr/lib). Used to be a problem, isn't anymore. My bash is no longer linked to readline at all, and readline has been moved to /lib: # ls -l /lib/*readline* lrwxrwxrwx 1 root root 16 Feb 24 09:11 /lib/libreadline.so -> libreadline.so.5 lrwxrwxrwx 1 root root 18 Feb 24 09:11 /lib/libreadline.so.5 -> libreadline.so.5.1 -rwxr-xr-x 1 root root 246528 Feb 24 09:11 /lib/libreadline.so.5.1 > ls will require libgpm which is also in /usr/lib. This was a bug at one time, but IIRC, has been fixed. My ls no longer links to gpm at all, and gpm has been moved to /lib: # ls -l /lib/*gpm* lrwxrwxrwx 1 root root 11 Feb 24 08:01 /lib/libgpm.so -> libgpm.so.1 lrwxrwxrwx 1 root root 16 Feb 24 08:01 /lib/libgpm.so.1 -> libgpm.so.1.19.0 -rwxr-xr-x 1 root root 24160 Feb 24 08:01 /lib/libgpm.so.1.19.0 IMO, finding a binary in /bin or /sbin that links to a library in /usr (including /usr/local etc.) is probably grounds for a bug report, even if it's not currently causing any problems. > So you > have to be careful. One of the best things you can do for yourself is > install an all in one shell for maintenece like busybox or nash. This is a good idea, even if none of your particular examples are problematic. The crux of your argument is valid: some very useful programs reside in /usr or use libraries in /usr so when trying to umount it you must be prepared to do without those programs. > lvm is not statically linked and can require libraries out of /usr/lib > also. lvm2 is static by default, but I have enabled the "nolvmstatic" USE flag. This is in contrast to /other/ programs, like mdadm, which are just as important but only statically linked is the "static" USE flag is on. Why the developers decided this crazy behavior is acceptable is a mystery to me. IMO, lvm2 should just be using the static use flag like all the other packages. -- "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." -- Gentoo Developer Ciaran McCreesh -- gentoo-user@gentoo.org mailing list