- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I mirror 1 Vloume Group which is spread acr...
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
10-22-2001 10:54 AM
10-22-2001 10:54 AM
These systems are /, /usr, /tmp, /opt,
/stand, /home, and /var. The /usr file system is actually spread across the disks and is using 1200MB of space on 8/4.5 and 800 MB of space on 8/4.9. The other file systems are completely contained on one disk or the other.
I wish to set up a mirror of vg00 on the two empty disks, 8/4.8 and 8/4.10, such that if either 8/4.5 or 8/4.9 fail, the system will still boot and function.
How would I accomplish such a task?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 11:00 AM
10-22-2001 11:00 AM
Re: How do I mirror 1 Vloume Group which is spread across 2 disks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 11:03 AM
10-22-2001 11:03 AM
Re: How do I mirror 1 Vloume Group which is spread across 2 disks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 11:04 AM
10-22-2001 11:04 AM
Re: How do I mirror 1 Vloume Group which is spread across 2 disks?
#lvextend -m 1 /dev/vg00/lvol? /dev/dsk/otherdisk
I see no reason why that wouldn't work unless you don't have the space. I am, howeve, confused as to why vg00 was set up this way to begin with because if one disk went bad you are still out of luck in most cases.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 11:05 AM
10-22-2001 11:05 AM
Re: How do I mirror 1 Vloume Group which is spread across 2 disks?
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 11:08 AM
10-22-2001 11:08 AM
Re: How do I mirror 1 Vloume Group which is spread across 2 disks?
Hi,
Do you have MirrorDisk/Ux software
You can check this with swlist -l bundle and look for above line. If it is there then follow these steps:
# pvcreate -Bf /dev/rdsk/cXtXdX (the disk
you wish to use.
# vgextend /dev/vg00 /dev/dsk/cXtXdX
# mkboot /dev/rdsk/cXtXdX
# mkboot -a "hpux -lq(;0)/stand/vmunix" /dev/rdsk/cXtXdX
# lvlnboot -R
then do lvextend -m for all lvols explained by others ..
Goodluck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 11:10 AM
10-22-2001 11:10 AM
Re: How do I mirror 1 Vloume Group which is spread across 2 disks?
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 11:12 AM
10-22-2001 11:12 AM
Solution# pvcreate -fB /dev/rdsk/c0t8d0
# pvcreate -f /dev/rdsk/c0t10d0
2. Add this disk to the current root volume group.
# vgextend /dev/vg00 /dev/dsk/c0t8d0 /dev/dsk/c0t10d0
3. Make the new disk a boot disk.
# mkboot /dev/rdsk/c0t8d0
4. Copy the correct AUTO file into the new LIF area. Note: that's an el not a one in hpux -lq, it means allow the system to boot even if one of the boot drives is unavailable. This is why it's done on both disks.
# mkboot -a "hpux -lq" /dev/rdsk/c0t8d0
5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. NOTE: The boot logical voluem must be done first to ensure it occupies the first contiguous set of extents on the new disk, so therefore /stand MUST BE MIRRORED FIRST, then swap/dump, and then Root. Specifying the disk afte the lvol name is optional as the system by default will extend to the other drive.
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t8d0
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t8d0
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t8d0
6. Repeat this for the rest of the logical volumes in vg00, except for the logical volume for /usr. For /usr:
# lvextend -m 1 /dev/vg00/lvol? /dev/dsk/c0t8d0 /dev/dsk/c0t10d0
7. Copy over the lvlnboot information, update the BDRA
# lvlnboot -R /dev/vg00
8. verify the BDRA information for boot, root, primary swap;
# lvlnboot -v
9. If not correct do the following to correct them:
# /usr/sbin/lvlnboot -b /dev/vg00/lvol1
# /usr/sbin/lvlnboot -r /dev/vg00/lvol3
# /usr/sbin/lvlnboot -s /dev/vg00/lvol2
# /usr/sbin/lvlnboot -R /dev/vg00
10. If you made changes in 7, again verify the BDRA:
# lvlnboot -v
11. Verify the volume group has the correct physical volumes now:
# vgdisplay -v vg00
12. Verfiy the logical volumes are mirrored and current:
# lvdisplay -v /dev/vg00/lvol1 # repeat this for each logical volume
13. Verify the physical volume (disk) and that lvol1 is first on the disk:
# pvdisplay -v /dev/dsk/c0t8d0
14. Verify the LIF area and AUTO files on the disks
# lifls /dev/rdsk/c0t8d0
15. To change the alternate boot device: (or it can be done at boot up)
# setboot -a 10/6.0.0 # substitute the actual hardware path
16. You should reboot the system using shutdown -r 0 and verify you can boot to each of the disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 11:14 AM
10-22-2001 11:14 AM
Re: How do I mirror 1 Vloume Group which is spread across 2 disks?
A couple of comments here. First, remember that mirroring is done a software level and involves logical volumes, not physical disks. As you no doubt are aware, you must have purchased the MirrorDisk/UX product to enable mirroring. An excellent guide to setting up mirrors can be found in the "Managing Systems and Workgroups: A Guide for HP-UX System Administrators" manual in the section titled "Managing Mirrored File Systems":
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&con=/hpux/onlinedocs/B2355-90742/00/00/66-con.html&toc=/hpux/onlinedocs/B2355-90742/00/00/66-toc.html&searchterms=system%7ctrusted&queryid=20011022-114951
Next, I'd recommend re-apportioning your vg00 so that it can be contained in one physical volume, or at least so that filesystems are not split across physical disk. This makes recovery of a failed volume easier. Too, when you mirror the logical volumes, physical extents will need to be mirrored on *different* physical disk. You can use 'pvmove' to shift physical extents between the disks.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 11:20 AM
10-22-2001 11:20 AM
Re: How do I mirror 1 Vloume Group which is spread across 2 disks?
Anyway here are the steps:
pvcreate -f -B /dev/rdsk/c0t8d0
pvcreate -f /dev/rdsk/c0t9d0
vgextend /dev/vg00 /dev/dsk/c0t8d0
vgextend /dev/vg00 /dev/dsk/c0t9d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t8d0
Then for each lvol:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t8d0
Specify both /dev/dsk/c0t8d0 and /dev/dsk/c0t9d0 for the lvol containing /usr
When you are all done and tested; I would also do the identical mkboot command specifying the old boot disk so that it too will allow boot without quorum.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2001 11:22 AM
10-22-2001 11:22 AM
Re: How do I mirror 1 Vloume Group which is spread across 2 disks?
On the first place you want to have your mirror disks on an other controller so if the controller fails you can keep on working.
To add a mirror on your disk you can take the following steps:
pvcreate ( -B on at least one disk)
vgextend /disken
lvextend -m 1 logical volume /disk ( let op dat boot root en swap op de disk staan die bootable is)
lvlnboot -b ...
lvlnboot -d ...
lvlnboot -s ...
lvlnboot -r ...
for the syntaxes check the man pages.
hope this will help.