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 tansta...@libertytrek.org 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

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 tansta...@libertytrek.org 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

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 pe...@prh.myzen.co.uk 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

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

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 better

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 da...@happypenguincomputers.com 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

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 da...@happypenguincomputers.com 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

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

2013-12-04 Thread Tanstaafl
On 2013-12-03 8:19 AM, Tanstaafl tansta...@libertytrek.org 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

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 directory.

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 n...@digimed.co.uk 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

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 bi...@iinet.net.au 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

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 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 Canek Peláez Valdés
On Tue, Dec 3, 2013 at 12:06 AM, Canek Peláez Valdés can...@gmail.com wrote: On Mon, Dec 2, 2013 at 10:34 PM, Jc García jyo.gar...@gmail.com wrote: 2013/12/2 William Kenworthy bi...@iinet.net.au You are looking far too deep just rsync -avP to /newusr +1 I have done this more or less

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 can...@gmail.com: On Tue, Dec 3, 2013 at 12:06 AM, Canek Peláez Valdés can...@gmail.com wrote: On Mon, Dec 2, 2013 at 10:34 PM, Jc García jyo.gar...@gmail.com wrote: 2013/12/2 William Kenworthy bi...@iinet.net.au You are looking far too deep just rsync

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 jyo.gar...@gmail.com wrote: 2013/12/3 Canek Peláez Valdés can...@gmail.com: On Tue, Dec 3, 2013 at 12:06 AM, Canek Peláez Valdés can...@gmail.com wrote: On Mon, Dec 2, 2013 at 10:34 PM, Jc García jyo.gar...@gmail.com wrote: 2013/12/2 William

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 goes.

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 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

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 1:47 PM, Thanasis thana...@asyr.hopto.org 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

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

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. poiso...@gmail.com 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

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 thana...@asyr.hopto.org 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

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

2013-12-02 Thread Tanstaafl
On 2013-12-02 2:41 PM, Thanasis thana...@asyr.hopto.org wrote: on 12/02/2013 08:58 PM Tanstaafl wrote the following: On 2013-12-02 1:47 PM, Thanasis thana...@asyr.hopto.org wrote: on 12/02/2013 04:02 PM Tanstaafl wrote the following: So, here's the plan, please check me... 1. Boot off of

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 thana...@asyr.hopto.org 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

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

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 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

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, just

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

2013-12-02 Thread Jc García
2013/12/2 William Kenworthy bi...@iinet.net.au 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

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 bi...@iinet.net.au 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 -

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 jyo.gar...@gmail.com wrote: 2013/12/2 William Kenworthy bi...@iinet.net.au 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 ...