Date: Wed, 10 Jan 2001 10:31:13 -0600 From: Ben Weaver <sid67@tranquility.net> To: Tom Gowin <tvg@awaretech.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Swapping to a new hard drive... Message-ID: <20010110103113.B7177@tranquility.net> In-Reply-To: <3.0.6.32.20010110100338.0097b430@mail.awaretech.com>; from tvg@awaretech.com on Wed, Jan 10, 2001 at 10:03:38AM -0500 References: <3.0.6.32.20010110100338.0097b430@mail.awaretech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
If the whole point is just to get more room for the mail spool, why not keep the hard drive you have and put the other in as well. Here's what you can do: 1. Put the new drive into the computer 2. Make sure the kernel detects is on bootup (use dmesg command to see) 3. Make sure device is built for it in /dev 3. fdisk, disklabel, and newfs the harddrive. (easiest way to fdisk and disklabel is to use /stand/sysinstall) Check out http://www.freebsd.org/handbook/disks-adding.html 4. Once your drive is all ready, test it by mounting in real quick on /mnt (mount command) 5. Assuming everything is going well so far, drop into single-user mode: A. Mount /var (Assuming mail spool is /var/spool if it's somewhere else, mount the partition on which the spool resides) B. Mount the new drive on /mnt C. do a tar cf - -C /var/spool . | tar xf -C /mnt to transfer the contents of the old spool directory to the new hard drive. D. do a rm -R /var/spool then mkdir /var/spool E. edit /etc/fstab to mount the new hard drive on /var/spool 6. Drop out of single user mode and you now have all kinds of brand new space for that spool! -Ben On Wed, Jan 10, 2001 at 10:03:38AM -0500, Tom Gowin wrote: > > Hello, > This is my first question to to FreeBSD (first time long time...) > > Anyhow I inherited the current server which runs FreeBSD and > had to learn how this system works from scratch. Over the last > year I have learned a great deal and can use it without breaking it. > > However the system it was installed on is sorta old and we need some > more hard drive space for the SendMail spool. I would like to expand > the ammount of space it can use or copy the current drive onto a new > larger harddrive (hoping that it does some sort of auto ratio deal). > > Any advice...I've read tons on the site but have not stumbled across > this issue. > > Thanks a ton, > Tom Gowin > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010110103113.B7177>