HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Question about vgsplit and vgmerge
Operating System - HP-UX
1836452
Members
2873
Online
110101
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
09-07-2006 08:46 PM
09-07-2006 08:46 PM
Question about vgsplit and vgmerge
Hello,
I just try (for testing) a vgsplit and vgmerge.
I split the lvol4.
vgdisplay -v show me a lvol4 and lvol4b
After fsck lvol4b is mountable, OK.
Than I try a worse case, f.e. lvol4 will be bad.
So I have to use the saved/splittet data from lvol4b =>
# lvmerge /dev/vg00/lvol4 /dev/vg00/lvol4b
Logical volume "/dev/vg00/lvol4" has been successfully merged
with logical volume "/dev/vg00/lvol4b".
Logical volume "/dev/vg00/lvol4" has been successfully removed.
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
----------
# lvdisplay -v /dev/vg00/lvol4
lvdisplay: "/dev/vg00/lvol4": No such file or directory
-----------
# lvdisplay -v /dev/vg00/lvol4b
--- Logical volumes ---
LV Name /dev/vg00/lvol4b
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 24
Current LE 3
Allocated PE 6
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t2d0 3 3
/dev/dsk/c1t2d0 3 3
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c2t2d0 00319 current /dev/dsk/c1t2d0 00319 current
00001 /dev/dsk/c2t2d0 00320 current /dev/dsk/c1t2d0 00320 current
...
----------------------
Whats wrong?
Why "/etc/lvmtab is missing Physical Volumes"?
lvmtab seems OK, shows to devices (c1+c2)
How can I restore (working) lvol4b into lvol4, so I have at the end a lvol4 and no lvol4b in the VG?
Michael
I just try (for testing) a vgsplit and vgmerge.
I split the lvol4.
vgdisplay -v show me a lvol4 and lvol4b
After fsck lvol4b is mountable, OK.
Than I try a worse case, f.e. lvol4 will be bad.
So I have to use the saved/splittet data from lvol4b =>
# lvmerge /dev/vg00/lvol4 /dev/vg00/lvol4b
Logical volume "/dev/vg00/lvol4" has been successfully merged
with logical volume "/dev/vg00/lvol4b".
Logical volume "/dev/vg00/lvol4" has been successfully removed.
Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
----------
# lvdisplay -v /dev/vg00/lvol4
lvdisplay: "/dev/vg00/lvol4": No such file or directory
-----------
# lvdisplay -v /dev/vg00/lvol4b
--- Logical volumes ---
LV Name /dev/vg00/lvol4b
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 24
Current LE 3
Allocated PE 6
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t2d0 3 3
/dev/dsk/c1t2d0 3 3
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c2t2d0 00319 current /dev/dsk/c1t2d0 00319 current
00001 /dev/dsk/c2t2d0 00320 current /dev/dsk/c1t2d0 00320 current
...
----------------------
Whats wrong?
Why "/etc/lvmtab is missing Physical Volumes"?
lvmtab seems OK, shows to devices (c1+c2)
How can I restore (working) lvol4b into lvol4, so I have at the end a lvol4 and no lvol4b in the VG?
Michael
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2006 09:58 PM
09-07-2006 09:58 PM
Re: Question about vgsplit and vgmerge
Hi Michael,
The command used to merge lv is different.
You should use like this..
lvmerge /dev/vg00/lvol4b /dev/vg00/lvol4
Now the data in lvol4 will get mirrored to lvol4b and only lvol4 will be present.
Rgds,
The command used to merge lv is different.
You should use like this..
lvmerge /dev/vg00/lvol4b /dev/vg00/lvol4
Now the data in lvol4 will get mirrored to lvol4b and only lvol4 will be present.
Rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2006 10:43 PM
09-07-2006 10:43 PM
Re: Question about vgsplit and vgmerge
Hello RK,
lvol4b is the good one and lvol4 is the "bad" one,
Your syntax will copy lvol4 (bad) into lvol4b (good).
But you are right, than I have a lvol4 (but with bad data ;-)
I found out, that I can umount the FS and use move the lvol and rlvol to a new name!
But how can I fix the error-messages:
"Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. /etc/lvmtab is missing Physical Volumes."
lvol4b is the good one and lvol4 is the "bad" one,
Your syntax will copy lvol4 (bad) into lvol4b (good).
But you are right, than I have a lvol4 (but with bad data ;-)
I found out, that I can umount the FS and use move the lvol and rlvol to a new name!
But how can I fix the error-messages:
"Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. /etc/lvmtab is missing Physical Volumes."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2006 12:42 AM
09-08-2006 12:42 AM
Re: Question about vgsplit and vgmerge
move /etc/lvmtab to /tmp and do vgscan -av to recreate new lvmtab.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP