Assuming you are running under z/VM:

If you have all file systems on the same disk you may want to move one or
more directories to their own physical disk.  You can use the command du
-sk * to get the current size of the files in a directory and its
subdirectories. Create a disk of a size that includes room for files and
growth, copy the files from the directory to the new disk,  mount the new
disk at that directory, and erase the old files. (You may need to perform
the erasure from another Linux instance. See below.) Modify /etc/fstab so
the new disk gets automatically mounted. Directories that are most often
split off are /tmp, /usr, /var, and /home.  The idea is to keep those file
systems that most often fill up from affecting the root ( / ) file system.


After you mount the new file system you will not have any extra free
space.  The old files are still under the mounted file system taking up
space.  Shut down the problem operating system.  Detach the problem disk
(or log off).  From another Linux instance link to that disk.  Mount it at
/mnt.  Erase all the files and subdirectories under /mnt/var/.  Umount the
disk and detach it.  Log on to the problem system and boot.  Your world
should be bright and sunny!

Some file systems cannot be split from root ( / ). They are needed before
the other file systems get mounted.  An example is /etc.

If this all seems overwhelming, you can just DDR your current disk to a
bigger disk, swap the disk virtual addresses, and boot from the new disk.
There is a resize2fs command so that  will expand the file system so it
can use the new space.

Others who know more can expand on these notes.


Tom Shilson
Powered by Penguins
Unix Team / IT Server Services
Tel:  651-733-7591       tshilson at mmm dot com
Fax:  651-736-7689

Linux on 390 Port <[email protected]> wrote on 08/21/2007 05:15:23
AM:

> Hi,
>
> I did an install of sles9.  when i first did the install, i just created
> ext3 fs with mount point / and allocated all my disk space to this.
> Now my fs is getting full.
>
> Is there a way to add disk space to the ext3 fs that i created ?  I read
> about LVM . Do i need to setup LVM in order to resize my existing
> ext3 fs. will i loss any data in the process ?
>
> thanks.
>
> Caleb
>
>
>
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to