- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM mirror configuration
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
тАО05-23-2009 11:56 PM
тАО05-23-2009 11:56 PM
Re: LVM mirror configuration
Reg:>># lvcreate -L 1000 /dev/dsk/c3t2d0
>># lvextend -m 1 /dev/vg01/lvol3 /dev/dsk/c5t1d2
There is no way to specify the PV during lvcreation as far as I know..so you may need to follow the below steps to control the LE on the disks as per your wish..
1)Create a logical volume with size 0
#lvcreate -n lvol3 /dev/vg01
2)extend the lv to the disk you desired with correct size
#lvextend -L 1000 /dev/vg01/lvol3 /dev/dsk/c3t2d0
3)create a mirror copy in the scond disk
# lvextend -m 1 /dev/vg01/lvol3 /dev/dsk/c5t1d2
There is many ways to archive this ..one way is to use the lvmpvg and create lv with pvg strict policy
Thanks!!
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 04:17 AM
тАО05-24-2009 04:17 AM
Re: LVM mirror configuration
A)so you are telling that we should not follow below steps to add new mirror disks?
3) Adding new disk as physical disk
#pvcreate -f /dev/rdsk/c3t6d0
4) Including new disk into vg01
#vgextend /dev/vg01 /dev/dsk/c3t6d0
5) To create new mirror:
# lvextend -m 1 /dev/vg01/lvol3 /dev/dsk/c3t6d0
B)what is the purpose of these commands?
# vgchange -a y vgXX (by default VGs are backuped then why we are using this command.)
# vgsync vgxx
Hi johnsonpk,
C)we should not use like below?
# lvcreate -L 1000 /dev/vg01/lvol3 /dev/dsk/c3t2d0
D)Instead we have to use below method if we want to create the logical volume in spcified disk?
1)Create a logical volume with size 0
#lvcreate -n lvol3 /dev/vg01
2)extend the lv to the disk you desired with correct size
#lvextend -L 1000 /dev/vg01/lvol3 /dev/dsk/c3t2d0
Guys pls clarify myself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 09:19 AM
тАО05-24-2009 09:19 AM
Re: LVM mirror configuration
See what happens when I tried below command:
root> lvcreate -L 1000 /dev/vg01/lvol31 /dev/dsk/c2t1d0
Volume group "/dev/vg01/lvol31" does not exist in the "/etc/lvmtab" file.
Volume group "/dev/vg01/lvol31" does not exist in the "/etc/lvmtab_p" file.
So that clearly shows we need to create the LV first & then extend it by lvextend command.
You are correct, first create Lvol of size 0 and then extend it.
#lvcreate -n lvol3 /dev/vg01
#lvextend -L 1000 /dev/vg01/lvol3 /dev/dsk/c3t2d0
Man lvcreate also do not have any entry for lvcreate with disk name.
And for vgchange -a y vgXX, it reactivates the VG and activate each specified volume group and all associated physical and logical volumes for read-write access. So in turns it syncronizes the VG. So somtime we would not require "vgsync" command after "vgchange -a y vgXX".
Hope this helps.
R.K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 04:58 PM
тАО05-24-2009 04:58 PM
Re: LVM mirror configuration
you dont need to confuse here, just follow basic steps for mirroring as mentioned. if you face any difficulty let us know, thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2009 01:24 AM
тАО05-25-2009 01:24 AM
Re: LVM mirror configuration
>>>A)so you are telling that we should not follow below steps to add new mirror disks? ..
no ..The below steps are ok
3) Adding new disk as physical disk
#pvcreate -f /dev/rdsk/c3t6d0
4) Including new disk into vg01
#vgextend /dev/vg01 /dev/dsk/c3t6d0
Then...
5)Create a logical volume with size 0
#lvcreate -n lvol3 /dev/vg01
6)extend the lv to the disk you desired with correct size
#lvextend -L 1000 /dev/vg01/lvol3
7)create a mirror copy in the scond disk
# lvextend -m 1 /dev/vg01/lvol3
Hope you are clear now..
Thanks
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2009 01:39 AM
тАО05-25-2009 01:39 AM
Re: LVM mirror configuration
I reiterate you to read this document instead making yourself confused.
http://docs.hp.com/en/5992-4589/5992-4589.pdf
It's a good document on LVM.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2010 08:11 AM
тАО01-08-2010 08:11 AM
Re: LVM mirror configuration
I have following doubts, please clarify me.
1)Can i use bleow command to add 2 mirrors:
# lvextend ├в m 2 /dev/vg01/lvhome
2)From that, how to remove only one mirror (for example mirror - 1)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2010 08:28 AM
тАО01-08-2010 08:28 AM
Re: LVM mirror configuration
2) lvreduce -m 1 blah...blah...blah
Pete
Pete
- « Previous
- Next »