- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Replace disk in mirror 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
Discussions
Discussions
Forums
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
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
тАО07-18-2003 09:45 AM
тАО07-18-2003 09:45 AM
One of the hard disks in mirrored VG has died. I have replaced it online with other same size disk. Should I do some further manipulations on volume group to rebuild the mirror or it is suppossed to happen automatically. So, far nothing happened and vgdisplay still reports one of the physical volumes as unavailable although ioscan show it as CLAIMED. I am using hp-ux 10.20 with Mirroring.
thanks,
/M.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2003 09:50 AM
тАО07-18-2003 09:50 AM
Re: Replace disk in mirror VG
From this link,
http://www2.itrc.hp.com/service/iv/node.do?node=prod%2FWW_Start%2FN1%7C16
select Chapter 16 Logical Volume Manager (you then have to click on LVM).
In Chapter 16, you will find a section on Replacing a Failed Disk.
It's an excellent source for all the information concerning this topic.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2003 09:51 AM
тАО07-18-2003 09:51 AM
Solutionvgcfgrestore -n /dev/vg01 /dev/rdsk/c3t5d0
vgchange -a y /dev/vg01
vgsync /dev/vg01
If it is a boot disk:
vgcfgrestore -n /dev/vg00 /dev/rdsk/c3t5d0
vgchange -a y /dev/vg00
mkboot /dev/rdsk/c3t5d0
mkboot -a "hpux -lq (;0)/stand/vmunix"
lvlnboot -R
vgsync
Of course, you need to substitute the appropriate devives and VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2003 10:24 AM
тАО07-18-2003 10:24 AM
Re: Replace disk in mirror VG
unfortunately, I do not have active support contract so cannot navigate knowledge trees. I will try commands then suggested. hope it will not crash my system. Worse comes to worse and disk is actually primary bootable. Disappointing althought that it cannot do it automatically.
/Marius
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2003 10:29 AM
тАО07-18-2003 10:29 AM
Re: Replace disk in mirror VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2003 10:30 AM
тАО07-18-2003 10:30 AM
Re: Replace disk in mirror VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2003 10:35 AM
тАО07-18-2003 10:35 AM
Re: Replace disk in mirror VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2003 11:00 AM
тАО07-18-2003 11:00 AM
Re: Replace disk in mirror VG
On the last vgsync, I left off the volume group
vgsync
should be
vgsync /dev/vg00
No point for this please, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2003 08:35 AM
тАО07-20-2003 08:35 AM
Re: Replace disk in mirror VG
The vgcfgrestore... commands 10/10. But it seems to me that there is a lack of understanding about the LVM. Quick LVM tour.
LVM is split into a few layers, Physical volumes (PV's) are the physical disks, Volume Groups (VGs) is a Logical space that comprises of 1 or more PVs, lastly Logical Volumes (LVs) is the logical partition of the volume group (which will map onto the PVs).
The PV will keep a map of the layout of the volume group information (Number of PV,s, the VG, LVs & there size) this is heal on the head & foot of each of the PVs variously refered to as VGRA (Volume group Raw Area) & VGDB (VG data base). This has TWO majour spin offs
o A disk KNOWs the layout of the LVs on it
o A disk can have this META information put back onto it if this information is lost or corrupted.
The first means that it is possible to simply import a volume group WITHOUT a volume group map file as long as you know rhe disks that comprised the volume group in the first place. the second means that using vgcfgrestore (a dump oon the filesystems /etc/lvmconf/...) the MATA information (VGDB & VGRA) can be restored to the disk.
Mirroring in LVM is done by mirroring each LV to each LV (NOT DISK to DISK). If one of the PVs where an LV resides dissapears, mirroring simply stops for that LV. This means that if you loose a mirrored disk it can be "overcome" by either
o PVcreating a new disk & simply re-mirroring to it
o using vgcfgrestore on a fixed disk
The vgcfgrestore method is far more elagant and that is what it is designed for, but the first is possible.
Anyway I hope this clears the background up slightly.
regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2003 12:32 PM
тАО07-23-2003 12:32 PM
Re: Replace disk in mirror VG
1) vgreduce to remove "old" PV
2) vgextend to create a "new" mirror with new disk
3) mkboot to make it bootable.
My worry is that if new disk is not exactly same vgcfgrestore might not work correctly as it most likele deals with low level hdd geometry (sectors, heads, cylinders, what have you) which will not be the same on differend vendor disk even if it is also 18gb size.
thanks,
/Marius