1 |
On 03/12/13 12:34, Jc García wrote: |
2 |
> 2013/12/2 William Kenworthy <billk@×××××××××.au> |
3 |
>> You are looking far too deep .... |
4 |
>> |
5 |
>> |
6 |
>> just rsync -avP to /newusr |
7 |
> +1 |
8 |
> I have done this more or less the same way |
9 |
>> reboot to livecd |
10 |
>> |
11 |
>> rsync again with --delete to update ... takes a only few seconds this |
12 |
>> time - minimal downtime :) |
13 |
>> mv /usr /oldusr |
14 |
>> mv /newusr /usr |
15 |
>> reboot |
16 |
> |
17 |
> Let's make this thread more interesting, would it be possible to do |
18 |
> this without a reboot? ie: going single user mode, kill anything that |
19 |
> might still be running from usr, umount /usr, mount it to /mnt, rsync |
20 |
> -avP to usr, going again into runlevel 3 or 5. |
21 |
> Obviously not possible if running systemd. |
22 |
> |
23 |
I did try it single user mode - it works but I rebooted when the |
24 |
pressure came off just in case. Wanted minimal downtime. |
25 |
|
26 |
BillK |