- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mirroring boot disk and mirroring swap necessi...
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
11-29-2007 07:45 PM
11-29-2007 07:45 PM
I've got a question relating to swap mirroring.
I use a procedure to mirror a boot disk and there is a step in it that requires to boot into maintenance mode to
lvchange -M n -c n /dev/vg00/lvol2
I need to know if it is absolutely necessary to boot into maintenance mode to do this, and whether it can be done without booting into maintenance mode.
If it is not necessary, I'd like to remove it from the procedure, and if it is necessary, I'd like to know if it is possible to do so via some lvm startup file ie, lvmrc
I can't access the site/console remotely...
(I have a vg00 and a vg01 if needed to be done via lvmrc)
procedure attached.
Bill
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 07:57 PM
11-29-2007 07:57 PM
Re: mirroring boot disk and mirroring swap necessity..
I don't see the sense of the lvchange command. Why changing the mirror consistency recovery setting?
Compare to one of the official procedures (Appendix) in
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
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
11-29-2007 08:07 PM
11-29-2007 08:07 PM
Re: mirroring boot disk and mirroring swap necessity..
It's not necessary to boot into LVM maintenance mode.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 08:15 PM
11-29-2007 08:15 PM
Re: mirroring boot disk and mirroring swap necessity..
We do not bother to to this .
I suspect the idea came to improve performance on older systems when disks were slower and swapping / paging i/o had more of an impact .
The lvol has to be closed to change the mirror write cache so until somebody invents a swapoff command a maintenance mode reboot will be needed .
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 08:47 PM
11-29-2007 08:47 PM
Re: mirroring boot disk and mirroring swap necessity..
is is possible via lvmrc to do this before vg activation?
Can anyone tell me exactly what
lvchange -M n -c n /dev/vg00/lvol2
does too?
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 09:46 PM
11-29-2007 09:46 PM
Solution-c n turns off the consistency recovery for the mirroring after crash because on this occasion there would be no point if weren't saving the consistency data.
-M n turns off the mirror write consistency cache writes which save the data about which extent is the most recent and valid to make this recovery possible in the first place .
This mechanism allows the lvm system to make the two (or three) copies consistent at volume group activation even after crash (volume group stopped with files open for write) .
The -M n would save some i/os to the disk but primary swap is usually not large and has a low i/o rate compared to the rest of the boot disk. The time saved for -c n during a reboot would be quite small anyway .
Since the volume group is not active at that point lvmrc might help you, but read the /etc/lvmrc and /sbin/lvmrc scripts before you customise /etc/lvmrc only . If I were you I would simply adjust your procedure to note that it was no longer entirely nesscessary. The last time I had to fix a broken boot mirror it took 5 weeks to get a slot to reboot so I could check it .
Mike