Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

/var partition too small ... what to do ?

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  USB printer  
Author Message
siliconmike

External


Since: Jul 26, 2005
Posts: 5



(Msg. 1) Posted: Tue Jul 26, 2005 8:05 am
Post subject: /var partition too small ... what to do ?
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

Unfortunately the freebsd handbook told me to make the /var partition
un-reasonably small (256 mb)..

So I have all of my data + scripts on /usr partition on a localhost
instead of /var. And All config files are set up to find stuff in /usr.

But I'd like to put things in /var on remote server, without touching
my config files.

Would hard-linking work without flaw ?

Would there be a performance issue in case of hard-linking ?

Technologies I use are perl, apache, php, mysql.

Thanks
Mike

 >> Stay informed about: /var partition too small ... what to do ? 
Back to top
Login to vote
siliconmike

External


Since: Jul 26, 2005
Posts: 5



(Msg. 2) Posted: Tue Jul 26, 2005 8:59 am
Post subject: Re: /var partition too small ... what to do ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm dealing with umpteen number of config files, crons etc.. all which
point to directories in /usr partition.

Is there an alternative to hard linking, so that my data directories of
/usr are physically located in /var ?

Or what if I change the physical sequence of /usr and /var on the
remote server, while setting it up ? (Since our aim is to put varying
data on disk edge)..

Comments ?

Mike



Matthias Buelow wrote:
> siliconmike wrote:
>
> >But I'd like to put things in /var on remote server, without touching
> >my config files.
>
> that's asking for trouble.
>
> >Would hard-linking work without flaw ?
>
> hardlinks only work on the same device.
>
> >Would there be a performance issue in case of hard-linking ?
>
> no.
>
> mkb.

 >> Stay informed about: /var partition too small ... what to do ? 
Back to top
Login to vote
Matthias Buelow

External


Since: Apr 29, 2005
Posts: 12



(Msg. 3) Posted: Tue Jul 26, 2005 3:11 pm
Post subject: Re: /var partition too small ... what to do ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

siliconmike wrote:

>But I'd like to put things in /var on remote server, without touching
>my config files.

that's asking for trouble.

>Would hard-linking work without flaw ?

hardlinks only work on the same device.

>Would there be a performance issue in case of hard-linking ?

no.

mkb.
 >> Stay informed about: /var partition too small ... what to do ? 
Back to top
Login to vote
Bill Vermillion

External


Since: Sep 11, 2004
Posts: 32



(Msg. 4) Posted: Thu Jul 28, 2005 2:15 am
Post subject: Re: /var partition too small ... what to do ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
siliconmike wrote:
>I'm dealing with umpteen number of config files, crons etc.. all which
>point to directories in /usr partition.

>Is there an alternative to hard linking, so that my data directories of
>/usr are physically located in /var ?

Use symlinks. I do that for some things that would totally fill
/var.

>Or what if I change the physical sequence of /usr and /var on the
>remote server, while setting it up ? (Since our aim is to put varying
>data on disk edge)..

>Comments ?

Use the symlinks and you don't have to do much at all.

You can take the original /var/something and move it to
/var/something.orig, make a directory on /usr and then make
a symlink of /var/something point to /usr/something.

If you already have a lot of things in /var/something, do the
above, but after making the sylinks move the files from the /var
system to the /usr system.

Bill

>Matthias Buelow wrote:
>> siliconmike wrote:
>>
>> >But I'd like to put things in /var on remote server, without touching
>> >my config files.
>>
>> that's asking for trouble.
>>
>> >Would hard-linking work without flaw ?
>>
>> hardlinks only work on the same device.
>>
>> >Would there be a performance issue in case of hard-linking ?
>>
>> no.
>>
>> mkb.
>


--
Bill Vermillion - bv @ wjv . com
 >> Stay informed about: /var partition too small ... what to do ? 
Back to top
Login to vote
pachl

External


Since: Apr 30, 2005
Posts: 9



(Msg. 5) Posted: Thu Jul 28, 2005 5:44 am
Post subject: Re: /var partition too small ... what to do ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

1. Mount /var on a dedicated HDD. You can probably get a 3-8GB drive on
eBay for less than $15. If using IDE, place the disk on the secondary
controller if possible.

2. Run fdisk, disklabel and newfs on the new disk, then mount it on
/mnt.

3. # cd /mnt ; dump 0af - /var | restore xf -

Note - all of this info is in the Handbook, FAQ, and Man pages.

Regards,
Pachl
 >> Stay informed about: /var partition too small ... what to do ? 
Back to top
Login to vote
Roger Marquis

External


Since: Jul 29, 2005
Posts: 1



(Msg. 6) Posted: Fri Jul 29, 2005 3:28 pm
Post subject: Re: /var partition too small ... what to do ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

siliconmike wrote:
>Unfortunately the freebsd handbook told me to make the /var partition
>un-reasonably small (256 mb)..

The handbook reflects legacy practices that have not been a good
idea for over a decade.

>So I have all of my data + scripts on /usr partition on a localhost
>instead of /var. And All config files are set up to find stuff in /usr.

This is typical of the problems caused by partitioning the root
volume where it is not explicitly required. On average, this sort
of diskfull problem occurs an order of magnitude more often on
partitioned systems than systems with a single root partition
(assuming a single disk).

You can always workaround with symlink, diskformat, ... however,
doing so both ignores the cause of the problem and compounds it.
The best way to fix these problems is usually to reinstall _without_
/usr, /var, or other intra-disk or root-mounted partitions.

--
Roger Marquis
http://www.roble.net/marquis/
 >> Stay informed about: /var partition too small ... what to do ? 
Back to top
Login to vote
Matthias Buelow

External


Since: Apr 29, 2005
Posts: 12



(Msg. 7) Posted: Fri Jul 29, 2005 7:37 pm
Post subject: Re: /var partition too small ... what to do ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Roger Marquis writes:

>The best way to fix these problems is usually to reinstall _without_
>/usr, /var, or other intra-disk or root-mounted partitions.

I agree that for someone who's never setup Unix systems it's easier to
go with one big partition.
However, if nothing else, you'd want a seperate /home partition,
though, for backup purposes (although I somehow doubt that a newbie
does backups.)

mkb.
 >> Stay informed about: /var partition too small ... what to do ? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Partition advice - I need some advice creating partitions (on my 80 Gb harddisk -IDE) especially the /var and /usr partitions. It's a PII, 450 Mhz with 512 Mb RAM and I need to run Apache, PHP, MySQL (forum) and Postfix mailserver. It's not very heavy, it's for private use...

How to add the mirror partition to a RAID1 set with vinum - Hello, I am running FreeBSD 5.1 and would like to have all my partitions of by FreeBSD installation mirrored (RAID 1). So I followed the steps form the FreeBSD handbook (the part called Installing FreeBSD on Vinum). So far I got my first disks..

How to add the mirror partition to a RAID 1 set with Vinum - Hello, I am running FreeBSD 5.1 and would like to have all my partitions of by FreeBSD installation mirrored (RAID 1). So I followed the steps form the FreeBSD handbook (the part called Installing FreeBSD on Vinum). So far I got my first disks partition...

How to add th mirror partition to a RAID1 set with Vinum - Hello, I am running FreeBSD 5.1 and would like to have all my partitions of by FreeBSD installation mirrored (RAID 1). So I followed the steps form the FreeBSD handbook (the part called Installing FreeBSD on Vinum). So far I got my first disks..

Installation & fdisk partitioning (slices) - I picked up a copy of the "FreeBSD Handbook 2nd Ed" the other day, it came with a installation disk for version 5.1 Current and that is what I am trying to install. This is my first attempt to do anything with FreeBSD. First let me describe my...
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

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



[ Contact us | Terms of Service/Privacy Policy ]