- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extending lvol with mirror
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-29-2001 03:44 AM
05-29-2001 03:44 AM
This is a doubt which i have , please help me to sort this out...
I have an HP 9000 / HPUX 10.20
c1t6d0 & c1t5d0 (PVs) make vg01
I have lvol10 in vg01 which is mirrored.
Now i purchased two more same harddisks and installed them at c1t4d0 & c1t3d0
I want to extend lvol10 into these disks
I want to make sure that the extended lvol is also mirrored.
Can any one tell me what exact procedure i should follow ?.
Kaps
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2001 04:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2001 04:01 AM
05-29-2001 04:01 AM
Re: Extending lvol with mirror
first add the disks to your VG00:
vgextend /dev/vg00 /dev/dsk/c1t4d0
vgextend /dev/vg00 /dev/dsk/c1t3d0
then I would use Physical Volume Groups; this allows disks to be grouped in your VG, and gives you the option to mirror a LV to another group of disks
-put the following in /etc/lvmpvg:
VG /dev/vg00
PVG PVG0
/dev/dsk/c1t6d0
/dev/dsk/c1t4d0
PVG PVG1
/dev/dsk/c1t5d0
/dev/dsk/c1t3d0
-then change your LV mirror policy to use the PVG:
lvchange -s g /dev/vg00/lvol10
(same should be applied for all other lvols)
-then extend your lvol10 in the normal way
good luck,
Thierry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2001 04:02 AM
05-29-2001 04:02 AM
Re: Extending lvol with mirror
first i will do
1. pvcreate to the 2 disk
2. add them to the vg01
vgextend /dev/vg01 /dev/dsk/c1t4d0 /dev/dsk/c1t3d0
3. then do lvextend -m 2 and the logical voulme will extend in mrror .
but if you are plaaning to do it do first a fbackup to be on the safe side
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2001 04:09 AM
05-29-2001 04:09 AM
Re: Extending lvol with mirror
pvcreate /dev/rdsk/c1t3d0
pvcraete /dev/rdsk/c1t4d0
vgextend /dev/vg01 /dev/dsk/c1t3d0
vgextend /dev/vg01 /dev/dsk/c1t4d0
lvextend -l < new number of extents> /dev/vg01/lvol10 /dev/dsk/c1t3d0 /dev/dsk/c1t4d0
Since lvol10 is already mirrored you can specify the 2 disks on the one lvextend command. Also don't forget that you will need to unmount the filesystem and use extendfs to increase the filesystem size:
extendfs -F
Have fun.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2001 04:25 AM
05-29-2001 04:25 AM
Re: Extending lvol with mirror
...can't believe I forgot the 'vgextend'...quess that's what a 3-day holiday will do for you ;-)
....JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2001 04:29 AM
05-29-2001 04:29 AM
Re: Extending lvol with mirror
Thierry, after 4-day holiday :)
This is maybe a little reminder not to take anything for granted here ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2001 06:02 AM
05-29-2001 06:02 AM
Re: Extending lvol with mirror
(how long till the next weekend ??)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2001 10:50 PM
05-29-2001 10:50 PM
Re: Extending lvol with mirror
Thank you so much for the contributions. Hope you will continue helping me . After going through the answers i came to know about lot many things. At the same time some doubts also popped up. I request you to help me . Hope i am not violating any forum laws, if yes please tell me i am new to this.
JRF ,
pvcreate (2 disks ), vgextend (2 disks), lvextend to one disk , then extend it with mirror this is what you told. i would like to know what happens at the third & fourth stage ?.
The mirrored lvol10 had two PEs per LE am i correct ?. At this stage if you extend lvol10 to one disk (as you told) a part of lvol10 has two PEs per LE & another part (which is present in the new disk) have one LE per PE . Correct me ?.
My ultimate aim is that i do not want HPUX to create a mirror copies of lvol in the same disk , in that case if one of my disk goes , i also will have to go out of the office with them. (I will be sacked !!!)
LE1 ........ PE1.........c1t3d0
LE1 ........ PE2.........c1t4d0
The mirroring should be done as shown above....
Thierry,
Can you tell me something about PVG ?. What is it ?. Where should i use it ?. & What is mirroring policy you are talking about ?. Can you give me a little explanation ?.
eran maor,
lvextend -m2 ? is it going to work ?. what happens while doing it. as we already have one mirror copy.
John,
What is the diff. between your answer & eran's except -l -L does it make any diff ? pleas clarify
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2001 11:33 PM
05-29-2001 11:33 PM
Re: Extending lvol with mirror
Can you tell me something about PVG ?. What is it ?. Where should i use it ?. & What is mirroring policy you are talking about ?. Can you give me a little explanation ?.
Hi,
about Physical Volume Groups:
normally you have a number of disks in a Volume Group. But you can also group disks in Physical Volume Groups within a Volume Group.
Normally if you create a logical volume you use 'lvcreate -s y ...' : mirrors will be placed on a different disk; if you use PVG's you can also use 'lvcreate -s g ...' : in this case the mirror will be on a different PVG within the Volume Group.
This is extremely handy if you are mirroring disks of different sizes: e.g. put two 2GB disk in PVG1 and one 4 in PVG2, and you will be sure that your 2 GB disks will be mirrored to your 4GB disk without always having to specify explicitely the disk devices. Otherwise the 2GB disks might be mirroring mutually, and there would be no place to mirror data on the 4GB disk.
PVG are usefull if you have several disk in a VG, or have disks of different sizes.
look at manpages of lvmpvg, vgcreate, vgextend, lvcreate for more info.
regards,
Thierry.