- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgexport
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
06-19-2002 10:48 AM
06-19-2002 10:48 AM
Will it be under the current directory?
Is that mean I have to have a large enough space for the vgexport?
Any suggestions if just by looking at my bdf above and tell me where I should do a vgexport?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 10:51 AM
06-19-2002 10:51 AM
Re: vgexport
As per your example , the mapfile will be placed in your current directory, to place elsewhere use absolute paths
man vgexport
for more info
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 10:54 AM
06-19-2002 10:54 AM
Solution1) By default, the map file will be created in the current directory. The system specific VG information/changes file will be under /etc/lvmconf.
2) These map files are *very* small files (in bytes). You don't need to have very large space for this.
3) vgexport will just remove the VG information from /etc/lvmtab file. This will not do anything with the data on the disks. When using mapfile, you are just saving the VG information (LV names, disks, VG name etc) in a small file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 10:55 AM
06-19-2002 10:55 AM
Re: vgexport
The mapfile will not occupy much space ...just a few bytes. It basically stores the information about the volumegroup. What are the disks in the vg, lvols etc.
It will be in the current directory and you could even specify the directory where you want to store using.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:02 AM
06-19-2002 11:02 AM
Re: vgexport
Doesn't take hardly any space at all.
It, by default, goes into /etc/lvmconf.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:21 AM
06-19-2002 11:21 AM
Re: vgexport
This is what I am planning to do:
1) full backup of the system.
2) preserve the following files before cold installation of 11:-
# /.forward
# /.profile
# /etc/profile
# /etc/group
# /etc/hosts
# /etc/inetd.conf
# /etc/inittab
# /etc/nsswitch
# /etc/ntp.conf
# /etc/passwd
# /etc/rc.config.d/netconf
# /etc/rc.config.d/netdaemons
# /etc/rc.config.d/nfsconf
# /etc/resolv.conf
# /etc/sendmail.cf
# /etc/services
# /etc/shells
# /etc/shutdown.allow
# /var/adm/cron/*.allow
# /var/adm/fbackupfiles/*
# /var/spool/cron/crontabs/*
# /sbin/init.d/
3) vgexport -m vg01.mapfile /dev/vg01
4) cold install 11
5) vgimport -m vg01.mapfile /dev/vg01
6) vgchange -a y vg01
Next question:
1) Are both vgexport and vgimport actually export/import my oracle database?
sorry for not being able to understand the logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:27 AM
06-19-2002 11:27 AM
Re: vgexport
vgexport -m mapfilename -p -v -s vgname
This will not actually perform the vgexport on your VG but will create the mapfile so that you can vgimport the VG after your OS install.
The vgimport / vgexport commands are OS level commands and work at the VG level only, they will NOT do an DB export / imports.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:30 AM
06-19-2002 11:30 AM
Re: vgexport
I suppose I would add the -p option to your vgexport. That way the map file is created but everything else is intact. Vgexport with or without the -p option DOES NOT DESTROY any data on the disks that make up the volume group.
One point that should be made is that /dev/rdsk/c1t5d0 on the old system MIGHT become, for example, /dev/rdsk/c3t5d0 on the new system. This is especially true if cards were added or removed after the original OS was loaded. For that reason, I strongly suggest that you make ghard copies of the output of ioscan -fn, bdg, and vgdisplay -v of each volume group before the OS install.
I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:31 AM
06-19-2002 11:31 AM
Re: vgexport
I was thinking the cold install will erase all oracle data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:32 AM
06-19-2002 11:32 AM
Re: vgexport
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
Then only you do the "vgimport" ie step 5 follow by step 6. The vgexport/import operation does not change your data, it's just like saving the LVM configuration information so that you can maintain the same LVM config in a newly installed system or in another system. It does not alter your Oracle DB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:35 AM
06-19-2002 11:35 AM
Re: vgexport
The data will not get erased unless you forced to do it. The vgexport and vgimport are only for LVM VGs and NOT for Oracle or any other applications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:35 AM
06-19-2002 11:35 AM
Re: vgexport
vgexport/vgimport works on the OS level and not the Oracle level. The contents on the hardisk will remain the same. But since you are planning to upgrade, you should always take your full Oracle backup and restore it back in case there is a problem. If the device files of the harddisks change then also you can vgimport those disks with the new device file names.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:38 AM
06-19-2002 11:38 AM
Re: vgexport
vgexport -m vg01.mapfile /dev/vg01 will create the mapfile vg01.mapfile in the current directory. This is a very small file and you should not be worried about the diskspace. you can create this file in whichever directory you want,
vgexport -s -m /tmp/vg01/mapfile /dev/vg01
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:38 AM
06-19-2002 11:38 AM
Re: vgexport
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 11:45 AM
06-19-2002 11:45 AM