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.60) (envelope-from ) id 1GkpM6-0006YJ-SN for garchives@archives.gentoo.org; Thu, 16 Nov 2006 22:05:11 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kAGM0H29011215; Thu, 16 Nov 2006 22:00:17 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kAGLuPKX029486 for ; Thu, 16 Nov 2006 21:56:26 GMT Received: by nf-out-0910.google.com with SMTP id c31so1993295nfb for ; Thu, 16 Nov 2006 13:56:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=a7O/n5jISyhHuV5CNVYgOp+NXmF2zo0Bz2E7m0hMIo0uwWRG57TpzsqUu2VRh+VG4VEOZOxt0k7sfPziJamPwEILMKw+rNcGLh4YI6XUfoExGUWYSrkmR6Lgv8hWccnBcRdj7XsdVON8PiAkOiEoS2JWAoM2uQHwNEGAW7EIWJk= Received: by 10.82.127.15 with SMTP id z15mr136168buc.1163714185254; Thu, 16 Nov 2006 13:56:25 -0800 (PST) Received: by 10.82.176.16 with HTTP; Thu, 16 Nov 2006 13:56:25 -0800 (PST) Message-ID: <794831050611161356y3bf3db8fjfdb5e35d4b567c62@mail.gmail.com> Date: Thu, 16 Nov 2006 22:56:25 +0100 From: jakommo To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Resize / In-Reply-To: <200611162230.03967.wonko@wonkology.org> 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: multipart/alternative; boundary="----=_Part_92266_12833148.1163714185225" References: <794831050611160955s2cd593f0pb2c1fdb8b6057bcc@mail.gmail.com> <455CB20A.2070403@yahoo.fr> <794831050611161253p19322807k99ef6d70afbb3de9@mail.gmail.com> <200611162230.03967.wonko@wonkology.org> X-Archives-Salt: ba166c77-3adf-42e3-9e49-1d60bc9f59e4 X-Archives-Hash: 9deb82fb09075bb418ff1cb2e23812ab ------=_Part_92266_12833148.1163714185225 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/16/06, Alex Schuster wrote: > > jakommo writes: > > > On 11/16/06, geistteufel wrote: > > > > If you have opt in your / I suggest to move it and doing a symlink > > > > > > like cd /; mv opt usr; ln -s usr/opt . > > For now I think maybe its better to make some new partitions and copy > the > > stuff to them by using a live cd and then adjust fstab and/or make > > symlinks. the problem is the maschine is a server and I dont want it to > > be down for a long time, its only used for cups at the moment, but I > > think its more secure to quit the idea of resizing and do it the mount > > and symlink way. another benefit of this way is I can prepare everything > > so I only need to reboot with a live cd to copy the files and thats it. > > I don't think there is a neeed to boot from CD for that. Just copy /usr > (or > whatever directory you like) to its new destination, rename /usr and > create > the symlink instantly after that: > > cp -pr /usr /newdrive/ > mv /usr /usr.old && /usr.old/bin/ln -s /newdrive/usr / > > This makes /usr unavailable for a fraction of seconds only. Programs > currently using files in /usr should not be affected, when the files are > still open it should not matter if they are renamed as long as they stay > on > the same partition. > > Alex > -- > gentoo-user@gentoo.org mailing list > > thanks Alex, I think I try that, but I wait for a moment where it doesn't metter if something goes wrong. jakommo ------=_Part_92266_12833148.1163714185225 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 11/16/06, Alex Schuster <wonko@wonkology.org> wrote:
jakommo writes:

> On 11/16/06, geistteufel <geistteufel@yahoo.fr> wrote:

> > If you have opt in your / I suggest to move it and doing a symlink
> >
> > like cd /; mv opt usr; ln -s usr/opt .
> For now I think maybe its better to make some new partitions and copy the
> stuff to them by using a live cd and then adjust fstab and/or make
> symlinks. the problem is the maschine is a server and I dont want it to
> be down for a long time, its only used for cups at the moment, but I
> think its more secure to quit the idea of resizing and do it the mount
> and symlink way. another benefit of this way is I can prepare everything
> so I only need to reboot with a live cd to copy the files and thats it.

I don't think there is a neeed to boot from CD for that. Just copy /usr (or
whatever directory you like) to its new destination, rename /usr and create
the symlink instantly after that:

cp -pr /usr /newdrive/
mv /usr /usr.old && /usr.old/bin/ln -s /newdrive/usr /

This makes /usr unavailable for a fraction of seconds only. Programs
currently using files in /usr should not be affected, when the files are
still open it should not matter if they are renamed as long as they stay on
the same partition.

        Alex
--
gentoo-user@gentoo.org mailing list


thanks Alex,

I think I try that, but I wait for a moment where it doesn't metter if something goes wrong.

jakommo
------=_Part_92266_12833148.1163714185225-- -- gentoo-user@gentoo.org mailing list