LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 06-26-2006, 11:57 AM   #1
glowe
Member
 
Registered: Jan 2006
Posts: 31

Rep: Reputation: Disabled
Dynamically increase storage


Hi All.

I have a question. Within linux, I would like to have a cron job monitor disk usage on a system. If the file system reaches say 85 or 90 percent available capacity, or some number of MB, GB, TB, or whatever watermark I choose, then I would like to automate the adding of new storage. The backend would be a NetApp, with previously created LUNs waiting in the wings. I don't need to grow a file system per se (or I supposed that would be answer, but not necessarily the best). One thing I thought about was to add them as a subdirectory to an existing directory. I realize that LVM could be used, but is there a simpler way? What ways has anybody done? Any help is appreciated. Thanks!
 
Old 07-02-2006, 12:08 PM   #2
pansarevaibhav
Member
 
Registered: Oct 2005
Location: mumbai
Posts: 34

Rep: Reputation: 15
lvm

Hi,
u cam definatly create script for this. just make a script which will check your disk usage with a priodic time. take the o/p of script in a file . if it is some % of disk space then u can do atomated another script to resize your volume, like this
df -h this will give amount of space occupy.
use if loop to check your % of usage.
if it crossed the limit make a file or send mail to administrator.
then either u need to run lvm command or u can make another script for the same.

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically linking or not? Mben Programming 3 04-14-2006 03:30 PM
Dynamically linking or not? Mben Linux - General 1 04-14-2006 08:30 AM
dynamically phoenix_fei Programming 5 01-17-2005 07:51 PM
USB time out value (to increase or not increase) lynxgogo Linux - Hardware 0 07-24-2003 10:14 AM
dynamically including C modules manjulap Programming 4 03-13-2002 03:00 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration