- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- LVM mirroring
-
- Forums
-
Blogs
- Hybrid Cloud
- Edge
- Data & AI
- Working in Tech
- AI Insights
- Alliances
- Around the Storage Block
- Behind the scenes at Labs
- Careers in Tech
- HPE Storage Tech Insiders
- Inspiring Progress
- IoT at the Edge
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Russia
- HPE Blog, UK & Ireland
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-23-2010 09:39 PM
11-23-2010 09:39 PM
scenario like below:
currently i have 14 lovls in same pv,vg. runnign database and applicaton.now with the additional hdd i will create new pv with the same vg.then i will mirror all 14 lvols to the new pv.and remove lvols from old pv. i like to run application and database from new pv.should i have different mount point or it will run from separate mount point? this is under HP UX SG cluster. plz help.
Regards,
Morshed.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2010 12:03 AM
11-24-2010 12:03 AM
Re: LVM mirroring
Add new PV's to existing VG & mirror all 14 lvols
once done,
and than you can vgreduce -> old PV's
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2010 01:02 AM
11-24-2010 01:02 AM
Re: LVM mirroring
understood.
but my question is once i reduce the existing lvols and like to keep mirrored lvols. should i create different mount point? or it will run from existing mount point.
Regards,
Morshed.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2010 01:10 AM
11-24-2010 01:10 AM
Solutionlvreduce -m 0 /dev/vgxx/lvolxx /dev/dsk/cxtxdx -> old PV's
Remove mirror copies of logical extents of a logical volume from the
physical volume /dev/dsk/c1t0d0: -> example
refer man pages
should i create different mount point? or it will run from existing mount point.
no need .
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2010 01:12 AM
11-24-2010 01:12 AM
Re: LVM mirroring
You are mirroring your lvs and that doesn't need a different mountpoint. Mirroring actually duplicates the extends to the new pv and the filesystem not aware of the underlying redundancy level (mirror) as the lvm manages the mirroring.
Thanks & Regards
Jayakrishnan G Naik
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2010 01:18 AM
11-24-2010 01:18 AM
Re: LVM mirroring
thanks lot.
As it is under service guard cluster do i need to change anything in cluster?
Regards,
Morshed.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2010 01:26 AM
11-24-2010 01:26 AM
Re: LVM mirroring
Use vgexport and vgimport
The vgimport command adds the specified volume group to the system.
The physical volumes, specified as pv_path ..., are scanned to obtain the volume group information and logical volume information. This command works much like vgcreate by requiring that the volume group
device directory and the group special file be created before the command is executed (see vgcreate(1M)). The vg_name is added from the /etc/lvmtab file, and the associated logical volume device files are
added to the system.
man vgexport and vgimport
rgs,
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2010 01:28 AM
11-24-2010 01:28 AM
Re: LVM mirroring
As you are going to remove your PV by mirroring it to new and detaching the old, you need to replicate the changes to other cluster nodes by exporting vg in preview mode to a create a map file and import it on other cluster node.
Recommend to create a runbook for your activity including all the steps to complete an activity. You can probably keep a latest backup as a precautionary measure and execute the task during hours with less load etc.
Thanks & Regards
Jayakrishnan G Naik
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2010 01:31 AM
11-24-2010 01:31 AM
Re: LVM mirroring
when i should do vgexport/import?
once i done every thing on node 1??
should i copy the map file from node1 to node2??
Regards,
Morshed.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2010 01:37 AM
11-24-2010 01:37 AM
Re: LVM mirroring
Yes, After completing everything on node1 you can create map file and copy it to other node.
You can see this thread having the steps to export and import below, but recommend you to create your own runbook with all the commands you are going to execute in the right order and verify and ensure it is fine. This will help to avoid forgetting/missing something to do.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1454717
Thanks & Regards
Jayakrishnan G Naik
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP