- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- one lun in two vgs
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
01-07-2003 07:40 PM
01-07-2003 07:40 PM
I have vg06/lvol1 & lvol2 consisting of about 20 luns and vg07/lvol1 consisting of 2 luns of 7 GB each. I have removed lvol2 from vg06 and checked and removed one lun from vg06.
This lun was added to vg07/lvol1.
Now I can see that the same lun appears from primary link in vg07 and from the alternate link in vg06.
pvdisplay -v shows both of them as current.
This has corrupted my lvol1 in vg06.
What is the best possible method to recover?
I have free luns available in vg06.
Thanks,
Raje.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 09:51 PM
01-07-2003 09:51 PM
SolutionYou should have vgexported the lun on vg06 before you
added it to vg07.
Do a vgreduce on vg06 for the lun you took out.
If you have a vgconfig saved,
restore that.
vgreduce vg06 "lun device file"
do a fsck on vg06/lvol1.
and mount it back.
vgextend the lun to vg07.
Let me know when u solved the problem.
Srini.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 10:45 PM
01-07-2003 10:45 PM
Re: one lun in two vgs
I am not sure how you did it.
If you haven't written anything onto the new link (which is alternate on vg06), then you can possibly recover your data but is not guaranteed.
First, take the lun out of vg07.
Then do a vgcfgrestore on the disk in vg06.
vgcfgrestore -n vg06 /dev/dsk/c?t?d?
vgchange -a y vg06
Now unmount lvol1, Do an fsck and mount it. If everything is looking ok, then add the other link.
If it doesn't work, then you will need to restore it from backup.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 10:53 PM
01-07-2003 10:53 PM
Re: one lun in two vgs
Thanks for your reply and advice.
The users has already written data on vg07/lvol1 on this lun.
Presently my requirement is to remove the Alternate link from vg06.
When I do
# vgreduce /dev/vg06 /dev/dsk/c10t1d5
It says Cannot remove as there are some PE already in use.
What needs to be done to remove the alternate link from vg06?
Thanks,
Raje.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 03:10 PM
01-08-2003 03:10 PM
Re: one lun in two vgs
Try
vgreduce -l
This has to solve your problem.
If not, try deactivating the volume groups.
Srini.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 05:29 PM
01-08-2003 05:29 PM
Re: one lun in two vgs
I thought your problem was solved when I saw rabbit on this.
Do a pvdisplay /dev/dsk/c10t1d5
and see what lvols are still seen on it. Remove them using lvremove.
Then use vgreduce. This will corrupt the volume headers of the disk. So, nce you reduced it, do
vgcfgrestore -n vg07 /dev/rdsk/c10t1d5
vgchange -a y vg07
-Sri
PS: Please do no assign points until your problem is solved