Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Apr 08, 2009 6:39 pm 
Offline

Joined: Wed Apr 08, 2009 6:22 pm
Posts: 1
I just setup a new node, and my idea was to allocate space as I would if I were partitioning a new physical build, however I wasn't aware that I would not be presented with a partitioning wizard (or at least, I *wasn't* presented with one, or perhaps skipped it? :S).

I would like to have /var on a separate partition but I don't know if it is feasible to try to move the existing filesystems (outlined below) or if I should just redo my partitions.

filesystem mounted on
/dev/xvda / (root)
varrun /var/run
varlock /var/lock
udev /dev
devshm /dev/shm
/dev/xvdc

Confronted with the varrun, varlock filesystems, I am unsure how exactly to proceed. Also, any other directories I would like on separate partitions, is it advisable to fix it, or just to refresh my node with a new install, as I haven't done too much work yet.

Thank you in advance.
R.


Top
   
 Post subject:
PostPosted: Wed Apr 08, 2009 11:32 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
The new install sets you up with default partitions, I believe.

Just boot into single-user mode, mount some other partition in /mnt (or wherever), move everything from /var into there, edit your fstab so that partition is mounted as /var, and reboot.


Top
   
PostPosted: Thu Apr 09, 2009 9:33 am 
Offline
Senior Member

Joined: Mon Feb 28, 2005 7:21 pm
Posts: 76
rlw wrote:
Confronted with the varrun, varlock filesystems, I am unsure how exactly to proceed. Also, any other directories I would like on separate partitions, is it advisable to fix it, or just to refresh my node with a new install, as I haven't done too much work yet.


You could create /var as its own disk image (important for the new backup system).

I personally just boot the profile in single-user mode, login with lish, move /var to /var.tmp, mount the new empty var image right at /var, and then copy everything over with tar.

You don't need to make a fresh install but you might need to resize your current root partition to make room for any additional images, such as /home, /usr or /var/log that you want to isolate.

The varrun and varlock filesystems should automatically mount in your new /var when you reboot. The only "trick" is that you won't be able to delete the old /var until you reboot.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group