- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirroring on HP-UX
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
01-12-2004 10:27 PM
01-12-2004 10:27 PM
Mirroring on HP-UX
Cheers
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 10:40 PM
01-12-2004 10:40 PM
Re: Mirroring on HP-UX
Mirroring swap is same like mirroring any other logical volumes...
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/swap
I would recommend to mirror your vg00 (including /, /usr, /var etc) (without any user data)...
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 10:40 PM
01-12-2004 10:40 PM
Re: Mirroring on HP-UX
When the default bootdisk crash you are still able to run on the other disk because the swapspace is also mirrored on the second disk.
When the second disk need to be bootable you should do also other things.
when the second disk is c1t6d0 then run the next command's
pvcreate -f -B /dev/rdsk/c1t6d0
vgextend /dev/vg00 /dev/dsk/c1t6d0
mkboot /dev/dsk/c1t6d0
mkboot -a 'hpux -lq' /dev/dsk/c1t6d0
mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p HPUX -p LABEL -p AUTO /dev/dsk/c1t6d0
lvextend -m 1 /dev/vg00/lvol1
lvextend -m 1 /dev/vg00/lvol2
lvextend -m 1 /dev/vg00/lvol3
.... For all the lvol's in vg00 (also swap)
For the default lvol's do next
$ lvlnboot -r /dev/vg00/lvol3
$ lvlnboot -b /dev/vg00/lvol1
$ lvlnboot -s /dev/vg00/lvol2
$ lvlnboot -d /dev/vg00/lvol2
$ lvlnboot -R /dev/vg00
$ lvlnboot -v
Be aware you should have MirrorUX installed on your system.
Regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 10:40 PM
01-12-2004 10:40 PM
Re: Mirroring on HP-UX
I wouldn't mirror swap, since process such as paging, scheduling wouldn't use mirrored swap. which is really a wastage of disk space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 10:44 PM
01-12-2004 10:44 PM
Re: Mirroring on HP-UX
I will always prefer mirroring of swap becoz if i am not mirroring swap and one disk get failed system willn ot come up normally becoz swap space is not available.
It's always good to mirror swap too.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 10:54 PM
01-12-2004 10:54 PM
Re: Mirroring on HP-UX
However if there is a constraint, then what are ignite backups for in case of loss of disk having swap space.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 11:12 PM
01-12-2004 11:12 PM
Re: Mirroring on HP-UX
sorry, just being practical and following what is documented to perform mirroring without a hitch, so:
refer to Technical Knowledge Base, Doc ID: LVMKBRC00005103, "How to create a Mirrored Boot Disk on PA-RISC Systems - Cookbook"
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 01:54 AM
01-13-2004 01:54 AM
Re: Mirroring on HP-UX
Cheers,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 02:01 AM
01-13-2004 02:01 AM
Re: Mirroring on HP-UX
I am confused by Ravi's remark.
I always mirror the primary swap space. We mirror all the lvols that belong to vg00 including swap space. If paging does not use the mirrord disk how come that if the primairy root disk fails the system does not panic ( since we loos primairy swap asswell) i think paging does use both disks. Can you explain this ?
So my advise is to mirror swap ( vg00 at least)
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 02:05 AM
01-13-2004 02:05 AM
Re: Mirroring on HP-UX
Dump areas, on the other hand, should never be mirrored. There should be no question as to where a dump image is actually written. Many people assume that dump and swap are the same areas; that is the default. Swap and dump should never be combined because their functions are entirely separate and moreover if separated, you don't have to worry about copying the dump images before going multi-user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 02:09 AM
01-13-2004 02:09 AM
Re: Mirroring on HP-UX
I have seen cases where people have put swap areas on other VGs, and those I do not mirror.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 06:15 PM
01-13-2004 06:15 PM
Re: Mirroring on HP-UX
A server will panic if you get problems with un-mirrored swap, and if you have problems with a critical disk like this (especially your root/boot disk), then the server will probably hang due to excessive diagnostics/error-recovery anyway.
Rather safe than sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 07:14 PM
01-13-2004 07:14 PM
Re: Mirroring on HP-UX
If there is 1 swap device unmirrored, or becomes unavailable because there is a disk failure and no RAID available that keeps the swap device available, your system will defenitely panic.
If you mirror your root disk, make it bootable (see mkboot and pvcreate -B), and configure this second disk as the alternate boot path in BOOT-ADMIN mode.
Also be sure that the logical volumes (stand, root, swap) on both bootable disks are in exactly the same order : Dont set stand-swap-root on disk 1 and stand-root-swap on disk 2.
Other important things have already been said by others.
Starting mirroring on a non-mirrored LVM rootdisk is not that difficult to configure.
success.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 07:37 PM
01-13-2004 07:37 PM
Re: Mirroring on HP-UX
To mirror your root disk :
USAGE : PROG disque (for example c2t2d0)
pvcreate -Bf /dev/rdsk/$1
mkboot -l /dev/rdsk/$1
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/$1
vgextend /dev/vg00 /dev/dsk/$1
vgdisplay -v /dev/vg00 |grep "LV Name" |awk '{ print $3 }' | while read vl
do
lvextend -m 1 $vl
done
mkboot -b /usr/sbin/diag/lif/updatediaglif -p AUTO -p ISL -p HPUX -p LABEL -p PAD /dev/rdsk/$DISK
vgdisplay -v vg00
lvlnboot -v
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 07:51 PM
01-13-2004 07:51 PM
Re: Mirroring on HP-UX
I agree with Sunil. System will not come up from the mirrored disk. In case of failure of original HDD. Root mirroring is done in case of original fails. The system doesn't reboot and continues with the mirrored copy. That is why SWAP mirroring is must.
Change the (empty) physical volume to become a stand-by spare for the volume group:
pvchange -z y /dev/dsk/c2t0d2.
Check man page of "pvchange"
Pls do assign points accordingly.
Saurav