- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Lost current lvmtab and I have old one -please it'...
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
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-06-2011 01:57 AM
01-06-2011 01:57 AM
Lost current lvmtab and I have old one -please it's Urgent
I lost current lvmtab file and I have another lvmtab file since 2 years only one volume group added since this old one ,now How I can add the missed entry for this volume group to the old lvmtab file ,the missed volume group still active and i can access it.but when use
vgdisply it doesn't appear iv vg list
please help me asap ,it's production environment
Thanks in advance
Mohamed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 02:14 AM
01-06-2011 02:14 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
You cannot, unless you use vgexport / vgimport.
Consider to move lvmtab file away and use vgscan instead. Do this in preview mode first.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 02:15 AM
01-06-2011 02:15 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
try to remove (again) the lvmtab and execute the command:
- for 11iv1, 11iv2 and 11iv3 with legacy devices
# vgscan
- for 11iv3 with agile devices
# vgscan -N
Regards,
Mounaam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 03:39 AM
01-06-2011 03:39 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
After copying lvmtab file from old backup file, the current vgdisplay in this system does NOT list all the VGs. (One "vgn1" is NOT appearing and five VGs are attached to the other system). However the mount point associated with vgn1 is still appearing and the files are accessible. (System is not yet re-booted).
Attached are the outputs of "vgscan -p -v", "df" and "vgdisplay".
There are some VGs (vg_db, vg_redo, vg_ora_db, vg_ora_as,vg_asdb) are presently attached to the other system in the cluster.
Looks like we need to add only vgn1 to the existing.
If I run vgscan and create new lvmtab file,
1. will the new lvmtab file contain the VGs currently assigned to other system?
2. will the new lvmtab file contain all the VGs currently listed in the "df" output in the attachment (including vgn1)?
Please help. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 03:45 AM
01-06-2011 03:45 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
Do vgscan in preview mode (-p) and you will see ...
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 04:18 AM
01-06-2011 04:18 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 04:21 AM
01-06-2011 04:21 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 04:22 AM
01-06-2011 04:22 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
I attached the output of vgscan in the previous reply could you check it and let me know if it is suitable in our case to use vgscan , especially for those VGs currently attached to the other system on the cluster and need also to be configured on the new lvmtab file for service guard HP-UX option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 04:30 AM
01-06-2011 04:30 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 04:41 AM
01-06-2011 04:41 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
Your problem volume group is vgn1, if I read your response above correctly.
Is vgn1 a running volume group on another node in your cluster?
If it IS running on other node, then just run vgscan command to rebuild lvmtab. Make sure you moved the old lvmtab file out of the way. (vgscan -a)
Then do your vgexport command where vgn1 is running and make your mapfile and use it to vgimport the volume group back into the server where you need it.
If vgn1 is NOT running on other node, then I would ask do you know what disk were associated to that volume group? There may still be a way to fix this...
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 05:47 AM
01-06-2011 05:47 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
I will move lvmtab away and run vgscan â p again and post the result to take advice
Thanks a lot
Mr.Rita
vgn1 volume group is running only in one node there are other 5 VGs running on the other node of the cluser.
Thanks alot
Regards
Mohamed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 09:46 AM
01-06-2011 09:46 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
Since you say that vgn1 is running on another node, as well as those 5 other vg's, then it's a simple fix.
On the node they are running on, just go to that node and run:
vgexport -pvs -m /etc/lvmconf/vgn1.map /dev/vgn1
This will create you a fresh mapfile. It won't affect anything, the vg and pkg can be up and running when you do this.
Do this for all the other volume groups.
Now take your new fresh mapfile you just made and copy them to the other node where you need them in lvmtab. On the other node go and run:
mkdir /dev/vgn1
mknod /dev/vgn1/group c 64 0x
vgimport -vs -m /etc/lvmconf/vgn1.map /dev/vgn1
This will now import these back into the lvmtab for you, and it is what you would need to do for the pkg's volume groups to be ready.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2011 04:10 PM
01-06-2011 04:10 PM
Re: Lost current lvmtab and I have old one -please it's Urgent
Move lvmtab file on your system
# mv /etc/lvmtab /etc/lvmtab.old_date
Run vgscan
# vgscan -p -v <- if this command is suceeded then run following command
# vgscan -a
Refore manual page of vgscan for more details and options.
Once vgscan - a run successfully you will have /etc/lvmtab latest file.
You can perform vgexport and importing it on adoptive node as said in above replies
HTH
Regards,
INH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2011 04:10 AM
01-08-2011 04:10 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
please check the attached file which is the output of vgscan -p -v after removing the old lvmtab file and let me know if I can you it to generate new lvmtab file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2011 01:47 AM
01-10-2011 01:47 AM
Re: Lost current lvmtab and I have old one -please it's Urgent
Any update please.
Thanks in advance.
Mohamed