1820553 Members
2381 Online
109626 Solutions
New Discussion юеВ

Re: Need a basic script

 
David Ritts
Occasional Contributor

Need a basic script

Following up on my ignite question yesterday regarding disaster recovery ay Sungard, I also am in need of a basic script set. I would like to have a script that can do a vgcreate if needed, then an lvcreate newfs lvextend. In the proper order, so that I could run the scripts at Sun instead of manually creating everything from paper. This is under the assuption of plan B if ignite does not work and I have to drop basck and install the OS. Does anyone have a basic script or can they recommend the proper procedure for writing a simple script to do this. Thanks tons.. Kev
6 REPLIES 6
John Palmer
Honored Contributor

Re: Need a basic script

Sample script to create a volume group attached.

volume creation scripts can be as simple as:-

lvcreate -n data1 -L 2000 vgdata
mkfs -F vxfs /dev/vgdata/rdata1
Rick Garland
Honored Contributor

Re: Need a basic script

As part of the ignite issue, the 'print_manifest' tool can help you input the appropriate values for your script.
Rick Garland
Honored Contributor

Re: Need a basic script

As part of the ignite issue, the 'print_manifest' tool can help you input the appropriate values for your script.
Rick Garland
Honored Contributor

Re: Need a basic script

As part of ignite, the 'print_manifest' tool can help you with the modifications of the script so that you know which VGs and LVs need to be created
Rick Garland
Honored Contributor

Re: Need a basic script

As part of ignite, the 'print_manifest' tool can help you with the modifications of the script so that you know which VGs and LVs need to be created
Rick Garland
Honored Contributor

Re: Need a basic script

As part of ignite, the 'print_manifest' tool can help you with the modifications of the script so that you know which VGs and LVs need to be created