- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mirroring on a strict stripe LV
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
тАО03-24-2005 10:46 PM
тАО03-24-2005 10:46 PM
But i think i made a mistake while creating LV. I need confirmation or solution to my problem.
First, i create the VG with 9 disks using the following command
vgcreate /dev/vgdata01 /dev/dsk/c9t8d0 /dev/dsk/c9t9d0 /dev/dsk/c9t10d0 /dev/dsk/c9t11d0 /dev/dsk/c9t12d0 /dev/dsk/c10t0d0 /dev/dsk/c10t1d0 /dev/dsk/c10t2d0 /dev/dsk/c10t3d0
Then the LV stripting over 9 disks by
lvcreate ├в i 9 ├в I 64 ├в n lvdt1 ├в L 3500 /dev/vgdata01
Yes, it's just strict striping without PVG / distributed allocation. Stupid me who can only create a proper LVM configue using LUN's
I just find out the only way to mirror a stripe LV, is using extend-base stripting which require PVG and distributed allocation.
My questions are:
1. Is it true that with my current LVM configuration, I cannot make a mirror of my LV's?
2. I've seen some parm of lvchange, but not sure how to use them.
Is there a way to change the LV's configuration into distributed allocation and whatever more needed to be done, and then add the mirror's WITHOUT restoring the data. If this is possible, how to get this done?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2005 11:23 PM
тАО03-24-2005 11:23 PM
Re: mirroring on a strict stripe LV
the command for create a LV should be:
lvcreate -i 9 -I 64 -n lvdt1 -L 35856 /dev/vgdata01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2005 01:09 AM
тАО03-25-2005 01:09 AM
SolutionApart from this what you are asking, you also need to increase 'max PV' parameter to atleast 18 to add another 9 PVs to this VG. There is no other way of doing that except taking backup,recreating VG & restoring backup.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2005 01:12 AM
тАО03-25-2005 01:12 AM
Re: mirroring on a strict stripe LV
From your help what i understood ..
1. you have a two diskstataions with same configuration.
2.created LVs in one DS using all disks with strict stripe.
3.Now you want implemaent mirror LVs with second DS. right
your question is..
1.Your LVM on DS1 is true.?
Yep . its ok
2.How to change the allocation of LV on DS1?
Better you can do PVG- strict then start miiroring your DS1 to DS2
#vi /etc/lvmpvg
VG /dev/vgdata01
PVG pvg_DS1
/dev/dsk/c9t8d0
/dev/dsk/c9t9d0
/dev/dsk/c9t10d0
/dev/dsk/c9t11d0
/dev/dsk/c9t12d0
/dev/dsk/c10t0d0
/dev/dsk/c10t1d0
/dev/dsk/c10t2d0
/dev/dsk/c10t3d0
PVG pvg_DS2
/dev/ds/cXtYdZ
....
...
then sav and exit
Before mirring a LV you need to set it's allocation policy to PVG-strict, e.g
#lvchange -s g /dev/vgdtat01/lvol1
....
... etc.
#lvdisplay /dev/vgdtat01/lvol1 | grep allocation
More details do
#man lvmpvg
With Cheers,
Shankar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2005 10:33 PM
тАО03-27-2005 10:33 PM
Re: mirroring on a strict stripe LV
2) AKAIK, you can't convert the "-i".
You could convert manually with a copy as follows, but the LVOL would have to be quiet (apps down):
. create second VG, vgB with the other 9 disks
. create a distributed LVOL in this new VG
(you'll have to create a PVG with one group with these 9 disks in it)
. newfs on the LVOL
## newfs -F vxfs /dev/vgB/rlvol1
. umount current LVOL
. mkdir /tmp_mnt
. remount old LVOL manually there
## mount /dev/vgA/lvol1 /tmp_mnt
. change /etc/fstab to mount new LVOL
## /dev/vgB/lvol1 /app ...
. mount new LVOL
## mount /app
. copy the old data to the new spot
(cd /tmp_mnt ; tar cvf - .) | (cd /app ; tar xvf - )
At this point, the apps can come back up.
Now, you an mirror the new guy.
. umount the old
## umount /tmp_mnt
. vgchange -a b vgA ; vgexport vgA
. pvcreate -f the old PVs
. vgextend the old LVOLs into vgB
. create a second group in /etc/lvmpvg
containing the old PVs.
. lvextend /dev/vgB/lvol1 -m1
There are probably some errors in the details, above, but you get the idea.
hth
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2005 07:26 AM
тАО04-03-2005 07:26 AM
Re: mirroring on a strict stripe LV
I totally forgot the MAX PV issue.
Like you said already, I have to rebuild the entired VG.
Here is what I did:
create VG
vgcreate -e 17501 -p 25 -l 32 -g pvg_vg01_01 /dev/vg01 /dev/dsk/c4t0d0 /dev/dsk/c4t1d0 ... ... ...
extend VG
vgextend -g pvg_vg01_02 /dev/vg01 \
/dev/dsk/c9t8d0 /dev/dsk/c9t9d0 \
.... ... ...
create LV
lvcreate -D y -s g -n lvdt1 -l 8960 /dev/vg01
extend LV
lvextend -m 1 /dev/vg01/lvdt1 pvg_vg01_02
By doing this, I succesfully create a VG which strips over a numbers of disks of 1 single DS, and mirror to another DS.
1 more import things to learn was when creating a new VG, I need to define the MAX-PE / PV too.
The "primary side" of the VG was using smaller disks, when creating a VG using these disk, the value for "Max PE per PV" is default to the "Number of PE" of the biggest this. If I want to extend a larger disk later to this VG, I will get error that not all PE of the new large disk can be added to the currect VG.
So I have to predefine MAX PV, MAX PE per PV and also MAV LV.
I know there is a relationship between these numbers and there is a MAX value of it.
How to calculat this value?
if I run
vgcreate -e 17501 -p 25 -l 32 ... ...
the command will works
if i run
vgcreate -e 17501 -p 32 -l 32 ... ...
I will get an error:
VGRA for the disk is too big for the specified parameters. Increase the
extent size or decrease max_PVs/max_LVs and try again.
I cannot fine a good explanation about how to calculate the max allowed value in ITRC. Can anyone help me with this?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2005 07:54 AM
тАО04-03-2005 07:54 AM
Re: mirroring on a strict stripe LV
The Max. No. Of Physical Volumes in a VG is 255 as displayed in man vgcreate. The reason for this error is because you have not altered the Default PE_Size Parameter.
When no. of PV's or LV's increase in a VG you should increase PE Size as well. This is required because increasing these parameters always increase LVM header size and then it grows above One PE Size. The rule of LVM says that LVM header in any case can not be more than the size of one PE.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2005 12:14 PM
тАО04-03-2005 12:14 PM
Re: mirroring on a strict stripe LV
according to my man page, default value for max_pe is 1016.
Anyway.
I am using default PE_size which is 4Mb.
So you were saying when I was adjusting the max.numbers of PE per PV, max PV and max LV, the LVM header is getting bigger then 4Mb?
I am just wonder how to calculate the value of this LVM header size.
Thanks,
William
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2005 05:19 PM
тАО04-03-2005 05:19 PM
Re: mirroring on a strict stripe LV
With your VG group size I think you need to go for PE size of 16MB.
# vgcreate -s 16 -p 32 ...
Sizing table you can use for these purposes is provided in LVM software recovery handbook.
http://www.itrc.hp.com -> navigate knowledge trees -> HP-UX Software Recovery Handbook -> Chapter 16 - Logical Volume Manager (LVM)
Look at the table in Section "Maximum max_pe values for non-boot disks".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2005 05:46 PM
тАО04-04-2005 05:46 PM
Re: mirroring on a strict stripe LV
1. Whenever you adding any disk (PV) per PE will adjust automatically. But explicitely if you define that will be useful for future. Thers is option after creating the VG thgen modify the PE of PV in VG.
2.LVM header size for non-bootable disk not fixed. Its depends on number of PVs, size of PEs.. etc. But usually its smaller. The LVM header has to fit in one PE normally.
With Cheers,
Shankar Ganesh