[Tfug] my /usr and /var are huge
Stephen Hooper
stephen.hooper at gmail.com
Mon Apr 2 15:52:41 MST 2007
On 4/2/07, Charles R. Kiss <charles at kissbrothers.com> wrote:
> I have like three har d har hard drives; do I just move the data around
> and repartition on the same drive as / for separate /usr /var partitions
> (I'll figure out how to do that); or can I just copy the data sets to
> another drive with /usr /var directories and sym-link from the /
> partition (that's on a separate drive)? Do I sacrifice speed, energy,
> error, all of the above?
> I have no clue. I just know my / partition is getting huge.
>
> BTW, I really enjoyed following the battery talk.
>
> Hope you guys are having fun in Tucson!
> charles
An easy way to do this would be to take downtime, boot the computer
into single user mode, partition the new drives the way you want them
(i.e. /usr, and /var'), and then tar-copy the contents doing something
like:
cd /newusr
(cd /usr ; tar cvpf - .) | tar xvpf -
then add the new "/usr", and "/var" partitions to your fstab, and reboot.
If it all seems to work, then boot into single user again, make sure
"/usr", and "/var" are not mounted, and then rm the contents of the
old directories.
You could also look at LVM to make sure this kind of thing doesn't
bite you in the future.
More information about the tfug
mailing list