- 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
Forums
Discussions
Discussions
Discussions
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
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
01-27-2005 03:35 AM
01-27-2005 03:35 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 03:49 AM
01-27-2005 03:49 AM
Re: lvcreate script
Have not tried this, but try the script attched by Nick,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=11150
Also get many more scripts for other purposes over here,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=178514
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 04:07 AM
01-27-2005 04:07 AM
Re: lvcreate script
Overall concept though.
When I'm doing a DR excercise it involves getting a make_tape_recovery tape from secure off site storage, sticking it in a server tape drive and booting the system off the tape.
That lets be get the entire server setup running correctly in a few hours. Oracle apps, legacy apps, the whole nine yards.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 04:10 AM
01-27-2005 04:10 AM
Re: lvcreate script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 05:19 AM
01-27-2005 05:19 AM
Solution# vgdisplay 2>/dev/null | grep "VG Name" | awk '{print $3}' | xargs -n1 | while read VG
do
VGNAME=$(echo "$VG" | sed 's/\/dev\///')
vgdisplay -v $VG | egrep "LV Name|Current LE" > /root/$VGNAME-LV.list
done
Now once you are done restoring the ignite in the DR server
# for VGS in $(ls /root/*LV.list)
do
cat VGS | xargs -n2 | while read LV SIZE
do
VGNAME=$(echo "$VGS" | sed 's/\-LV\.list//')
LVNAME=$(echo "$LV" | sed 's/\/dev\/vg.*\///')
lvcreate -l $SIZE -n $LVNAME /dev/$VGNAME
done
done
Remember, the above excerpt will not take care of striping or extend allocation policies or mirroring. But one would assume that is not critical for the DR tests.
I am not sure the above script is not going to work either :-).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 08:28 AM
01-27-2005 08:28 AM