- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgimport and vgimport exisiting data
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
07-07-2011 01:56 AM
07-07-2011 01:56 AM
vgimport and vgimport exisiting data
hi,
i'm trying to add an existing lvm disk onto an 11.31 system.
it was in a cluster but since cold installing to 11.31 i haven't done any of the cluster config yet, but the other node is currently up and running.
its connected to a san.
i did a vgexport -v -p -s -m /tmp/vg03 /dev/vg03
i logged into smh and went to import VG.
all of the device names have changed e.g. /dev/dsk/c17t0d1 is now /dev/dsk/c5t0d1
i haven't actually imported it yet i have some concerns.
1. will the new dsk names be an issue?
2. can i just run vgimport -m /tmp/vg03.map /dev/dsk/xxxx /dev/dsk/xxxx/ dev/dsk/xxxx?
vgchange -a -y /dev/vg03
vgcfgbackup /dev/vg03
3. Can i mount the lvols after this, i don't want to corrupt the data on the disk.
am i right in thinking the vgimport will just map some configs on the server to the exisiting vg setup on the disks?
the vgchange will just set the group as active?
i'm trying to do this without taking the cluster down, so at the moment its running on one node ok i just need to get the disks imported at this stage.
i think i'm just being over paranoid about the data on the disks.
cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2011 02:29 AM
07-07-2011 02:29 AM
Re: vgimport and vgimport exisiting data
1. no that will not be an issue
2. You can run #vgimport -s -m /tmp.vg03.map , without specifying the DSFs of your disks, as the VGID is being applied when using the '-s' option and the system is scanned for all the disks that have that VGID stored. You might need to create volume group file manually....
Are those disks activated on the other node? Make sure they are not!! Otherwise data corruption could occur.
If the node where you try to activate the VG is not running SG, you need to #vgchange -c n vg03
before activating the VG. Only then you can activate the VG using #vgchange -a y vg03
Again: Make sure the VG containing the disks is not activated on the other node!
If the VG is activated on the other node, you might activate the VG in this node in read-only mode to not corrupt the data.
3. If you activated the VG in read-only mode on this node and the vg is active on the other node, yes you can.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2011 05:37 PM
07-07-2011 05:37 PM
Re: vgimport and vgimport exisiting data
i was curious about the -s on the vgimport. thanks for clearing that up.
so just run a mknod for the vg?
is there a way to confirm if they are open on the other node?
thanks for that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2011 07:55 PM
07-07-2011 07:55 PM
Re: vgimport and vgimport exisiting data
ok so i ran a cmviewcl -v -f line which displayed a ton of info about the cluster and packages.
the only disk listed was one vg and some disks for the cluster_lock
i assume i can just import the vg for the cluster lock but not activate the vg?
if there were other shared disks by the cluster or packages they should have come up in the cmviewcl so i should be right to import / activate / mount?
cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2011 01:38 AM
07-08-2011 01:38 AM
Re: vgimport and vgimport exisiting data
O
n the cluster node:
#cmviewcl -v -f line|grep fs_name
to see which VG are shared and possibly have that VG active.....
You can import the VG without a problem but do NOT activate it, if it's activated on other node..
If the package using the shared VG is not running, then that should not be a problem, but make sure the package won't start next time you restart the cluster / node / ....
One more thing:
If the shared VG was part of the cluster before, you need to remove the cluster bit with #vgchange -c n <vg_name>
to be able to activate it in single node access (#vgchange -a y <vg_name>) on the node, which is not running SG (as it is in your case).