We have something like this on z/OS Unix. It does not work as well as you might think. All it does is push the space problems out to the volume level. We end up having to un-mount the filesystem, move it to a new volume, and re-mount it.
I would vote to not do this on Linux. -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of Mark Perry Sent: Friday, August 15, 2008 12:59 AM To: [email protected] Subject: Re: Root filesystem Mark Post wrote: >>>> On 8/14/2008 at 8:26 AM, in message <[EMAIL PROTECTED]>, > Ryan McCain <[EMAIL PROTECTED]> wrote: >> Thats the issue we are trying to avoid if possible. If we could put /, /opt, >> /usr, /lib, etc. etc. into LVM, we won't have to guestimate how much disk >> we'll need from the outset. We could grow as needed. > > Laid out properly, / will never grow. > > # df -h > Filesystem Size Used Avail Use% Mounted on > /dev/dasda1 388M 168M 200M 46% / > /dev/mapper/vg01-home 97M 4.4M 88M 5% /home > /dev/mapper/vg01-opt 74M 21M 50M 30% /opt > /dev/mapper/vg01-srv 1.2G 1.1G 100M 92% /srv > /dev/mapper/vg01-tmp 291M 34M 242M 13% /tmp > /dev/mapper/vg01-usr 2.0G 901M 1.1G 45% /usr > /dev/mapper/vg01-var 2.0G 608M 1.3G 32% /var > > Of course the amount of space dedicated to each LV will vary according to > specific needs. The fundamental concept is the same, and will (hopefully) be > the default on SLES11 if things go as I hope. > > > Mark Post > Is there a way to trigger a script when a filesystem (FS) hits a certain percentage full? (90%?) If so, then one could develop a method to automatically issue the required lvresize and ext2online commands to keep the FS within a certain percentage range (70-90%?). Of course rules could be developed to make this more sophisticated: which FS are controlled, what % range per FS, limits of VG % free etc. Hint to distros: If such a method were available during the installation process then we would not need to make guesstimates of the LV sizes, they could be set small and allowed to grow as packages were installed. If a good idea..... then maybe add this to LVM2 so that the whole process was synchronized without the possibility of a FS becoming full (based on rules of course). mark ---------------------------------------------------------------------- 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 __________________________________________________________________________________________________ CONFIDENTIALITY NOTICE: This email from the State of California is for the sole use of the intended recipient and may contain confidential and privileged information. Any unauthorized review or use, including disclosure or distribution, is prohibited. If you are not the intended recipient, please contact the sender and destroy all copies of this email.
