- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to mirror 4 disks
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
тАО11-17-2003 02:38 PM
тАО11-17-2003 02:38 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2003 03:05 PM
тАО11-17-2003 03:05 PM
SolutionThen do a pvcreate on both disks, where use -B (bootable) with one disk (if you want to boot from mirror disk in case of failure)
then add the disks to vg00, use vgextend to do that.
use
and go through the following steps
mkboot /dev/rdsk/....(bootbale disk)
mkboot -a -a "hpux -lq (0/0/2/1.6.0;0)/stand/vmunix" /dev/rdsk/...(boot disk)
and then mirror all lvols
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/.. (other disks where you want to mirror)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2003 03:05 PM
тАО11-17-2003 03:05 PM
Re: how to mirror 4 disks
First, make sure that you have MirrorDisk/UX software on your system :
# swlist -l fileset | grep -i mir
which should return something similar to this:
LVM.LVM-MIRROR-RUN
After that please follow the steps below :
# pvcreate -B -f /dev/rdsk/
# pvcreate -f /dev/rdsk/
NOTE : -B required because OS disk
# mkboot /dev/rdsk/
# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/
#vgextend /dev/vg00 /dev/dsk/
#vgextend /dev/vg00 /dev/dsk/
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/
#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/
#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/
Repeat for all the lvols.
#lvlnboot -R
#lvlnboot -v
to verify both disks listed properly.
#setboot -a
This is to set alternate boot path so that the system boots in the event of
pri disk failure.
You can see the knowledge mine at this docID : LVMKBRC00005103 about 'How to create a Mirrored Boot Disk on PA-RISC Systems - Cookbook'
Hope this information can help you.
Best Regards,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2003 03:58 PM
тАО11-17-2003 03:58 PM
Re: how to mirror 4 disks
In my understanding you have 4 disks in system. 2 of them is configured in VG00 as mirrored and you want to add another 2 disks to them.
You can not have more then 2 compy of originoal.
If i am wrong correct me.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2003 08:32 PM
тАО11-17-2003 08:32 PM
Re: how to mirror 4 disks
i agree with Sunil that you can't do it.
you can make 2 copies only of the original disk by using:
lvextend -m 2 /dev/vg00/lvol1 /dev/dsk/new_disk
...
...
but not more than 2
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2003 08:34 PM
тАО11-17-2003 08:34 PM
Re: how to mirror 4 disks
Thank you for your reply! My system with 4 disks ,and 2 of them are configured in vg00 but not mirrored;I want the other 2 disks as mirror to the vg00.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2003 09:06 PM
тАО11-17-2003 09:06 PM
Re: how to mirror 4 disks
you can do it as follow:
- create the 2 disks to vg00
# pvcreate -Bf /dev/rdsk/cxtydz1
# pvcreate -f /dev/rdsk/cxtydz2
the first will be the bootable disk.
- extend the volume group
#vgextend /dev/vg00 /dev/dsk/cxtydz1 /dev/dsk/cxtydz2
- do a lvdisplay for all the lvols that you have to see each lvol on which disk. and write it.
#lvdisplay -v /dev/vg00/lvolx | more
- create the AUTO file :
#mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/cxtydz1
- mirror the lvols:
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cxtydz1
do it for lvol2 and 3...
...
now the lvol that is written on 2 disks you have to do do:
#lvextend -m 1 /dev/vg00/lvolx /dev/dsk/cxtydz1 /dev/dsk/cxtydz2
and the rest of lvols:
#lvextend -m 1 /dev/vg00/lvolx /dev/dsk/cxtydz2
# lvlnboot -r /dev/vg00/lvol3 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00
# lvlnboot -v
Regards:
DGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2003 09:12 PM
тАО11-17-2003 09:12 PM
Re: how to mirror 4 disks
DGH