- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgimport to wrong disk
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
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
07-09-2005 12:00 AM
07-09-2005 12:00 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2005 01:47 AM
07-09-2005 01:47 AM
SolutionNow vgimport is fairly benign. It's not like vgcfgrestore where the LVM structures (VGRA/VGDA) write onto over the disk. If the LVM maps are identical on both servers (do a diff between production and test for /etc/lvmconf/vg01.mapfile). If they are different, that is where the problem may have started. Even if they are the same, if both servers are looking at the same disk areas while you're running your database, some codes and data may have been changed without the knowledge of the production machine.
I assume you have used vgexport to remove the vg01 connection (it simply deactivates vg01, then removes all the device files) and shutdown the test machine for now. The DBA will need to do some sanity checking on all the spaces defined on vg01 for the production server.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2005 02:30 AM
07-09-2005 02:30 AM
Re: vgimport to wrong disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2005 02:57 AM
07-09-2005 02:57 AM
Re: vgimport to wrong disk
Now if the directory permissions indeed changed on a local disk (not NFS, or otherwise shared) than something else is going on. What did the ownership change to? root? Is /home on production shared in any way?
Now the vgmaps are automatically created in /etc/lvmconf whenever you make any change to a VG. If nothing is there, then you'll have to go to a backup to retrieve the maps. But if /etc/lvmconf isn't there, something else is going on.
vgscan simply looks at all the disks and builds the volume groups in lvmtab. The devicefile names and the order in which they map to the VG are in those mapfiles. But, there is hope. Use the -p (preview) option for vgexport to build a copy of map:
vgexport -m vg01.backupmap -p -v -s vg01
This looks at the disks and reads the VG map information. The local file vg01.backupmap should have your current map for this VG.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2005 04:02 AM
07-09-2005 04:02 AM
Re: vgimport to wrong disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2005 06:30 AM
07-09-2005 06:30 AM
Re: vgimport to wrong disk
It is a very silly situation where your one server is accessing a disk & other server also using same simultaneously. It seems you just only imported the vg onto the test box. Was something like mounting & updation was done on the file systems lying on the disks belnging to production box.
If only vgimport was attempted or even after mount nothing was updated on test box in the VG the data should be intact but again only if this disk contains static data in production such as forms. If this is dynamic data such as datafiles & the data was updated on the test box after vgimport then data integrity would have been lost.
So just find out which file system is there on this disk in production and what does that file system /mount point contain. You should be a lucky one if these were forms.
Moreover this also alrms you for improper system planning previously & you should try to rectify this whenever possible.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2005 07:13 AM
07-09-2005 07:13 AM
Re: vgimport to wrong disk
Davender - The only thing I did was a vgimport & vgchange on the test box which the disks I STUPIDLY selected were already being used on the prod machine. Right now, I'm not concerned with the test box, I just want to make sure I fix the prod box.
Actually after the reboot of the prod & test system everything is looking OK, but I still need to test the report printing once the dba is done with a cold backup of the db...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2005 07:44 AM
07-09-2005 07:44 AM
Re: vgimport to wrong disk
It seems you have escaped from a big problem here, if the problem seems to only for printing. Printing normally uses static forms & should not have any problems like permissions & ownerships. Even if it is effected there should not be any problems in restoring the backup of that file system itself & not the whole data base.
Keep posting the status.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2005 08:04 AM
07-09-2005 08:04 AM