1833784 Members
2486 Online
110063 Solutions
New Discussion

Re: Script

 
Eric Jacklin
Regular Advisor

Script

Hi

This is to infrom you that i have to create 70 Nos of FS of different size and with differnt name so would you be able to help me out with a script which made this work easy.

Regards,
Jit's
2 REPLIES 2
Hein van den Heuvel
Honored Contributor

Re: Script

So you want us to do your work.
Your place or mine?
Who brings the lunch?
Will we get your salary?


Jit,

Please re-read your question, and again.
And I'm not complaining about the english.

Nowhere does it indicate you even tried
Nowhere does it indicate what might be needed
Nowhere does it suggest a tool to use any constraint.

We might guess this is really HPUX as implied by the forum. Which version? What architecture? What FS? What storage? LSM?
I'm sure it's obvious to you, but we are not mindreaders.


At the very least
- show us one example of those 20 creates to be done.
- explain and/or show where the names (and sizes) come from
== An excell spreadsheet (convert to CSV and parse!)
== Some algoritme (FS1 .. FS70 )

Good luck!
Hein.
Wim Rombauts
Honored Contributor

Re: Script

Indeed, with what you tell us, this quick and dirty script my do the thing (assuming you want to use LVM and have a VG available :
VGNAME=/dev/vgxx
COUNTER=1
while [$COUNTER -le 70 ]
do
lvcreate -L 1 -n FS$COUNTER $VGNAME
mkfs $VGNAME/FS$COUNTER
done