- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can I restore VG definations after a Syste...
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
03-16-2002 07:03 PM
03-16-2002 07:03 PM
How can I restore VG definations after a System restore
I do lot of restore using tape create using by make_recovery. The problem is that I lose all the shared volume groups. I can see the defination for the VG and LVs but am not able to mount those. It complains the following.
vgchange: Volume group "/dev/vg02" does not exist in the "/etc/lvmtab" file.
vgchange: Volume group "/dev/vg03" does not exist in the "/etc/lvmtab" file.
vgchange: Volume group "/dev/vg02" does not exist in the "/etc/lvmtab" file.
vgchange: Volume group "/dev/vg03" does not exist in the "/etc/lvmtab" file.
vgchange: Volume group "/dev/vg02" does not exist in the "/etc/lvmtab" file.
vgchange: Volume group "/dev/vg03" does not exist in the "/etc/lvmtab" file.
I can see the definations for those vg and lv
greategg# ls -altr /dev/vg02
total 10
crw-rw-rw- 1 root sys 64 0x020000 Dec 14 22:18 group
drwxrwxrwx 2 root sys 1024 Dec 14 22:19 .
crw-r----- 1 root sys 64 0x020003 Dec 14 22:19 rlvol23
crw-r----- 1 root sys 64 0x020002 Dec 14 22:19 rlvol22
crw-r----- 1 root sys 64 0x020001 Dec 14 22:19 rlvol21
brw-r----- 1 root sys 64 0x020004 Dec 14 22:19 lvol24
brw-r----- 1 root sys 64 0x020003 Dec 14 22:19 lvol23
brw-r----- 1 root sys 64 0x020002 Dec 14 22:19 lvol22
brw-r----- 1 root sys 64 0x020001 Dec 14 22:19 lvol21
crw-r----- 1 root sys 64 0x020004 Dec 14 22:19 rlvol24
dr-xr-xr-x 18 bin bin 4096 Mar 16 13:09 ..
greategg#
Please help
Thanks
Sushil Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2002 07:59 PM
03-16-2002 07:59 PM
Re: How can I restore VG definations after a System restore
See 'man vgscan' for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2002 12:26 AM
03-17-2002 12:26 AM
Re: How can I restore VG definations after a System restore
Do following
1. Rename the /etc/lvmtab to /etc/lvmtab.old.
2. Run following command.
#vgscan
Now, activate those volume groups using vgchange command.
# vgchange -a y /dev/vg02
# vgchange -a y /dev/vg03
and so on..
Hope this helps.
-Piyush.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2002 12:26 AM
03-17-2002 12:26 AM
Re: How can I restore VG definations after a System restore
Do following
1. Rename the /etc/lvmtab to /etc/lvmtab.old.
2. Run following command.
#vgscan
Now, activate those volume groups using vgchange command.
# vgchange -a y /dev/vg02
# vgchange -a y /dev/vg03
and so on..
Now new lvmtab file will be created and you can delete the lvm.old file.
Hope this helps.
-Piyush.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2002 07:36 PM
03-17-2002 07:36 PM
Re: How can I restore VG definations after a System restore
Man those commands for information.
Hope this helps.
Kenny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2002 08:45 PM
03-17-2002 08:45 PM
Re: How can I restore VG definations after a System restore
Just restore the file /etc/lvmtab from your original backup.
Or if you have the map file for the vg backed and, restore the same to the disk, do a vgexport to remove the existing vg info and then do a vgimport using the map file to recreate the vg info on the system.
vgexport /dev/vg02
mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x0n0000
vgimport -s -m /tmp/vg_name.map /dev/vg02
Then do a vgchange,
vgchange -a n /dev/vg02
vgchange -a y /dev/vg02
Hope this helps.
Regds