On Thu, May 06, 2004 at 03:44:18PM +0800, Eric Noel wrote:Considering there will still be down time due to disk addtion. With that, i though you can just stop mail, then copy mbox dirs via /var/spool/mail to the new partition /var/newpartition/mail
On 5/6/2004 1:25 PM, Michael J. Maravillo wrote:
On Thu, May 06, 2004 at 11:19:25AM +0800, Kirov Reporting wrote:
Can anyone teach me here how to add a new disk and mount it to and existing partition.
heres the scenario:
/var =50G already full
ill just add another 50 GB disk .which i also want to be part also of /var i want my /var to be 100G maintaining all my datas...
What you want to happen isn't that straightforward. Unless, you're already using some volume manager like LVM and a resizeable filesystem that will allow you to expand the partition automagically. The following HOWTOs should help you get started and decide which solution to use:
http://tldp.org/HOWTO/Hard-Disk-Upgrade/index.html http://tldp.org/HOWTO/Software-RAID-HOWTO.html http://tldp.org/HOWTO/LVM-HOWTO/index.html
You can either use RAID (linear or striping) to combine the capacity of both disks, or use LVM which is the way to go if you plan to add more drives in the future.
Hope this helps.
fdisk /dev/newdevice partition it mke2fs -j /dev/newdevice modify /etc/fstab something like /dev/newdevice /mnt/newdrive ext3 default 2 1 ln -s /mnt/newdrive /var/additionalfolder
This doesn't increase the size of the /var partition but instead only creates another partition mounted inside some directory in /var. "df -k /var" would still give the original /var usage and capacity.
This won't scale even. Consider the scenario for example if the box is
a mail server that uses mbox with a near capacity /var/spool/mail.
then remove or move existing mbox rm /var/spool/mail, then link it to the new partition ln -s /var/newpartition/mail /var/spool/mail?
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
