- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirroring when root vg contains 2 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
тАО02-23-2004 11:34 PM
тАО02-23-2004 11:34 PM
lvlnboot -v shows :-
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t5d0 (8/4.5.0) -- Boot Disk
/dev/dsk/c0t8d0 (8/4.8.0)
Boot: lvol1 on: /dev/dsk/c0t5d0
Root: lvol3 on: /dev/dsk/c0t5d0
Swap: lvol2 on: /dev/dsk/c0t5d0
Dump: lvol2 on: /dev/dsk/c0t5d0, 0
So I'll need
pvcreate -B /dev/rdsk/c0t9d0
pvcreate /dev/rdsk/c0t10d0
mkboot /dev/rdsk/c0t9d0
mkboot -a "hpux -lq" /dev/rdsk/c0t5d0
mkboot -a "hpux -lq" /dev/rdsk/c0t9d0
vgextend /dev/vg00 /dev/dsk/c0t9d0 /dev/dsk/c0t10d0
Normally I would mirror using :-
for i in 1 2 3 4 5 6 7 8
do
lvextend -m 1 /dev/vg00/lvol$i /dev/dsk/c0t9d0
done
The problem is lvol7 spans both c0t5d0 and c0t8d0. How do do I handle this and get the remains of lvol7 and all of lvol8 onto c0t10d0?
Is this where PVG's come in?
Regards,
Dave.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2004 11:42 PM
тАО02-23-2004 11:42 PM
Re: Mirroring when root vg contains 2 disks
Mirroring is based on the logical volume level and not at the disk level.
There will not be any problem until you have space.
But make sure that your mirror boot disk contains the /,/stand and swap ( the imp. system file systems)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2004 11:44 PM
тАО02-23-2004 11:44 PM
Re: Mirroring when root vg contains 2 disks
# lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c0t9d0 /dev/dsk/c0t10d0
will create the mirro on both disks.
For the last lvol8 use only the t10 disk.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2004 11:46 PM
тАО02-23-2004 11:46 PM
Re: Mirroring when root vg contains 2 disks
You don't have to specify the physical volume with your lvextend command, making all the physical volumes eligible to contain a particular mirrored lvol. Assuming your allocation policies are set up normally, this would prevent the original pv's from being used and c0t9d0/c0t10d0 would end up containing your mirrored copies.
Or you can use PVG's.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2004 11:46 PM
тАО02-23-2004 11:46 PM
Re: Mirroring when root vg contains 2 disks
But indeed this is where PVG's come in !
Just to make ithings easy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2004 11:51 PM
тАО02-23-2004 11:51 PM
Re: Mirroring when root vg contains 2 disks
Regards,
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2004 11:51 PM
тАО02-23-2004 11:51 PM
Re: Mirroring when root vg contains 2 disks
I don't think this is possible in an obvious way.
yes, PVG's are a handy way to mirror some disks, to another set of disks. With PVG's you are sure you mirror are fully separated from the original LVOLs.
But PVG's don't make exact copies, your LVOLs will be mirrored "somewhere" on the PVG.
looking at the syntax:
lvextend -m 1 /dev/vgx/lvolx /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
lvextend will mirror lvolx on c1t0d0, and will continue on c2t0d0 if no space remains on c1t0d0.
If you really need an "exact" copy (performance reasons??), you could fill up the first disk, so it has just enough free PE's as you need for the first part of the logical volume. Then lvextend on the 2 required disk and afterward remove the dummy lvol you created to fill up the disk.
If not for performance reasons, why wouldn't you simply mirror the LVOL (from 2 disks) to one disk?
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 12:08 AM
тАО02-24-2004 12:08 AM
SolutionAdd all the disks to the VG
edit the file /etc/lvmpvg
put in this file the following line
# pg /etc/lvmpvg
VG /dev/vg02
PVG bus1
/dev/dsk/c3t14d0
/dev/dsk/c3t15d0
PVG bus2
/dev/dsk/c0t14d0
/dev/dsk/c0t15d0
The you have to do the next step:
lvchange -s g /dev/vg01/lvol1 (also for the other lvol's) This to put mirroring to strict.
Then do the lvextend -m 1 /dev/vgXX/lvolX
Then it will mirror to the second PVG in your VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 10:00 PM
тАО02-24-2004 10:00 PM
Re: Mirroring when root vg contains 2 disks
The LE to PE mapping is the same across both sides of the mirror.
Regards,
Dave.