- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Strange /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
09-08-2004 03:35 AM
09-08-2004 03:35 AM
Strange /etc/lvmtab
I have a strange /etc/lvmtab on my HP L1000.
One of the mirrored disk of vg01 was faulty and my procedure to replace it doesn't work this time :
1) ioscan to find which disk is faulty
2) disk replacement
3) pvcreate -f /dev/rdsk/c1t2d0
4) vgcfgrestore -n /dev/rdsk/c1t2d0 (this command never end today :-( )
5) vgchange -a y /dev/vg01
6) vgsync /dev/vg01
Here is my lvmtab file :
#strings /etc/lvmtab
/dev/vg00
:6U
/dev/dsk/c2t0d0
/dev/dsk/c1t0d0
/dev/vg01
i:78
/dev/dsk/c2t2d0
#
I already try to move the current /etc/lvmtab and to recreat it with the vgscan -av command but the new file still the same.
Any idea ?
Regards,
Antony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 03:40 AM
09-08-2004 03:40 AM
Re: Strange /etc/lvmtab
the correct procedure is,
1) ioscan to find which disk is faulty
2) disk replacement
3) vgcfgrestore -n /dev/vg01 /dev/rdsk/c1t2d0
4) vgchange -a y /dev/vg01
5) vgsync /dev/vg01
But you need the old lvmtab since the new lvmtab does not have the disk that went bad listed in it. you don't need to do a pvcreate on a disk that you want to replace using vgcfgrestore.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 03:40 AM
09-08-2004 03:40 AM
Re: Strange /etc/lvmtab
I have a couple of questions.
Did c1t2d0 show up in an ioscan after you replaced the disk? Is c1t2d0 a separate disk or is it an alternate path to c2t2d0?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 03:48 AM
09-08-2004 03:48 AM
Re: Strange /etc/lvmtab
vgcfgrestore -n /dev/vg01 /dev/rdsk/diskname
followed by vgchange -a y /dev/vg01,
vgsync /dev/vg01
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 03:49 AM
09-08-2004 03:49 AM
Re: Strange /etc/lvmtab
But you need the old lvmtab since the new lvmtab does not have the disk that went bad listed in it. you don't need to do a pvcreate on a disk that you want to replace using vgcfgrestore.
unquote
I agree you dont need to vgscan to replace a disk unless your /etc/lvmtab is messed up.
You dont need to pvcreate either if the disk is still listed in /etc/lvmtab as well.
The only steps i routinely do for non-root mirrored disks is:
ioscan -fnC disk
vgcfgrestore -n /dev/vg01 /dev/dsk/cXtXdX
vgchange -a y /dev/vg01
vgsync /dev/vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 03:54 AM
09-08-2004 03:54 AM
Re: Strange /etc/lvmtab
Sanjay: I will update my way to do with Your procedure...
John Poff:
all the disks are CLAIMED in the ioscan
this is a separate disk
There is 4 disks :
2x 9GB disk for the OS (mirrored)
2x 9GB disks for the data (mirrored)
Regards,
Antony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 03:58 AM
09-08-2004 03:58 AM
Re: Strange /etc/lvmtab
Indeed, the correct line was :
# vgcfgrestore -n /dev/vg01 /dev/rdsk/c1t2d0