- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disks missing from /etc/lvmtab
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
05-25-2006 01:47 AM
05-25-2006 01:47 AM
Hi All,
I have some disks missing from /etc/lvmtab and need to get them back in there via vgextend etc, but wanted your advice on the best way to do it - This is the output from strings /etc/lvmtab -
root@ugos388# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0s2
/dev/dsk/c3t0d0s2
/dev/vgapp
/dev/dsk/c4t0d1
/dev/dsk/c8t0d1
/dev/vgclwss
/dev/dsk/c4t0d3
/dev/dsk/c4t0d4
/dev/dsk/c4t0d5
/dev/dsk/c4t0d6
/dev/vgclord
/dev/dsk/c4t0d7
/dev/dsk/c8t0d7
root@ugos388#
The volume group /dev/vgclwss should have the alternate disks in the lvmtab, which should be /dev/dsk/c8 ...
Can someone tell me how to identify the 4 disks that need to be put into the /etc/lvmtab file and the syntax to do that.
Thanks alot
Trev
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 01:52 AM
05-25-2006 01:52 AM
Re: Disks missing from /etc/lvmtab
When you say the alternate disks are missing - do you mean the disks shown in vgdisplay -v output as Alternate Link ?
Then they will not show in the lvmtab as they are just differnt path to same disk.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 01:53 AM
05-25-2006 01:53 AM
Re: Disks missing from /etc/lvmtab
First, one does not edit '/etc/lvmtab'. It is a binary file maintained by 'vgscan', 'vgextend', 'vgreduce', 'vgimport' and 'vgexport'.
If you want to add alternate links (pvlinks) to the volume group "/dev/vgclwss", use 'vgextend':
# vgextend /dev/vgclwss /dev/dsk/cXtYdZ
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 01:54 AM
05-25-2006 01:54 AM
Re: Disks missing from /etc/lvmtab
The alternate disks will not show up on the /etc/lvmtab file.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 01:58 AM
05-25-2006 01:58 AM
SolutionAFAIK, the simplest way to see alternate pth disks in /etc/lvmtab is to add the disks to volume group.
If the alternate path is dev/dsk/c8t0 , then the needed command is
vgextend /dev/vgclwss dev/dsk/c8t0d3 /dev/dsk/c8t0d4 /dev/dsk/c8t0d5 /dev/dsk/c8t0d6
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 02:00 AM
05-25-2006 02:00 AM
Re: Disks missing from /etc/lvmtab
If you are not sure and are not on a clustered system, you could do the following steps:
mv /etc/lvmtab /etc/lvmtab.bak
vgscan -v # This will take awhile to run
strings /etc/lvmtab
#You should see the pvlinks in the vgdisplay and the lvmtab
vgchange -a y /dev/vgclwss
vgdisplay -v /dev/vgclwss
If you have a way to find out which devices are suppose to be the alternate links, you can simply vgextend them into the VG.
vgextend /dev/vgclwss /dev/dsk/cXtXdX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 02:31 AM
05-25-2006 02:31 AM
Re: Disks missing from /etc/lvmtab
Sorry - the disks should be visible in /etc/lvmtab.
And you can add those disks using vgextend vgname disk1 disk2 ..
No points for my posts please.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 02:41 AM
05-25-2006 02:41 AM
Re: Disks missing from /etc/lvmtab
Before using vgextend check with pvdisplay -v /dev/dsk/c8t?d? if the disk belongs to a Volume Group.
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 03:13 AM
05-25-2006 03:13 AM
Re: Disks missing from /etc/lvmtab
to rescan and recreate the /etc/lvmtab,
do move the existing lvmtab and rin #vgscan
Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 03:16 AM
05-25-2006 03:16 AM
Re: Disks missing from /etc/lvmtab
if the commmand
vgdisplay -v /dev/vgclwss
not shows the Alternate Link disk, Es:
PV Name /dev/dsk/c6t3d4
PV Name /dev/dsk/c4t4d3 Alternate Link
You need to add them:
vgextend /dev/vgclwss /dev/dsk/c8t0d3 /dev/dsk/c8t0d4 /dev/dsk/c8t0d5 /dev/dsk/c8t0d6
and
strings /etc/lvmtab should to show them
If the vgdisplay show them and lvmtan not show them, you need to run the vgscan command:
mv /etc/lvmtab /etc/lvmtab.old
vgscan -a -v -p (preview)
then
vgscan -a -v
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 03:49 AM
05-25-2006 03:49 AM
Re: Disks missing from /etc/lvmtab
Automatically the links will not disappear.Pls check the root cause of that...
For bringing the links its not a matter.u can issue vgextend..Is there any errors in the syslog regarding the missing links..
Cheers
Arunkumar.B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 12:21 PM
05-25-2006 12:21 PM
Re: Disks missing from /etc/lvmtab
# ioscan -fnC disk
Were the alternate links present in /etc/lvmtab? If that's the case then the easiest way to recover them is by doing a vgchange i.e.
# vgchange -a y vgclwss
See vgchange(1M) for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 06:13 PM
05-25-2006 06:13 PM
Re: Disks missing from /etc/lvmtab
Verify than diskc c7t0d[3-6], are presents in "vgclwss":
# vgdisplay -v vgclwss
--> Act PV ?
--> Physical volumes ---
PV Names ?
rgs,
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 07:05 PM
05-25-2006 07:05 PM
Re: Disks missing from /etc/lvmtab
Copy the lvmtab to some safe location and then do a vgscan
vgscan -a -v
this will recreate the lvmtab file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2006 02:01 AM
05-26-2006 02:01 AM
Re: Disks missing from /etc/lvmtab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2006 11:38 PM
05-26-2006 11:38 PM
Re: Disks missing from /etc/lvmtab
If you want to do load sharing and change the prmiary link for different pvs then after extending it to alternate link execute vgreduce command on primarly link so the next link will become primary link. Later on add other link also so that will become alternate. This is helpful while planning for load sharing..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2006 01:00 AM
06-06-2006 01:00 AM
Re: Disks missing from /etc/lvmtab
Thanks for all responses guys, I have vgextend'ed the volume group and the disks are now seen in the strings /etc/lvmtab. Sorry it's taken a while to get back, but been a little hectic here.
For those that suggested doing a vgscan -a -v I didn't do this, as this can cause more problems than is already there!! You need to be VERY careful when running vgscan it's a very powerful command
James - I never said I was going to 'edit' the /etc/lvmtab file, I know you can't do that, I said I was going to use vgextend to add the disks
All people that suggested searching for the correct disks and using vgextend to add them I have assigned points.
In Summary -
I did this (for each disk that should be in /dev/vgclwss)
# ioscan -fnC disk | grep c8t0d3 (d4, d5 & d6)
# vgextend /dev/vgclwss /dev/dsk/c8t0d3 (d4, d5 & d6)
And this is now my strings /etc/lvmtab output -
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0s2
/dev/dsk/c3t0d0s2
/dev/vgapp
/dev/dsk/c4t0d1
/dev/dsk/c8t0d1
/dev/vgclwss
/dev/dsk/c4t0d3
/dev/dsk/c4t0d4
/dev/dsk/c4t0d5
/dev/dsk/c4t0d6
/dev/dsk/c8t0d3
/dev/dsk/c8t0d4
/dev/dsk/c8t0d5
/dev/dsk/c8t0d6
/dev/vgclord
/dev/dsk/c4t0d7
/dev/dsk/c8t0d7
Thanks all.
Trev