Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 have a bit of a problem with my mail server at home.
Over the weekend I have built a mail server on my Ubuntu machine in my cupboard.
This runs Fetchmail => Postfix => Spamassassin => dovecot = Thunderbird + squirrelmail using IMAP
All is working like a dream except for 1 thing I have noticed.... I only have 90MB left on my disk. Eventually it will start filling up rapidly as I have my new Maildir configured.
Can you advise if I can re-direct my Maildir to my raid storage partition (500GB) under /mnt/raid/Mail/Maildir
or am I stuffed and will have to re-install or clone using a new/larger disk because it only runs under my /home/fusion1275/Maildir directory??
I hope someone has a solution for me. This could end up quite a serious issue for me.
Many thanks in advance.
Last edited by fusion1275; 08-18-2009 at 04:24 PM.
Just wanted to post an update and close off this topic as I have solved my own problem.
So here I will take you briefly through the task to solve my disk space issue on my Mail Server.
Quote:
MY 10 STEP SOLUTION
Step 1:
Used LVM to create a logical volume of 50GB for my home directory. This is situated on my raid set of 500GB.
Quote:
pvscan
fdisk -l
mount
pvcreate /dev/md0
pvdisplay
fdisk -l
vgcreate Sapphire-home /dev/md0
vgdisplay
lvcreate --name home --size 50G Sapphire-home
lvdisplay
Step 2:
Created the filesystem on the home partition as ext3
Quote:
mkfs.ext3 /dev/Sapphire-home/home
Step 3:
Made a temp home directory called /mnt/newhome and then mounted it on the new filesystem I created.
Quote:
mkdir /mnt/newhome
ll /mnt/
mount /dev/Sapphire-home/home /mnt/newhome/
mount
Step 4:
Copied everything from my old home directory to my temp newhome directory then did a word count and checked they tally up. Then had a brief look for any permission problems which there weren't any as my copy command preserved all perms.
Quote:
cd /home/
cp -Rp * /mnt/newhome/
find . -ls |wc -l
cd /mnt/newhome/
find . -ls |wc -l
Step5:
Unmounted newhome and stopped all my mail apps on the server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.