- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restoring LVM structure at DR
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
04-26-2011 08:55 AM
04-26-2011 08:55 AM
I have a very large DB server with lots of VGs. I am looking for a way to recover the LVM structures to a server at the DR site. I use ignite to recover vg00 then usually go about creating the other filesystems via command line because there is no info on the disk regarding the lvm structures. I'm looking for something similar to the AIX savevg and restvg commands.
Thanks in advance for any info you can provide.
Tommy P.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2011 09:48 AM
04-26-2011 09:48 AM
Re: Restoring LVM structure at DR
Well of what I have understood of savevg and restvg , I really think the command you are looking for in the HPUX flavor is vgcfgrestore which is used to recreate LVM data structures and is one of the LVM commands that is normally associated with the "recovery process". Well the filesystems should be recovered from your preferred backup utility whether it is of the "heterogenous variety" as in tar or cpio or if you want to go the HPUX way, fbackup/frecover would be the way to go. {This is the way I know}
pax is also a good option. At filesystem level in terms of data one way I know is turn to your backup utility.
There around 19 commands in LVM that are used which the "LVM subsystem" as such backups with a command internally running which as a matter of fact can also be executed manually called as vgcfgbackup and ofcourse the term "backup" is always in turn eventually related to the word "restore" and hence you see the command in the initial part of this post.
Regards
Ismail Azad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2011 10:11 AM
04-26-2011 10:11 AM
Re: Restoring LVM structure at DR
I assume that you have a storage at the DR site and data is intact.
Check out the possibility of vgexport and vgimport.
http://docs.hp.com/en/B235590681/vgexport.1M.html
http://docs.hp.com/en/B235590681/vgimport.1M.html
It works if the DR site server detected the storage LUNs in the same hardware path as in the primary site.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2011 12:30 PM
04-27-2011 12:30 PM
Re: Restoring LVM structure at DR
Let me see if I can explain better.
We have a large DB server with 50 VGs and each has six disks (a couple odd balls have more) and one lvol for database Fses. After I ignite the server I have to:
pvcreate all the new disk zoned to the server
mkdir /dev/vg## should already there
mknod ...
vgcreate vg## PV PV ...
lvcreate
newfs
edit the fstab and mount FSes
start restoring with legato...ugh!
All the disks are new to the system and do not have any LVM info on them. (so no dice with vgcfgrestore or vgimport) I clean up all the /dev/vg1## so I can start over. I am trying to find a better way to create all the VGs as opposed to doing it manually.
Thanks again
Tommy P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2011 12:35 PM
04-27-2011 12:35 PM
Solution> I am trying to find a better way to create all the VGs as opposed to doing it manually.
What I have always done is build a simple script to re-creation my LVM configuration using 'pvcreate', 'vgcreate', 'lvcreate' and 'mkfs' commands. Since the device names may not be known until you go to deploy the script, simply stub in strings like '/dev/rdsk/cXtYdZ' or '/dev/rdisk/diskN' and modify the template before you need to use it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2011 09:30 AM
04-28-2011 09:30 AM