- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Vgexport/vgimport
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
05-19-2003 06:20 AM
05-19-2003 06:20 AM
Vgexport/vgimport
I am rebiulding a server upgrading the operating system to 11i, i intend to do a fresh install and reload all relervant applications.
The question is that if i do a vgexport (vgexport -v -f outfile /dev/vg01) and the save out the the file to tape.
i then once os rebiult copy file back and do the normall mknod and create mount pionts.
Once complete if i run
vgimport -v -m tmp/vg01.mapfile /dev/vg01 /dev/dsk/c0t5d0 /dev/dsk/c0t7d0
will this then import all the information needed to activate the volume group and therefore make all data that is currently on these disks available again, thus making it not necassary to restore data.
as this would be saving us a lot of time and take away some the data loss risk.
any help appeciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2003 06:42 AM
05-19-2003 06:42 AM
Re: Vgexport/vgimport
unmount vg01 filesystems
# umount /mnt_pt
deactivate vg01
# vgchange -a n /dev/vg01
export vg01
# vgexport -s -v -m /tmp/vg01.map /dev/vg01
Save the /tmp/vg01.map file to another box or tape.
Save the info about your mount points
# grep vg01 /etc/fstab > /tmp/vg01.fstab
perform your cold install, then import vg01.
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
restore the vg01.map file
# vgimport -s -v -m /dev/vg01.map /dev/vg00
Activate the vg
# vgchange -a y /dev/vg00
Create the mount points and add the entries saved in /tmp/vg01.fstab to the /etc/fstab. Mount the filesystems.... you should be all set and able to access the data.
Hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2003 07:00 AM
05-19-2003 07:00 AM
Re: Vgexport/vgimport
thanks
andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2003 07:34 AM
05-19-2003 07:34 AM
Re: Vgexport/vgimport
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2003 07:35 AM
05-19-2003 07:35 AM
Re: Vgexport/vgimport
if you use the "-s" you don't have to specify the disk becuase they are searched using the VGID, saved in the mapfile.
This is the meaning of the "vgexport -s".
Otherwise do a vgexport -p -v -m MYmapfile -f MYdiskfile NYVG
and keep those files.
in the import
mkdir /dev/VGTT
mknod /dev/VGTT/group c 64 0xXX0000
vgimport -f MYdiskfile -m MYmapfile NYVG
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 01:25 AM
05-22-2003 01:25 AM
Re: Vgexport/vgimport
beware though if you use the -f option to vgimport, you need check/edit the file with devicenames so that it reflects the correct devicenames after the cold install.
The advantage of using -f is that you get full control over primary / alternate paths, for load sharing of the FC's .
Rgds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 04:45 AM
09-18-2003 04:45 AM
Re: Vgexport/vgimport
THanks