- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgcfgrestore
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
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
тАО12-05-2003 03:54 PM
тАО12-05-2003 03:54 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2003 04:07 PM
тАО12-05-2003 04:07 PM
Re: vgcfgrestore
You could write a small script to do this:
#!/usr/bin/sh
for i in c2t2d0 c2t3d0 #specify all your device files here.
do
vgcfgrestore -n /dev/vgXX /dev/rdsk/${i}
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2003 04:07 PM
тАО12-05-2003 04:07 PM
Re: vgcfgrestore
The vxcfgrestore command with -n option does not allow listing the device files. Try this:
# vgcfgrestore -n /dev/vgXX -l
which should list the physical volumes in the volume group.
# man vgcfgrestore
for more information.
Yes, it is possible to perform vgcfgrestore on the mentioned disk array.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2003 01:48 AM
тАО12-06-2003 01:48 AM
Re: vgcfgrestore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2003 04:08 AM
тАО12-06-2003 04:08 AM
Re: vgcfgrestore
what seems to be happening in this case is that you don't have anything defined in your /dev/ directory at all. So even though vgcfgrestore does work, all it is doing is putting the VGRA on the disk, your VG not being know to your system may well be your problem. Since this is for DR, I would recommend another approach which would be for you to build a little script to "capture" all your LVM info on your source server and re-create that LVM structure on your DR server. But this is only an opinion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2003 02:48 PM
тАО12-07-2003 02:48 PM
Re: vgcfgrestore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2003 07:17 PM
тАО12-07-2003 07:17 PM
Re: vgcfgrestore
I'm not sure to understand why you want to vgcfgrestore the disks. If they are copies of another volume, then the lmv structures are already present. You just have to import the volume. If the new system is in the same cluster as the other one, also use vgchgid command to change the vgid. But the right command for you is vgimport I think, not vgcfgrestore.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2003 02:13 AM
тАО12-08-2003 02:13 AM
Re: vgcfgrestore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2003 02:21 AM
тАО12-08-2003 02:21 AM
Re: vgcfgrestore
In this case, you could create a new dummy vg (pvcreate the disks, vgcreate) then cfgrestore one disk at a time to get back the old lv structure.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2003 03:09 AM
тАО12-08-2003 03:09 AM
Re: vgcfgrestore
First of all, You can't vgcfgrestore disks with info from a VG to disks which are not in any VG to begin with...you must vgimport the VGs...
Second, I dont believe you will need to vgcfgrestore b/c after you do the vgimport it will all be there...on your system.
I hope you created them with the vgexport -s option to attach a header to the disks for easy importing... however, you dont have to have that option defined as long as the /dev/dsk names can be made the same on the new host... otherwise I would re-export them with the -s option... it will save you a LOT of headaches... believe me the -s option is an awesome way to vgexport from one box and then reimport to another host.
Now, Okay so you say you have:
"pvcreated the disks...and that vgscan doesnt recognize them"... and "lvmtab doesnt know about the VGs on the array...
When you say "created the LUNS" what does that mean??" pvcreate? if so you just wiped out your data...
To the vgscan question. How could it rebuild them, you haven't imported them yet... The reason vgscan doesn't see them is b/c you haven't created any VGs as yet on the new disks...
__________
__________
Bottom line is this::
I agree with Jean-louis...
You need to peform a vgimport of the VGs so that lvmtab will see them.
mkdir
mknod
vgcreate -v -m /etc/lvmconf/*.mapfiles /dev/vgXX
mount
then make sure you set the proper mount options.
You just had a few steps out of order is all.