*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running VBulletin 2.0 on FreeBSD, and a MYSQL database
I've just started getting this error on my forum
mysql error: Can't create/write to file '/var/tmp/SQL115cbe_0.ISM' (Errcode: 28)
mysql error number: 1
which basically means
Error code 28: No space left on device
The partitition containing /var/tmp is out of space.
su-2.03# fdisk
******* Working on device /dev/rda0 *******
parameters extracted from in-core disklabel are:
cylinders=3341 heads=149 sectors/track=36 (5364 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3341 heads=149 sectors/track=36 (5364 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 0, size 17921835 (8750 Meg), flag 80 (active)
beg: cyl 0/ sector 1/ head 0;
end: cyl 1023/ sector 36/ head 148
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
Is it possible to increase a partition in FreeBSD?
What man pages should I be looking at to do this? Or how do I go about fixing this problem since I seem to have plenty of space on my machine!
Hi,
here what you could do if /var was your last partition on the slice : man growfs
But it seems that there are two other partitions after it (/var/mail and /usr) . In that case, the only thing you can do, in my opinion, is backing up /var/mail and /usr (with dump for example), deleting them, growing /var (see man growfs) then relabel to recreate /usr and /var/mail. Finally restore /usr and /var/mail.
I forgot something :
if /var is not contiguous with /var/mail then you can grow it to the remaining space.
Another idea came to me :
Why don't you create a /var/tmp in another partition ?
And why not on the other disk ?
Your first disk is completely dedicated to FreeBee but is there any room free on your second disk ?
creating a new partition will replace the old directory all the time it is mounted. the data is not deleted, but is inaccessible. if you were to unmount the partition the old contents would reappear.
Originally posted by petey The second drive is pretty much clean. I could do what you suggest. What should I be looking at to do this?
If I create a partition for /var/tmp on the second drive will it replace the /var/tmp on the first?
Thanks for the replies.
To do:
use disklabel in single user mode (boot -s at the boot prompt). Try disklabel -e /dev/da1. Add a new line like da1b (not da1c which represents the whole slice). Make a newfs on it then edit your fstab to add /dev/da1b /var/tmp. Type ^D to enter multi user mode, everything should be ok.
Don't forget to read :
man disklabel
man newfs
man fstab
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.