moving dir /var from one drive to another

James D. Parra Jamesp at MusicReports.com
Tue Apr 6 23:22:06 UTC 2004


Thank you very much. 

Actually, I want to move /var to the system drive (from slave to master
drive, so everything will be on a single drive.)

How do I boot into single user mode? Will the file system be read-only?
After moving /var and removing its mount entry in "fstab" will the system
reboot correctly? As you can see, I am a little nervous. This server is a
production server.

Thank you, again,

James 


-----Original Message-----
From: Stephen Kuhn [mailto:skuhn at telpacific.com.au]
Sent: Tuesday, April 06, 2004 4:09 PM
To: General Red Hat Linux discussion list
Subject: Re: moving dir /var from one drive to another


On Wed, 2004-04-07 at 08:41, James D. Parra wrote:
> Hello,
> 
> We have a drive that is slowly dieing and we need to move the /var
directory
> from this drive to the master drive. How can we do this without loosing
data
> or trashing the OS after a reboot?
> 
> Thank you in advance,
> 
> James 

I've had to do this recently on an RH9 box.

Install the new drive. Boot into rescue mode from the install CD and
mount as per instructed. Format the new drive as however you desire.
Mount the new drive somewhere - probably under /mnt temporarily. Copy
all the data in /var to the new drive. Remove the old drive and once
again reboot in rescue mode as before. Edit the /etc/fstab to reflect
the new mount as /var.
 
stephen kuhn - owner
==============================
illawarra computer services
a kuhn media australia company
http://kma.0catch.com
------------------------------------------------------------------
  * This message was composed on a 100% Microsoft free computer *
  We expressly refuse to utilise Microsoft DRM encoded documents
------------------------------------------------------------------
One good thing about music, Well, it helps you feel no pain. So hit me
with music; Hit me with music now. -- Bob Marley, "Trenchtown Rock"


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list





More information about the redhat-list mailing list