- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem in LVM
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
01-10-2011 08:57 PM
01-10-2011 08:57 PM
Problem in LVM
We have connected one MSA30 (Toal of 14 Disks, 136GB of capacity each) in one of the server and when we try to add a disk into the VG it is giving error, already this PV was participating in one of the VG and we have removed that VG.
# pvcreate /dev/rdsk/c15t15d0
pvcreate: The physical volume already belongs to a volume group
# pvcreate -f /dev/rdsk/c15t15d0
pvcreate: writing LVM record: Permission denied
# pvremove /dev/rdsk/c15t15d0
pvremove: The physical volume "/dev/rdsk/c15t15d0" belongs to an exported volume group.
pvremove: Couldn't remove physical volume "/dev/rdsk/c15t15d0".
# vgextend vgbkp1 /dev/dsk/c15t15d0
vgextend: Couldn't install the physical volume "/dev/dsk/c15t15d0".
Device busy
#
How it can be resolved, Please suggest.
Warm Regards
Suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2011 10:39 PM
01-10-2011 10:39 PM
Re: Problem in LVM
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2011 10:44 PM
01-10-2011 10:44 PM
Re: Problem in LVM
It is not in cluster environment
Warm Regards
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 01:01 AM
01-11-2011 01:01 AM
Re: Problem in LVM
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 01:06 AM
01-11-2011 01:06 AM
Re: Problem in LVM
here is the pvdisplay output
# pvdisplay /dev/dsk/c15t15d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c15t15d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c15t15d0".
#
Warm Regards
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 03:22 AM
01-11-2011 03:22 AM
Re: Problem in LVM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 03:32 AM
01-11-2011 03:32 AM
Re: Problem in LVM
you may run vgscan -a -v -p ( preview mode )
and check if there are some inconsistencies
with the VGs you want.
These disk have the VGID /PVID associated with the previous volume group.
Depends how you removed that VG , just exported it or destroyed it completely step by step.
The way you did may help in solving it further.
Thanks & Regards
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 03:59 AM
01-11-2011 03:59 AM
Re: Problem in LVM
the strings /etc/lvmtab doesn't give that particular PV information
# strings /etc/lvmtab
/dev/eap3
dL3)
/dev/dsk/c3t14d0
/dev/vg01
/dev/dsk/c3t13d0
/dev/vg00
/dev/disk/disk37_p2
/dev/dsk/c2t6d0s2
/dev/vgbkp1
/dev/dsk/c15t0d0
/dev/dsk/c15t9d0
/dev/dsk/c15t1d0
/dev/dsk/c15t2d0
/dev/dsk/c15t3d0
/dev/dsk/c15t4d0
/dev/dsk/c15t5d0
/dev/dsk/c15t8d0
/dev/dsk/c15t10d0
/dev/dsk/c15t11d0
/dev/dsk/c15t12d0
/dev/dsk/c15t13d0
/dev/dsk/c15t14d0
#
Warm Regards
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 04:03 AM
01-11-2011 04:03 AM
Re: Problem in LVM
here is the vgscan with preview mode as attachment
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c15t15d0
Warm Regards
Suresh.
PS: we have removed the VG in a proper manner as below.
lvremove
vgreduce
vgremove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 04:12 AM
01-11-2011 04:12 AM
Re: Problem in LVM
.This may confirm that its not a part of existing VG ..& i guess this is not a alternate link as shown in "vgdisplay -v |grep -i 'PV Name'
Then we may run dd command to remove the disk headers and create PVs again.
Give it a go !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 04:15 AM
01-11-2011 04:15 AM
Re: Problem in LVM
Please ignore the previous post as i haven`t seen the file which you just attached.
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 04:31 AM
01-11-2011 04:31 AM
Re: Problem in LVM
The best way would be to recover these VGS and destroy them ,step wise
# mkdir /dev/vg11
# mknod /dev/vg11/group c 64 0x010011
#vgimport -v /dev/vg01 /dev/dsk/c0t1d0 /dev/dsk/c0t3d0
then destroy as you did earlier.
lvdestroy, vgreduce , vgdestroy, pvremove.
Looks this MSA has good lot`s of things.
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 04:46 AM
01-11-2011 04:46 AM
Re: Problem in LVM
First of all "PLS ASSIGN POINTS" to ones who are helping and spending some time for you !!!
While coming to the issue.
As maxin explained the Disks can be used for some other Vgs.
So if you are sure that these PVs are no more in use in any system.
Pls do Vgscan again.
still errors are existing find out whether the disks are having parallel conection to any other boxes?
is it possible to have a reboot? if vgscan fails to solve the issue?
rgds
Sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 06:21 AM
01-11-2011 06:21 AM
Re: Problem in LVM
dd id=/dev/zero of=/dev/rdsk/cXtYdZ bs=1024k count=100
That WILL effectively wipeout remnants of any configuration - LVM/VxVM/filesystem,etc -- so you can smoothly use them under LVM (pvcreate) or VxVM (vxdisksetup)
Hope this helps you Babu.
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2011 07:52 AM
01-13-2011 07:52 AM
Re: Problem in LVM
As one suggested, I would follow the process of importing a VG (mkdir, mknod, vgimport, vgchange, mount) on the disk in question (c15t15d0) and find out what it is. When the device busy message comes up and you're certain you are not using it on this server, it makes me think they are utilized on another server. Find out what it is. If you still get the "device busy" errors I would verify with any other server that is connected to that array.
Check the output of /usr/contrib/bin/inq if it exists as sometimes they give device serial numbers. Check this number from the other servers that might be attached to the array.
Try getting some data off the device (dd if=/dev/dsk/c15t15d0 of=/tmp/output count=1000) See what's in the output.
Above all, be certain that anything destructive, (pvcreate -f, dd is done after all possible checking is done).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2011 07:57 AM
01-13-2011 07:57 AM
Re: Problem in LVM
Thanks to everyone and the problem got resolved after replacing the disk.
Warm Regards
Suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2011 07:57 AM
01-13-2011 07:57 AM
Re: Problem in LVM
If yer sure your cXtYdZ's you intending to use to carve a new VG point to disks in that SCSI enclosure/array,
Just simply follow the "dd" trickology above and get on your way.
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2011 08:00 AM
01-13-2011 08:00 AM