- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- new LVs in VG
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
10-30-2007 07:21 PM
10-30-2007 07:21 PM
I have HP-UX 11iv1 with ServiceGuard A.11.16 and Oracle RAC cluster.
I restored one of the nodes from Ignite-UX backup. It seems ok. However, I realised that two of my VGs existing in SAN absent.
I imported VGs in lvmtab by vgimport command.
# vgimport -v vgsmdb /dev/dsk/c13t0d0 /dev/dsk/c13t0d1 /dev/dsk/c13t0d2
# vgimport -v vgsmlog /dev/dsk/c13t0d3
Unfortunately, I didn't import from the map file. Thus, there ara a lot of LVs with different names (attached) in VGs. My question is; can i delete that new LVs ?
My cluster is working but i am not sure which of LVs are used.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2007 07:25 PM
10-30-2007 07:25 PM
Re: new LVs in VG
I guess your disk is shared disk. so you can create map file from other side.
thanks
Freddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2007 07:26 PM
10-30-2007 07:26 PM
Solutionimport your vg accoridng to below document
1. find the lun you want to use for extending the vg.
2. pvcreate the disk
# pvcreate /dev/rdsk/c?t?d?
3. extend the vg
# vgextend /dev/vg?? /dev/dsk/c?t?d? /dev/dsk/c?t?d? (the second disk is the altenate link)
4. extend any/all logical volumes/filesystems.
You will have to stop the app if it has control of the fs:
# umount /mountpoint
# lvextend -L
# extendfs -F vxfs /dev/vg??/rlvol??
# mount /dev/vg??/lvol?? /mountpoint
5. Restart the app on the package (if needed)
6. Update the LVM information for the vg on all other nodes in the cluster:
# vgexport -p -v -s -m /tmp/vg??.map vg??
# rcp -p /tmp/vg??.map nodeB:/tmp
On the other node(s):
(first, note the minor number of the vg group file, 0x??0000, as you will need it)
# ll /dev/vg??/group
# vgexport vg??
# mkdir /dev/vg??
# mknod /dev/vg??/group c 64 0x??0000 (same minor # as before)
# vgimport -v -s -m /tmp/vg??.map vg??
Hasan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2007 07:27 PM
10-30-2007 07:27 PM
Re: new LVs in VG
hasan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2007 07:34 PM
10-30-2007 07:34 PM
Re: new LVs in VG
Then copy the created map and dsk files to the restored system.
On the restored system, deactivate the VG's in question and export them (cd /var/tmp ; vgexport
Again on the restored system, create /dev/
I have done this procedure many times.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2007 07:36 PM
10-30-2007 07:36 PM
Re: new LVs in VG
Dont do pvcreate. it make you loose your data. Please do vgexport from other side and import with that map file.
thanks
Freddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2007 07:49 PM
10-30-2007 07:49 PM
Re: new LVs in VG
Create the map files of each shared vgs from the working node. Copy these mapfiles to the restored node.
On the restored node:
Export the shared VGs.
create the vg directories and new group files.
Import the VGs using the mapfiles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2007 08:03 PM
10-30-2007 08:03 PM
Re: new LVs in VG
I will import my LVs from map file created in worked node. Yet, will this operation clear all my old LVs (smdata1...smdataN) and new LVs (lvol1...lvolN). Or i should clear them firstly ? Furthermore, i wonder if this operation will make me lost data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2007 08:16 PM
10-30-2007 08:16 PM