LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-24-2002, 11:19 AM   #1
petey
LQ Newbie
 
Registered: Apr 2002
Posts: 8

Rep: Reputation: 0
Increasing partition size??


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.

According to this /var is only 11%

bash-2.03$ df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/da0s1a 127023 56109 60753 48% /
/dev/da0s1e 127023 635 116227 1% /tmp
/dev/da0s1h 7668385 3296288 3758627 47% /usr
/dev/da0s1f 127023 12338 104524 11% /var
/dev/da0s1g 127023 12681 104181 11% /var/mail
/dev/da1a 17370434 5519629 10461171 35% /usr2
procfs 4 4 0 100% /proc

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!

Thanks in advance

Last edited by petey; 04-24-2002 at 11:43 AM.
 
Old 04-25-2002, 02:47 AM   #2
Blackknight
Member
 
Registered: Apr 2002
Location: Rouen, France
Distribution: Slackware, FreeBSD
Posts: 34

Rep: Reputation: 15
Lightbulb Growfs

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.

Hope it helps
 
Old 04-25-2002, 02:54 AM   #3
Blackknight
Member
 
Registered: Apr 2002
Location: Rouen, France
Distribution: Slackware, FreeBSD
Posts: 34

Rep: Reputation: 15
Lightbulb More 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 ?
 
Old 04-25-2002, 06:07 AM   #4
petey
LQ Newbie
 
Registered: Apr 2002
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 04-25-2002, 07:09 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
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.
 
Old 04-25-2002, 07:24 AM   #6
Blackknight
Member
 
Registered: Apr 2002
Location: Rouen, France
Distribution: Slackware, FreeBSD
Posts: 34

Rep: Reputation: 15
Quote:
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
increasing partition size Don Powell Linux - Hardware 3 06-23-2005 09:14 AM
FC3 root partition size not increasing abhigo Fedora 6 01-29-2005 11:33 AM
Increasing Size of Primary Windows Partition Using Parted overthinker Linux - Newbie 6 01-01-2005 09:56 AM
Increasing Size of Primary Windows Partition Using Parted overthinker Linux - Software 2 12-31-2004 12:49 PM
Increasing Partition Size? petey Linux - General 1 04-24-2002 11:33 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration