Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to increase Filesystem size

Status
Not open for further replies.

DonDavisFCB

Programmer
Aug 22, 2001
73
US
Does anyone have a good script that will increase the size of a filesystem, but with some built in intelligence?
I plan to use &quot;chfs -a size=+1 <filesystemname> in a script that queries information from hundreds of routers and adds a record to correspondingly hundreds of files every five minutes. I want to add file space as needed and mail to root whenever a pp is added.
I want to build in some self checks that will stop this script if it runs loose and attempts to fill my volume group.


 
Hi Don

I don't recommend you of using script for increase file system.I used to increase it whenever necessary.

The reason is obvious:To allocate space on a particular fs
one need to consider free pps in particular vg.If they are not available ..we have to add a disk...

I don't have a script bcoz I don't like it.in this regard..If u want I can make an interactive shell script so that u can have control on it.
Anyway...if u still think of script...let me know..I will write it and post it in this forum


sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Hi Don

I don't recommend you of using script for increase of file system space.I used to increase it whenever necessary.

The reason is obvious:To allocate space on a particular fs
one need to consider free pps in particular vg.If they are not available ..we have to add a disk...

I don't have a script bcoz I don't like it.in this regard..If u want I can make an interactive shell script so that u can have control on it.
Anyway...if u still think of script...let me know..I will write it and post it in this forum


sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
It's more than possiable, I'll write something when I get a minute in the next couple of days, But I can think of lots of reasons why I wouldn't do it.

I would suggest a bit of capacity planning, look at the growth over a month and then add the space you'll need for the next six months and review it monthly.

Why are you wanting to do it anyway?

--
| Mike Nixon
| Unix Admin
|
----------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top