- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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-19-2009 11:34 AM
тАО05-19-2009 11:34 AM
Re: LVM mirror configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 05:20 PM
тАО05-19-2009 05:20 PM
Re: LVM mirror configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 07:29 PM
тАО05-19-2009 07:29 PM
Re: LVM mirror configuration
Attached is the document all about LVM.
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 08:14 PM
тАО05-19-2009 08:14 PM
Re: LVM mirror configuration
Please find the attached doc that I use in case of disk replacements.
Regds,
R.K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 08:40 PM
тАО05-19-2009 08:40 PM
Re: LVM mirror configuration
>>Do we need to create LVM mirroring in two different PV?
YES
>># lvcreate -L 1000 /dev/vg01/lvol3 /dev/dsk/c3t2d0
>># lvextend -m 1 /dev/vg01/lvol3 /dev/dsk/c5t1d2
>>Am i correct?
Yes you are correct make sure about disk /dev/dsk/c5t1d2
>>And if one mirror disks fail, then how to replace the mirroring to new disk?
First make sure which disk you are going to replace root disk or not root disk according to you need to plan for more detail see the attached file When_Good_Disks_Go_Bad.pdf.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 11:36 AM
тАО05-23-2009 11:36 AM
Re: LVM mirror configuration
If it is not boot disk then we can do as follows.
1) First removing the mirror lvm from disk:
#lvreduce -m 0 /dev/vg01/lvol3 /dev/dsk/c5t1d2
2) removing the disk from vg01:
#vgreduce /dev/vg01 /dev/dsk/c5t1d2
3) Adding new disk as physical disk
#pvcreate -f /dev/rdsk/c3t6d0
4) Including new disk into vg.
#vgextend /dev/vg01 /dev/dsk/c3t6d0
5) To create new mirror:
# lvextend -m 1 /dev/vg01/lvol3 /dev/dsk/c3t6d0
Are my steps correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 01:54 PM
тАО05-23-2009 01:54 PM
Re: LVM mirror configuration
Replacing non-root disks is the same on Itanium or PA-risc. Use the following procedure:
# pvcreate /dev/rdsk/cXtXdX
# vgcfgrestore -n vgXX /dev/rdsk/cXtXdX
# vgchange -a y vgXX
# vgsync vgxx
# vgdisplay -v /dev/vgxx (To verify the results)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 05:20 PM
тАО05-23-2009 05:20 PM
Re: LVM mirror configuration
#lvreduce -m 0 /dev/vg01/lvol3 /dev/dsk/c5t1d2
2) removing the disk from vg01:
#vgreduce /dev/vg01 /dev/dsk/c5t1d2
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
above steps are correct. but
if its already mirrored and you are changing the faulty mirror disk. you no need to do "lvextend -m" to remirror again.
Just follow belows :-
# pvcreate /dev/rdsk/cXtXdX
# vgcfgrestore -n vgXX /dev/rdsk/cXtXdX
# vgchange -a y vgXX
# vgsync vgxx
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 09:57 PM
тАО05-23-2009 09:57 PM
Re: LVM mirror configuration
Response to your last query.
See this document:
http://www.hpux.ws/?p=21
Minor variations for 11.23 or 11.31.
Note many modern servers have hardware mirroring which lowers system load. This can eliminate the need for software mirroring.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 11:17 PM
тАО05-23-2009 11:17 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