- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unable to add new disk to one VG, but able to ...
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-07-2004 03:40 AM
12-07-2004 03:40 AM
Re: Unable to add new disk to one VG, but able to add to other VG
The error was the same You got.
I came to first doing a dd over the first 10 mb of the disk or so and doing a regular pvcreate after that.
You might want to give it a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 03:41 AM
12-07-2004 03:41 AM
Re: Unable to add new disk to one VG, but able to add to other VG
# vgextend /dev/vgxx /dev/rdsk/cxtxdx
and then try lvextend -m 1 etc...
Stf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 04:16 AM
12-07-2004 04:16 AM
Re: Unable to add new disk to one VG, but able to add to other VG
vgscan -v
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 08:43 AM
12-07-2004 08:43 AM
Re: Unable to add new disk to one VG, but able to add to other VG
I believe this was your initial problem.
I would do as suggested with vgscan after moving your lvmtab out of the way to see if that clears your problem.
IF that doesnt work, you will need to use the VGREDUCE command with options related to the pvkey to fix your VG.
Here from the man page for VGreduce...
==========================================
Force reduction of missing PVs from volume group: vg01
vgreduce -f /dev/vg01
Removes the physical volume from the volume group when it is still in
the lvmtab file, but it is currently marked as missing from the volume
group: vg01
vgreduce -l /dev/vg01
The following messages will appear after missing PVS has been removed
successfully:
PV with key 0 successfully deleted from vg /dev/vg01
Repair done, please do the following steps.....:
1. Save /etc/lvmtab to another file.
2. Remove /etc/lvmtab.
3. Use vgscan -v to recreate /etc/lvmtab.
4. NOW use vgcfgbackup(1M) to save the LVM setup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 08:52 AM
12-07-2004 08:52 AM
SolutionNext, This is NOT meant as a criticism, but In the future It is better not to remove any disks from the VG in cases like this. Whenever I have a bad disk I usu hotswap it and then run 3 commands. vgcfgrestore vgchange -ay vgXX and vgsync.
To your problem, I believe you need to use pvremove on the device to completely remove any lvm header from it. then issue pvcreate -f /dev/rdsk/cXtXcX on the disk.
also, I think it would be good to do some maintenance on the VG first. Get the VG stable if it is not already. Then make sure you have wiped the disk properly.
Then add the disk to the original VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 08:56 AM
12-07-2004 08:56 AM
Re: Unable to add new disk to one VG, but able to add to other VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 09:52 PM
12-07-2004 09:52 PM
Re: Unable to add new disk to one VG, but able to add to other VG
here my problem is i could able to add the same disk to other VG successfully. but i'm facing problem with adding to one particular VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 10:11 PM
12-07-2004 10:11 PM
Re: Unable to add new disk to one VG, but able to add to other VG
After doing that, other point is to know wether PV is still affected to VG. I believe it's already asked but I can't see it : Can you give output for vgdisplay -v vg02 (I believe it's vg02) ?
If you can't see this pv in vg structure, then it's OK. Restart from beginnning of process : pvcreate, vgextend, lvextend.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 10:14 PM
12-07-2004 10:14 PM
Re: Unable to add new disk to one VG, but able to add to other VG
Allocated PE: 1000
Stale PE: 1000
but when i add thid disk to the other VG, it's working fine.
allocated PE: 25
stale PE: 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 10:17 PM
12-07-2004 10:17 PM
Re: Unable to add new disk to one VG, but able to add to other VG
I can't see pvremove in my version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 10:25 PM
12-07-2004 10:25 PM
Re: Unable to add new disk to one VG, but able to add to other VG
First of all, please provide output of "vgdisplay -v vg02"
and tell me if you issued the "vgscan -v" command. If yes tell me what is output.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2004 10:51 PM
12-07-2004 10:51 PM
Re: Unable to add new disk to one VG, but able to add to other VG
now the vgscan -v o/p is:
/dev/vg02
/dev/dsk/c2t2d0
vgdisplay -v shows only one working disk now.
if i add this problematic disk, it's also visible in vgdisplay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 01:01 AM
12-08-2004 01:01 AM
Re: Unable to add new disk to one VG, but able to add to other VG
Rescan vgscan -v
Post output for all those commands.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 01:32 AM
12-08-2004 01:32 AM
Re: Unable to add new disk to one VG, but able to add to other VG
Physical volume "/dev/rdsk/c3t4d0" has been successfully created.
#vgextend /dev/vg02 /dev/dsk/c3t4d0
Volume group "/dev/vg02" has been successfully extended.
Volume Group configuration for /dev/vg02 has been saved in /etc/lvmconf/vg02.conf
#vgscan -v
/dev/vg02
/dev/dsk/c2t2d0
/dev/dsk/c3t4d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 03:03 AM
12-08-2004 03:03 AM
Re: Unable to add new disk to one VG, but able to add to other VG
lvextend -m 1 /dev/vg02/u02 /dev/dsk/c3t4d0
What about output ?
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 03:28 AM
12-08-2004 03:28 AM
Re: Unable to add new disk to one VG, but able to add to other VG
I could able to do that lvextend successfully.
Pls find below the o/p
lvextend -m 1 /dev/vg02/u02 /dev/dsk/c3t4d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
lvextend: Couldn't re-synchronize stale partitions of the logical volume: I/O error
lvextend: Couldn't resynchronize logical volume "/dev/vg02/u02".
lvdisplay showing stale for this disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 03:32 AM
12-08-2004 03:32 AM
Re: Unable to add new disk to one VG, but able to add to other VG
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 04:07 AM
12-08-2004 04:07 AM
Re: Unable to add new disk to one VG, but able to add to other VG
I dont see where you ever did a vgcfgrestore to restore the lvm info to the disk.
You MUST do this as a step to restore the mirror.
====================
#vgcfgrestore -n /dev/vg02 /dev/dsk/c3t4d0
====================
You cant resolve the stale extents till you do this. After which you can then vgsync the disk and then add it back in as the mirror.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 04:08 AM
12-08-2004 04:08 AM
Re: Unable to add new disk to one VG, but able to add to other VG
Oops I meant to say, vgsync vg02 then lvextend the mirror.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 05:34 PM
12-13-2004 05:34 PM
Re: Unable to add new disk to one VG, but able to add to other VG
- « Previous
-
- 1
- 2
- Next »