I need to run four commands
1.if rootvg has more than 1gb free space create a logical volume with 1 LP (least size depending on PPs like 16, 32, 128, 256).otherwise exit (If the name of server xy1abcd01 then LV name should be in the format lvxbcd1_vcl)
2.create and mount a file system using the above LV
3.File system should have atleast 256 MB in size
4.Run a command ???? (this command runs an application)
I tried it out using
vg_size=`lsvg rootvg|grep FREE|cut -d '(' -f 2 | cut -d ' ' -f 1` then if - else condition , if it is <1024 then exit otherwise create LV.then wrote a long script which doesn't look good. Can somebody help me out to complete this script (small).
Thanks
1.if rootvg has more than 1gb free space create a logical volume with 1 LP (least size depending on PPs like 16, 32, 128, 256).otherwise exit (If the name of server xy1abcd01 then LV name should be in the format lvxbcd1_vcl)
2.create and mount a file system using the above LV
3.File system should have atleast 256 MB in size
4.Run a command ???? (this command runs an application)
I tried it out using
vg_size=`lsvg rootvg|grep FREE|cut -d '(' -f 2 | cut -d ' ' -f 1` then if - else condition , if it is <1024 then exit otherwise create LV.then wrote a long script which doesn't look good. Can somebody help me out to complete this script (small).
Thanks