Re: Growing / shrinking a file system

2003-03-06 Thread Murray Taylor
Thanks for the answers Matt -- even though they weren't the ones i was hoping 
for


On Fri, 7 Mar 2003 17:02, Matthew Emmerton wrote:
> I've found growfs and looked at tunefs--- is there a utility to shrink a
> partition so that I can give the space to another one

No.

> [EMAIL PROTECTED](/sbin)ttyp1 > df -h
> FilesystemSize   Used  Avail Capacity  Mounted on
> /dev/ad0s1a97M41M48M46%/
> /dev/ad0s1f17G   1.8G14G11%/usr
> /dev/ad0s1e19M   7.9M   9.9M44%/var
> procfs4.0K   4.0K 0B   100%/proc
>
> This is the current disk stats ... NB this disk was setup using auto
sizing
> from the install CD (poss miscalculation??)

Auto-sizing is not perfect for everyone, especially people running large
mail servers or database servers which require lots of space in /var.

> We need to reallocate space from ad0s1f and give it to ad0s1e
> preferably with out rebuilding the machine.
>
> I am thinking of paxing /var to /usr/var, then unmounting /var
> and symlinking /usr/var to /var as an interim step

What is your main consumer of space in /var?

One trick I've often done is create a /usr/var2 directory, move stuff from
/var into /usr/var2 (such as /var/log and /var/mail) and then symlink the
directories from /var over to /usr/var2.

> But I would like them to remain on separate better sized slices

Then your only choice is to backup, re-splice and restore.

--
Matt Emmerton



This Email has been scanned for Viruses by MailMarshal.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Growing / shrinking a file system

2003-03-06 Thread Matthew Emmerton

- Original Message -
From: "Murray Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 12:54 AM
Subject: Growing / shrinking a file system


> I've found growfs and looked at tunefs--- is there a utility to shrink a
> partition so that I can give the space to another one

No.

> [EMAIL PROTECTED](/sbin)ttyp1 > df -h
> FilesystemSize   Used  Avail Capacity  Mounted on
> /dev/ad0s1a97M41M48M46%/
> /dev/ad0s1f17G   1.8G14G11%/usr
> /dev/ad0s1e19M   7.9M   9.9M44%/var
> procfs4.0K   4.0K 0B   100%/proc
>
> This is the current disk stats ... NB this disk was setup using auto
sizing
> from the install CD (poss miscalculation??)

Auto-sizing is not perfect for everyone, especially people running large
mail servers or database servers which require lots of space in /var.

> We need to reallocate space from ad0s1f and give it to ad0s1e
> preferably with out rebuilding the machine.
>
> I am thinking of paxing /var to /usr/var, then unmounting /var
> and symlinking /usr/var to /var as an interim step

What is your main consumer of space in /var?

One trick I've often done is create a /usr/var2 directory, move stuff from
/var into /usr/var2 (such as /var/log and /var/mail) and then symlink the
directories from /var over to /usr/var2.

> But I would like them to remain on separate better sized slices

Then your only choice is to backup, re-splice and restore.

--
Matt Emmerton


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message