- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvcreate script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 03:21 PM
тАО07-21-2005 03:21 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 03:36 PM
тАО07-21-2005 03:36 PM
Re: lvcreate script
It is not recommended to scriptize the configuration part like file system creation, as it has to be done only once and not to repeated. Another reason for that is that it could be having some difference in device files.
Morover if you restore or recvoer using ignite you should not be requiring to recreate LVs/VGs. Only import for them should be enough & it even should not require to restore data.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 03:39 PM
тАО07-21-2005 03:39 PM
Solutionfor lv in `cat /tmp/vgdisp.out`
do
vgname=`echo $lv | cut -d/ -f3`
lvname=`echo $lv | cut -d/ -f4`
lvsize=`lvdisplay ${lvname}|grep "LV Size"|awk {'print $4'}`
echo "lvcreate -L ${lvsize} -n ${lvname} ${vgname}" >> /tmp/lvcr_scr.sh
done
this script is a quick hack. it has not been tested (my VPN to office is down) and it does not do any error checking.
Also it assumes the volume groups are there with sufficient space prior to running lvcr_scr.sh
It is not a total solution but it may give you a point to start writing your own most probably or improving on this one.
Hope it helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 04:05 PM
тАО07-21-2005 04:05 PM
Re: lvcreate script
this is what i need, the 2nd DR system will have diff. raid/dsk and I plan on creating the same size VG, and just need something to whip together quickly to lvcreate..... unfortunetly all non-vg00 groups are on new and diff. disks/raid units. will try to clone/map w/ignite, but this will script will be a plan B.
thanx,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2005 01:05 AM
тАО07-27-2005 01:05 AM
Re: lvcreate script
Here is a set of scripts that can be used for DR. I got these from the net and tweaked them a little. It is set to work with EMC disks but should run with others. Only problem I have had is when there are multiple CD-ROMs on the system.
The way to impliment is have a cron job that runs build_vg_conf.sh and then ignite. On the DR server after igniting you would run recreate_vg.sh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 01:01 PM
тАО08-02-2005 01:01 PM