[ale] RE: mandrake upgrade (Herman, Izzie)

James P. Kinney III jkinney at localnetsolutions.com
Fri May 2 12:58:32 EDT 2003


All good advice so far.

Step 1 : backup what you want to keep !
Step 2 : switch to single user mode and verify that nothing is running
but init and a shell. Stop syslog as well.

Then it's safe to relocate /var to a previously formatted and mounted
drive. I would recommend cp -pr /var /mnt/<newvar-mount-dir>/

Then do a diff between the two locations. Then setup /etc/fstab to mount
the new drive to /var. return to init 5 (or 3) and verify the system is
good. If it's all OK, go back to init 1, unmount the /var drive. Then
delete the contents of the old var, remount the var drive and init back
to 5.

You don't want to copy var if you are not in runlevel 1. 

On Fri, 2003-05-02 at 12:43, Van L. Loggins wrote:
> also if you need to actually keep any of the logs or info currently 
> existing in /var then you should back it up either to tape or by copying 
> it to another location and then put it back into the new location for /var
> we had a similar situation with our redhat based mail and proxy server 
> on our network. We  needed to keep the SQUID logs,etc.  for monitoring 
> purposes so simply deleting /var wasn't an option for us.
> this is my first post to the list, Hi guys!!! *Waves!!!*
> 
> Van Loggins
> 
> 
> 
> >I've never used disk drake...but when moving /var...you need to make sure
> >that all the same directories are there with the proper permissions and
> >ownerships so that programs can write to where the need to.
> >
> >Other than that, as long as it's in the fstab, you should be good.
> >
-- 
James P. Kinney III          \Changing the mobile computing world/
CEO & Director of Engineering \          one Linux user         /
Local Net Solutions,LLC        \           at a time.          /
770-493-8244                    \.___________________________./
http://www.localnetsolutions.com

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 

 This is a digitally signed message part




More information about the Ale mailing list