- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirror Disk
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
07-27-2003 05:55 AM
07-27-2003 05:55 AM
Mirror Disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 06:16 AM
07-27-2003 06:16 AM
Re: Mirror Disk
You can check that this as true as follows:
lvlnboot -v
pvdisplay -v /dev/dsk/c#t#d#
put in real disk numbers.
lvdisplay -v /dev/vg00/lvol#
put in a real lvol
You should have to do nothing other than give the mirrors a few minutes to synch.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 10:35 AM
07-27-2003 10:35 AM
Re: Mirror Disk
If disk fails (or you simply remove it) system waits for some time (let's say, for default timeout 30 sec), and then switches to mirror disk. About swap - it's vital for system, and if it's only at one disk and this disk fails then system will crash. Thus you need swap to be mirrored also (although no need to mirror dump area if there's additional one).
If you replace disk with new one then you need to follow standard restoration process ('ioscan -f', 'pvcreate -B', 'mkboot', 'vgcfgrestore' etc) and after all LVM areas are restored you run 'vgsync'. Remember: if rebooting system on bootup it checks mirror for consistency and may run 'vgsync' also. The difference is that you'll not be able to get rid of it (only may be able to interrupt it ungracefully - not sure if it's possible) and your production may hold on until it will finish. Thus do 'vgsync' when system at low activity (idle) and up at level 3 and above (application level)
Eugeny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 08:31 PM
07-28-2003 08:31 PM
Re: Mirror Disk
Just wanted to confirm that what would be the procedure when one of the system mirror disk fail and we do not have a spare one at the moment.the buddy mirror disk takes over the system and system is working.But when we go to check the disk via ioscan or go for swap info it just keep looking these things. i wanted to know whether we will have to run any command or procedure so that system just keep working accordingly till we have the spare disk to replace it with the failed mirror disk.similarly if we reboot the system with the one mirror system disk failed the system boots properly and shows everthing according i.e. the result of the ioscan and swapinfo command.we have 2 swap partitions on the system disk and are mirrored.
So the real question is whether i will have to run aany command to stabilize the system to keep functioning in case when one mirror disk fail from which system was booted up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 09:58 PM
07-28-2003 09:58 PM
Re: Mirror Disk
But it sounds like you're having other problems.
Can you post and 'vmunix' messages or errors in:
syslog.log
/var/adm/messages
Also run these commands:
dmesg
ioscan -fnk | grep -v CLAIMED
lvlnboot -v
swapinfo -tam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 10:01 PM
07-28-2003 10:01 PM
Re: Mirror Disk
vgsync vg00
vgsync vg01, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 10:01 PM
07-28-2003 10:01 PM
Re: Mirror Disk
Depends on how you set things up.
lvlnboot -v
A word of advice.
Whatever your configuration. Test it. Don't even rely on the lvlnboot output. Test it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 10:23 PM
07-28-2003 10:23 PM
Re: Mirror Disk
Michael i have run the vgsycn and ioscan command.in the result of ioscan i shows both disk(ran simple ioscan command.similarly if i go the have status of the swap partion from SAM,it just keep retreiving the info for long time.i will try to have the syslog as the system is at the client end.according to steven if we'll have to reboot the system from alt path then what is the benefit of the mirrordisk.Just to have system disk copy!!.it should be like if the system disk fails from which system is booted up,the buddy disk should take over till the failed disk is not replaced and mirror copy is not generated.
so pleasecorrect me if i am wrong and suggest any process to solve this problem.this system can not be rebooted as its a main database server and before testing any further i want to have complete info to reduce the downtime and do exact what needs to be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 09:15 AM
07-29-2003 09:15 AM
Re: Mirror Disk
If your root mirror/primary truly fails then simply replacing the disk will not re-build it (as the above implies). If you re-insert the original disk the it is true that lvsync on each of the LVs will do some synching, but vgsync needs to be done with the volume group OFF LINE. I've not actually sucessfully replaced a root mirror without further problems, so I cannot put my hand on my heart & say this is so, but theoretically......
Shutdown system (shutdown -h -y 0)
Replace broken mirror/primary disk
boot into LVM maintanance mode (hpux -lm -is)
# /etc/vgcfgrestore -n vg00 /dev/dsk/????
# vgsync vg00
# vgchange -a y vg00
# init 3 (or reboot -r)
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 09:20 AM
07-29-2003 09:20 AM
Re: Mirror Disk
I would have to recommend not doing init 3 from LVM maintenance mode - that's how the / file system ends up getting mounted as /dev/root. Reboot would be much better.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 10:50 AM
07-29-2003 10:50 AM
Re: Mirror Disk
SAM can not be relied upon for trouble shooting. One problem is the huge number of patches SAM requires.
Please post the commands listed above from the command line in the root directory.
cd /
swapinfo -tam, etc.
If you have to reboot off of the alt boot disk:
reboot
interrupt boot cycle
bo alt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2003 11:07 PM
08-03-2003 11:07 PM
Re: Mirror Disk
my question still remaims unsolved.i want to ask specifically do i need to run any command or process if one of the system mirror disk from which system was booted up fails and and the buddy disk takes over.when buddy disk takes over the system keep functioning but when we go to display the ioscan and swap info the system just keep searching for this information.if i reboot the server from the buddy disk the system boots from the alternate path automatically and after booting the system displays the ioscan and swap info accordingly without any error or delay.
so this means that there is nothing wrong with the mirroring.
So do i need to run any command to keep system functioning when the one of the mirror system disk,from which system is booted,fails and system switches to buddy mirror disk?????