[opensuse] need to move /var to RAID
Hello, How can I move /var, currently on the system drive, to the RAID drive without hosing my system? Many thanks in advance. James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mon, 05 Feb 2007, by Jamesp@MusicReports.com:
Hello,
How can I move /var, currently on the system drive, to the RAID drive without hosing my system?
Many thanks in advance.
Goto single user runlevel. # init S Then do whatever you have to do. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 10.2 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.18 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2007-02-05 at 22:51 +0100, Theo v. Werkhoven wrote:
Mon, 05 Feb 2007, by Jamesp@MusicReports.com:
Hello,
How can I move /var, currently on the system drive, to the RAID drive without hosing my system?
Many thanks in advance.
Goto single user runlevel. # init S Then do whatever you have to do.
Theo I don't think that would be safe, even a single user would most likely still have files open in /var...logs, etc... I vote with Brian...rescue boot!
Tom -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 05 February 2007 13:28, James D. Parra wrote:
Hello,
How can I move /var, currently on the system drive, to the RAID drive without hosing my system?
While the system is running??? Wouldn't really do that. Best option would be to build your new filesystem, boot a rescue CD, then mount your /var and /newvar partition. Now, if your /var is on your root (/) partition, then just mount your root partiton as /mnt and then do the following. tar cf - /mnt/var | (cd /mnt/newvar; tar xf - ) make sure you edit the /etc/fstab on YOUR root partition (assuming you mounted it like the other partitions above) to point to the /newvar partition. DON'T EDIT the rescue /etc/fstab, that won't get things done. There are lots of ways to go about doing this, but this is the way I've been doing it for the past 12 years. cpio and dd come to mind as alternatives. brian -- Brian Jackson Photo Sports ~ People ~ Events http://www.BrianJacksonPhoto.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Brian Jackson
-
James D. Parra
-
Theo v. Werkhoven
-
Tom Patton