Re: SOLVED - Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-09 Thread Peter Humphrey
On Sunday 08 Dec 2013 14:41:44 Tanstaafl wrote: > On 2013-12-03 8:19 AM, Tanstaafl wrote: > > Current command I'll be using: > > > > rsync -avHP --numeric-ids /mnt/gentoo/oldusr/ /mnt/gentoo/usr/ > > Well, that was about as uneventful as it gets... > > Took all of 6 minutes (and almost all of t

SOLVED - Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-08 Thread Tanstaafl
On 2013-12-03 8:19 AM, Tanstaafl wrote: Current command I'll be using: rsync -avHP --numeric-ids /mnt/gentoo/oldusr/ /mnt/gentoo/usr/ Well, that was about as uneventful as it gets... Took all of 6 minutes (and almost all of that was rsyncing /usr)... Made a forum post in case anyone else wa

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-06 Thread Bruce Hill
On Fri, Dec 06, 2013 at 11:35:29AM -0500, Tanstaafl wrote: > On 2013-12-06 8:13 AM, Bruce Hill wrote: > > There are reasons why rsync is better than cp. The best one IMO is that > > rysnc > > will not copy a corrupt file, while cp will. And rsync will tell you about > > the > > corrupt file. >

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-06 Thread Tanstaafl
On 2013-12-06 8:13 AM, Bruce Hill wrote: There are reasons why rsync is better than cp. The best one IMO is that rysnc will not copy a corrupt file, while cp will. And rsync will tell you about the corrupt file. Interesting and a good reason to use rsync over cp... if true... are you certain

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-06 Thread Bruce Hill
On Fri, Dec 06, 2013 at 06:07:01AM -0500, Tanstaafl wrote: > > And for the record (you didn't specifically say so), are you in > agreement that > > cp -a /usr/. /usr.tmp/. > > will accomplish the exact same thing as the rsync command I was planning > on using? There are reasons why rsync is b

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-06 Thread godzil
Le 2013-12-06 11:07, Tanstaafl wrote : And for the record (you didn't specifically say so), are you in agreement that cp -a /usr/. /usr.tmp/. will accomplish the exact same thing as the rsync command I was planning on using? For me, it's best to use rsync, because rsync will not copy file i

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-06 Thread Tanstaafl
On 2013-12-04 8:07 AM, Peter Humphrey wrote: On Wednesday 04 Dec 2013 07:28:18 Tanstaafl wrote: I've never used the -x option with cp... what exactly is meant by 'stay on same filesystem’?Should "Stay on same filesystem" is for the case in which you have another partition mounted somewhere i

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-04 Thread Peter Humphrey
On Wednesday 04 Dec 2013 07:28:18 Tanstaafl wrote: > I've never used the -x option with cp... what exactly is meant by 'stay > on same filesystem’?Should "Stay on same filesystem" is for the case in which you have another partition mounted somewhere in the tree below the current working directo

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-04 Thread Tanstaafl
On 2013-12-03 8:19 AM, Tanstaafl wrote: Current command I'll be using: rsync -avHP --numeric-ids /mnt/gentoo/oldusr/ /mnt/gentoo/usr/ I had initially been planning on just using cp, trying now to remember why I decided on using rsync - I think it was someone here who said it would be better

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-03 Thread Canek Peláez Valdés
On Tue, Dec 3, 2013 at 5:22 PM, Jc García wrote: > 2013/12/3 Canek Peláez Valdés : >> On Tue, Dec 3, 2013 at 12:06 AM, Canek Peláez Valdés >> wrote: >>> On Mon, Dec 2, 2013 at 10:34 PM, Jc García wrote: 2013/12/2 William Kenworthy > > You are looking far too deep > >

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-03 Thread Jc García
2013/12/3 Canek Peláez Valdés : > On Tue, Dec 3, 2013 at 12:06 AM, Canek Peláez Valdés wrote: >> On Mon, Dec 2, 2013 at 10:34 PM, Jc García wrote: >>> 2013/12/2 William Kenworthy You are looking far too deep just rsync -avP to /newusr >>> >>> +1 >>> I have done this

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-03 Thread Canek Peláez Valdés
On Tue, Dec 3, 2013 at 12:06 AM, Canek Peláez Valdés wrote: > On Mon, Dec 2, 2013 at 10:34 PM, Jc García wrote: >> 2013/12/2 William Kenworthy >>> >>> You are looking far too deep >>> >>> >>> just rsync -avP to /newusr >> >> +1 >> I have done this more or less the same way >>> >>> reboot to

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-03 Thread Bruce Hill
On Tue, Dec 03, 2013 at 11:06:16AM -0600, Bruce Hill wrote: > > mingdao@server ~ $ df -hT >│link/ether a0:88:b4:54:33:04 brd ff:ff:ff:ff:ff:ff > Filesystem Type Size Used Avail Use% Mounted on >

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-03 Thread Bruce Hill
On Tue, Dec 03, 2013 at 06:47:01AM -0500, Tanstaafl wrote: > > Yeah, when it comes to servers, I'm more of a wimp than not... but being > careful and conservative on my servers has saved me more times than I > can count, so I'm ok with it... ;) I have one server with separate /usr that's in LVM

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-03 Thread Tanstaafl
On 2013-12-02 5:24 PM, William Kenworthy wrote: You are looking far too deep just rsync -avP to /newusr But this would not copy the hardlinks... and there are a bunch on /usr, so... reboot to livecd rsync again with --delete to update ... takes a only few seconds this time - minimal

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-03 Thread Tanstaafl
On 2013-12-02 8:02 PM, Neil Bothwick wrote: On Tue, 03 Dec 2013 06:24:43 +0800, William Kenworthy wrote: You have got the disk space, so if you have a backup its reversible so don't be a wimp :) It's reversible even if there is no backup, because data it copied from /usr to /, not moved. If

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Canek Peláez Valdés
On Mon, Dec 2, 2013 at 10:34 PM, Jc García wrote: > 2013/12/2 William Kenworthy >> >> You are looking far too deep >> >> >> just rsync -avP to /newusr > > +1 > I have done this more or less the same way >> >> reboot to livecd >> >> rsync again with --delete to update ... takes a only few sec

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread William Kenworthy
On 03/12/13 12:34, Jc García wrote: > 2013/12/2 William Kenworthy >> You are looking far too deep >> >> >> just rsync -avP to /newusr > +1 > I have done this more or less the same way >> reboot to livecd >> >> rsync again with --delete to update ... takes a only few seconds this >> time - min

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Jc García
2013/12/2 William Kenworthy > > You are looking far too deep > > > just rsync -avP to /newusr +1 I have done this more or less the same way > > reboot to livecd > > rsync again with --delete to update ... takes a only few seconds this > time - minimal downtime :) > mv /usr /oldusr > mv /newu

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Neil Bothwick
On Tue, 03 Dec 2013 06:24:43 +0800, William Kenworthy wrote: > You have got the disk space, so if you have a backup its reversible so > don't be a wimp :) It's reversible even if there is no backup, because data it copied from /usr to /, not moved. If the new /usr doesn't work for any reason, jus

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread gottlieb
On Mon, Dec 02 2013, tansta...@libertytrek.org wrote: > On 2013-12-02 11:26 AM, gottl...@nyu.edu wrote: >> On Mon, Dec 02 2013, tansta...@libertytrek.org wrote: >>> So, here's the plan, please check me... >>> >>> 1. Boot off of the latest gentoo LiveDVD >>> >>> 2. Mount / and create new /usr dire

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread William Kenworthy
You are looking far too deep just rsync -avP to /newusr reboot to livecd rsync again with --delete to update ... takes a only few seconds this time - minimal downtime :) mv /usr /oldusr mv /newusr /usr reboot The --numeric-ids is a good idea but I've made my systems consistent with the stand

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Mick
On Monday 02 Dec 2013 20:40:28 Tanstaafl wrote: > On 2013-12-02 2:41 PM, Thanasis wrote: > > That is why I recommend using the option --numeric-ids. > > And using it would not hurt anyway. > > Right... poison pointed this out... > > This is why I asked for help about the arguments. > > I hones

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Tanstaafl
On 2013-12-02 2:41 PM, Thanasis wrote: on 12/02/2013 08:58 PM Tanstaafl wrote the following: On 2013-12-02 1:47 PM, Thanasis wrote: on 12/02/2013 04:02 PM Tanstaafl wrote the following: So, here's the plan, please check me... 1. Boot off of the latest gentoo LiveDVD If you boot a differe

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Thanasis
on 12/02/2013 08:58 PM Tanstaafl wrote the following: > On 2013-12-02 1:47 PM, Thanasis wrote: >> on 12/02/2013 04:02 PM Tanstaafl wrote the following: >>> >>> So, here's the plan, please check me... >>> >>> 1. Boot off of the latest gentoo LiveDVD >> >> If you boot a different system to do the rs

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Tanstaafl
On 2013-12-02 2:25 PM, Poison BL. wrote: An alternative to booting to external media, etc, would be a bind mount of / and /usr on separate temporary mount points, then dumping the data between them, leaving the existing system chugging along. A re-mount of the current /usr in -o ro mode might no

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Poison BL.
An alternative to booting to external media, etc, would be a bind mount of / and /usr on separate temporary mount points, then dumping the data between them, leaving the existing system chugging along. A re-mount of the current /usr in -o ro mode might not be a terrible idea in that case. I had a g

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Tanstaafl
On 2013-12-02 1:47 PM, Thanasis wrote: on 12/02/2013 04:02 PM Tanstaafl wrote the following: So, here's the plan, please check me... 1. Boot off of the latest gentoo LiveDVD If you boot a different system to do the rsync, or, if you do it over ssh, add the option --numeric-ids Thanks, but

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Thanasis
on 12/02/2013 04:02 PM Tanstaafl wrote the following: > > So, here's the plan, please check me... > > 1. Boot off of the latest gentoo LiveDVD If you boot a different system to do the rsync, or, if you do it over ssh, add the option --numeric-ids I usually do rsync -aHvxW --numeric-ids --delete

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Tanstaafl
On 2013-12-02 11:26 AM, gottl...@nyu.edu wrote: On Mon, Dec 02 2013, tansta...@libertytrek.org wrote: So, here's the plan, please check me... 1. Boot off of the latest gentoo LiveDVD 2. Mount / and create new /usr directory I am missing something. I would have thought your old / (dev/sda3

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread gottlieb
On Mon, Dec 02 2013, tansta...@libertytrek.org wrote: > Is rsync -a enough for my relatively simple system setup, or would > using any or all of the other options suggested in those threads be > safer/better? Specifically: > > -a, or -axAHX, or -apogXx, or -PvasHAX I am not an expert but here goe

[gentoo-user] Merging separate /usr back into / - one last time...

2013-12-02 Thread Tanstaafl
Hi all, This was discussed within a couple of threads in the last few months, but I wanted to ask for final clarification before I go ahead with this (yeah, I know, 'paranoia will destroy ya')... I'm not afraid of an initramfs any more, but I've decided that I still just really don't want on