- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Questions about remove mirror image on LVM will af...
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
12-20-2001 08:49 PM
12-20-2001 08:49 PM
Questions about remove mirror image on LVM will affect package.
I would like to ask that I had some LVMs (mirrored) running on a package. If I want to remove the mirror image and form a 1 VG from 2 HDs(original 2 HDs for mirror), what things that I need to pay attention to?
Thanks very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2001 12:07 AM
12-21-2001 12:07 AM
Re: Questions about remove mirror image on LVM will affect package.
You will have to remove the mirror on one node. Then on the other node you will have to vgexport/vgimport the modified vg.
On node A :
# lvreduce -m 0 /dev/
for all the LV where cxtydz is the disk you want to remove from the vg
# vgreduce
repeat those steps for the other disk
# vgexport -v -p -m mapfile
# rcp mapfile
On node B :
# vgexport
# mkdir /dev/
# mknod /dev/
# vgimport -v -m /tmp/mapfile
Then create the other vg on one node and import it on the other.
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2001 12:10 AM
12-21-2001 12:10 AM
Re: Questions about remove mirror image on LVM will affect package.
a single disk).
Also if you decide to continue and not buy more disks, make sure you do not remove the ServiceGuard lock disk and also remember to make the same changes to the VG on all other nodes within the cluster which will activate the VG. (vgexport and vgimport commands)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2001 12:12 AM
12-21-2001 12:12 AM
Re: Questions about remove mirror image on LVM will affect package.
Before doing anything backup the data.
It depends how the mirror is set up, if it is just two disks one directly mirrored to the other then the mirror can be split with no problems.
If not then the answer depends upon how the mirror is set up.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2001 12:32 AM
12-21-2001 12:32 AM
Re: Questions about remove mirror image on LVM will affect package.
For my situation, my HD is mirrored like this:
--- Logical volumes ---
LV Name /dev/vg05/lvol1
LV Status available/syncd
LV Size (Mbytes) 17000
Current LE 4250
Allocated PE 8500
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c3t10d0
PV ame /dev/dsk/c5t10d0 Alternate Link
PV Status available
Total PE 4340
Free PE 90
PV Name /dev/dsk/c5t11d0
PV ame /dev/dsk/c3t11d0 Alternate Link
PV Status available
Total PE 4340
Free PE 90
My HD is 18G each (mirrored). I want to cut the mirror and extend the VG to 36G. I think John is right too. If I did not halt the package before proceeding, the package will switch from one node to another. So what else I need to pay attention to?
Thanks very much.
Kenny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2001 01:24 PM
12-31-2001 01:24 PM
Re: Questions about remove mirror image on LVM will affect package.
logical volume by the mirror space returned to the pool. The
solution is:
# lvreduce -m 0 /dev/vg05/lvol1
(removes the mirror /dev/dsk/c5t11d0 from the lvol (but it is
still a member of vg05))
Now, add the freed-up space to lvol1:
# lvextend -l 8500 /dev/vg05/lvol1
If there is a file system in lvol1 that must be grown to fill the
extra space in lvol1, Advanced/Online JFS must be resident on the
system if it is necessary to grow it with the package running.
Finally, because the logical volume size and mirroring information
is only held in the LVM structures on the disks, no system files
need to be updated other than the LVM backup files
(vgcfgbackup(1m)).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2002 05:31 PM
01-01-2002 05:31 PM
Re: Questions about remove mirror image on LVM will affect package.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2002 09:52 PM
01-01-2002 09:52 PM
Re: Questions about remove mirror image on LVM will affect package.
When you want to remove the mirror disk from the VG, the vg info gets modified on the system on which this configuration is performed. You should replicate this change across the other cluster nodes where the package using this VG gets activated. To do this, You have to do a vgexport in shared mode on the configuration node and do a vgimport on the other cluster nodes. You also have to make sure the /etc/lvmpvg file is updated if you were using pvg strict mirroring ealier and now you don't, since you have removed the mirror copy. On the package configuration side you don't have to do anything until you are removing and lv or adding one. You just have to make sure that the vg info is replicated properly across the other nodes.
Hope this helps.
Regds
Do note that you are going to break a cardinal rule in MC/SG. Using a VG in a packge where the VG/LV is not mirrored. This defeats the idea of redundancy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2002 09:56 PM
01-01-2002 09:56 PM
Re: Questions about remove mirror image on LVM will affect package.
I was just going through your post and on second thought i think it should be okay for you to remove the mirror. Seems like you have this mirror on a disk array so there are two paths to the disk and the lun is obviously a raid subsystem. So you can reduce the mirror. First do a lvreduce followed by a vgreduce for the disk and then export the vg map on the configuration node and import it on the other cluster nodes.
Hope this helps.
Regds