On Thu, May 06, 2004 at 03:44:18PM +0800, Eric Noel wrote: > 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. -- .--. Michael J. Maravillo http://maravillo.com/ ( () ) Q Linux Solutions, Inc. office://+63.2.750.1800/ `--\\ Consultancy/Training/Support/Development http://www.q-linux.com/ -- If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas. - George Bernard Shaw -- 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
