- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvsplit and use "b" lvols in new vg
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
тАО01-13-2008 08:43 PM
тАО01-13-2008 08:43 PM
I have found I can vgexport the original VG and vgchgid the "b" lvol disks and import them as a new vg using -f vgY.dev, and import the original vg using -f vgX.dev. The only problem is LVM states that it is missing disks, yet vgdisplay does not show the 2nd disk and I can not vgreduce the second disk.
Otherwise I can mount the new VG and use it. Just concerned about the errors it logs. Otherwise it actually seems to work fine.
This is on a PA Superdome Cluster running 11.11
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2008 04:34 AM
тАО01-14-2008 04:34 AM
Solution--> I guess vgY.dev contains only the disks that have the "b" lvol
--> I guess vgX.dev contains only the disks that do have the "source" lvol, not the "b" lvol.
In order to clean this situation I think you should :
- with lvremove remove "b" lvol on vgX. Normally, with "lvdisplay -v" you should see "???" in place of the usual /dev/dsk/cxxx.
- remove "source" lvol on vgY. Same remark
- Repair those vg with -f option of vgreduce : "vgreduce -f vgX", "vgreduce -f vgY".
You can safely ignore the 4 remarks in output of vgreduce. In place, issue "vgcfgbackup" for the 2 vg, deactivate both, activate both VGs. Every thing should be OK. Notice that with vgdisplay, "Cur PV" is now 1, not 2 as before.
Regards
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2008 04:25 PM
тАО01-14-2008 04:25 PM
Re: lvsplit and use "b" lvols in new vg
Pre-requisites : MirrorDisk/UX software installed in the server.
Sufficient space in a different group of disks for mirroring.
=> Create a spare lv ( temporary one ) to fill up the existing free space of the VG.
=> Add adequate spare disks to the VG.
=> lvextend -m 1 /dev/vgname/lvname
=> lvdisplay -v /dev/vgname/lvname |grep -I stale
To make sure there is no stale LVs.
=> Make sure that there is no data modification happening
In case of a db file system halt the database.
=> lvsplit /dev/vgname/lvname
This will create two lvs as /dev/vgname/lvname and /dev/vgname/lvnameb
=> /dev/vgname/lvnameb can be used as a preserved backup LV.
Can be mounted if require.
=> If require to retrieve data
/usr/sbin/lvmerge dest_lv_path src_lv_path
eg:- to copy data from /dev/vgname/lvnameb back to /dev/vgname/lvname
/usr/sbin/lvmerge /dev/vgname/lvname /dev/vgname/lvnameb
This will result in a single LV /dev/vgname/lvnameb with the old data.
=> lvmerge can be used even if the lvs are not created by a previous lvsplit command also. But the lvs should be of the same size.
Please refer to man page of lvsplit and lvmerge before any such activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2008 01:21 PM
тАО01-22-2008 01:21 PM
Re: lvsplit and use "b" lvols in new vg
First split used half the original disks and half the new disks for the "b" lvols. I had always thought in the past that second set of PEs(disk) always formed the "b" lvol. Maybe a new "feature" added by some patch?
At any rate, resynced and used PVGs to tell it what I wanted.
lvremove'd the "b" lvols
vgdeduce'd the "b" PVs out
pvcreate'dd the "b" PVs
vgcreate'd with "b" PVs
vgextend'd with "b" PVs
lvcreate'd with "b" PVs
fsck'd and mounted.
ALL original data still in lvols!!!!!
(Make sure you create/extend lvols exactly as they were done on the original VG).
Thanks!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2008 01:32 PM
тАО01-22-2008 01:32 PM
Re: lvsplit and use "b" lvols in new vg
First split used half the original disks and half the new disks for the "b" lvols. I had always thought in the past that second set of PEs(disk) always formed the "b" lvol. Maybe a new "feature" added by some patch?
At any rate, resynced and used PVGs to tell it what I wanted.
lvremove'd the "b" lvols
vgdeduce'd the "b" PVs out
pvcreate'd the "b" PVs
vgcreate'd with "b" PVs
vgextend'd with "b" PVs
lvcreate'd with "b" PVs
fsck'd and mounted.
ALL original data still in lvols!!!!!
(Make sure you create/extend lvols exactly as they were done on the original VG).
Thanks!!!!