It depends on the filesystem. Some can shrink and some can't. Also some can shrink only if there are no used blocks in the area that is going to be removed.
-----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of Ryan McCain Sent: Friday, August 15, 2008 9:43 AM To: [email protected] Subject: Re: Root filesystem Is it possible to shrink a LVM fs, not just grow it? >>> On Fri, Aug 15, 2008 at 11:04 AM, in message <[EMAIL PROTECTED]>, Mark Post <[EMAIL PROTECTED]> wrote: >>>> On 8/15/2008 at 12:58 AM, in message <[EMAIL PROTECTED]>, Mark > Perry <[EMAIL PROTECTED]> wrote: > -snip- >> Is there a way to trigger a script when a filesystem (FS) hits a certain >> percentage full? (90%?) > > Of course. I have such a thing set up on my Slack/390 development systems > so that I know when to temporarily suspend rsynching from my "upstream" > source at slackware.com. > >> 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. > > You're certainly willing to do that to yourself. I would not want to do it, > nor make that available to others. That sort of thing is very, very, > complicated, and I would want a human looking at that and making decisions, > not software. > > > Mark Post > > ---------------------------------------------------------------------- > 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 __________________________________________________________________________________________________ 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. ---------------------------------------------------------------------- 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
