- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirroring 101
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
05-12-2008 11:48 AM
05-12-2008 11:48 AM
I did a search on mirroring but I have some questions on procedures found.
I have two 36 GB internal drives. A starting point would be appreiciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2008 11:55 AM
05-12-2008 11:55 AM
Re: Mirroring 101
You mirror disks, by mirroring the logical volumes. So after you create a logical volume on one disk you mirror by:
lvextend -m 1 /dev/vgname/lvolname /dev/dsk/
the -m = mirror
the 1 = one mirror copy
Hope that starts you off...
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2008 12:00 PM
05-12-2008 12:00 PM
Re: Mirroring 101
http://www11.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c00865281-1&docLocale=en&admit=109447626+1210622151225+28353475
If not root disk.
http://docs.hp.com/en/B2355-90950/B2355-90950.pdf appendix A
pvcreate new disk for mirror
pvcreate /dev/rdsk/cxtxdx
add to vgxx
vgextend /dev/vgxx /dev/dsk/cxtxdx
mirror lvols in vgxx
lvextend -m 1 /dev/vgxx/lvolx
(if multiple choices for devices then specify which one you wish the mirror to extend to )
lvextend -m 1 /dev/vgxx/lvolx /dev/dsk/cxtxdx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2008 12:16 PM
05-12-2008 12:16 PM
Re: Mirroring 101
Thanks for writing.
I have eleven logical volumes on the first (root) disk. Do I need to create these eleven on the new disk to be mirrored or does that command handle that automatically?
Please advise.
Regards,
--Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2008 12:30 PM
05-12-2008 12:30 PM
Re: Mirroring 101
> I have eleven logical volumes on the first (root) disk. Do I need to create these eleven on the new disk to be mirrored or does that command handle that automatically?
Mirroring under LVM (which is what I assume we are talking about) is done at the *logical* *volume* level.
That said, if you are mirroring the root disk (vg00) you must mirror at least the first three logical volumes *in order*, where 1=/stand; 2=primary swap; 3=/.
You don't say if you are running PA-RISC or Itanium servers. The procedure for mirror setup of the boot disk differs slightly. I suggest looking at appendix-A of this document:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2008 12:50 PM
05-12-2008 12:50 PM
Re: Mirroring 101
pvcreate -B /dev/rdsk/c1t0d0 #use real disk
mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk
# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
If you are running 64-bit OS:
# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0
# real disk. repeat for other lvols
lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk
Minor variances for Itanium, nothing huge.
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
05-12-2008 02:51 PM
05-12-2008 02:51 PM
Re: Mirroring 101
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/...
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
"m": Illegal option.
# lvextend -A y -L 304 /dev/vg00/...
lvextend: "LogicalExtentsNumber" is not bigger than current setting.
Further help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2008 03:37 PM
05-12-2008 03:37 PM
Solution# swlist -l product |grep -i mirror
If you have HP-UX 11i V2 Foundation Operating Environment (FOE), then MirrorDisk is a product you must purchase.
If you have HP-UX 11i V2 Enterprise Operating Environment (EOE) or Mission Critical Operating Environment (MCOE) then MirrorDisk is included.
As to your 2nd lvextend error, the '-L' indicates the number of MB that you want your LV to be. When using 'lvextend -L' you must specify the TOTAL SIZE IN MB of your LV.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2008 08:31 PM
05-12-2008 08:31 PM
Re: Mirroring 101
Please find the attached script for mirroring.
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2008 08:32 PM
05-12-2008 08:32 PM
Re: Mirroring 101
Please find the attached script for mirroring.
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 07:53 AM
05-13-2008 07:53 AM