[ale] moving /var
Jeff Lightner
jlightner at water.com
Mon Feb 19 13:10:48 EST 2007
Sometimes dropping to single user mode doesn't actually do it - you may
have to reboot into single user mode to insure it is free.
Run lsof /var (or fuser if you don't have lsof) to be sure it's not in
use.
In single user you'll likely need to mount /var by hand. You'll also
have to mount your new filesystem as something like /mnt.
To preserve permissions/ownership/group/date information you can do
something like:
cp -pR /var/* /mnt/*
(Doing the /* means it will copy the contents rather than the directory
so you avoid ending up with something like /mnt/var/...) You could use
the -p option of cpio instead.
-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
To: ale at ale.org
Chris Coleman
Sent: Monday, February 19, 2007 12:40 PM
To: 'Atlanta Linux Enthusiasts'
Subject: Re: [ale] moving /var
Single user mode is best. Be careful to keep the permissions and
ownership
intact when you copy the files to the new partition.
Chris
-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Paul
To: ale at ale.org
Cartwright
Sent: Monday, February 19, 2007 12:03 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] moving /var
I have a need to increase the size of a /var partition for someone.
I've got info on adding the new drive, creating partitions, adding to
fstab,
relabeling partitions. What I'm not sure about is an active system
partition
like /var . Once I create the new partition on the new drive, will I
have a
problem copying all the files from /var to the new drive while the
system is
running? Will putting it in single user mode work?
any other gotchas I should know about?
this is a RedHat 3 update 6 Enterprise server.
thanks,
--
Paul Cartwright
Registered Linux user # 367800
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.2/692 - Release Date:
2/18/2007
4:35 PM
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.2/692 - Release Date:
2/18/2007
4:35 PM
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list