- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgcreate a LUN shows old ghost LVs on that LUN ? H...
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
тАО07-11-2005 02:38 AM
тАО07-11-2005 02:38 AM
all the LVS (67 ghost LVS) in the ops. See steps below. I tried "pvcreate -f disk" but when I vgcreate a vg , I still see all those non-existent lvs.
# vgdisplay -v ops|more
--- Volume groups ---
VG Name /dev/ops
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 67
Max PV 13
Cur PV 1
Act PV 1
Max PE per PV 36684
VGDA 2
PE Size (Mbytes) 4
Total PE 36678
Alloc PE 0
Free PE 36678
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/ops/gblaidx01
..
..
..
--- Physical volumes ---
PV Name /dev/dsk/c9t0d3
PV Status available
Total PE 36678
Free PE 36678
Autoswitch On
# lvremove /dev/ops/gblaidx01
lvremove: Couldn't delete logical volume "/dev/ops/gblaidx01":
The supplied lv number refers to a non-existent logical volume.
Volume Group configuration for /dev/ops has been saved in /etc/lvmconf/ops.conf
# vgremove /dev/ops
Volume group "/dev/ops" has been successfully removed.
# pvcreate -f /dev/rdsk/c9t0d3
Physical volume "/dev/rdsk/c9t0d3" has been successfully created.
# vgcreate /dev/ops /dev/dsk/c9t0d3
Increased the number of physical extents per physical volume to 36684.
vgcreate: Volume group "/dev/ops" could not be created:
VGRA for the disk is too big for the specified parameters. Increase the
extent size or decrease max_PVs/max_LVs and try again.
# vgcreate -p 13 /dev/ops /dev/dsk/c9t0d3
Increased the number of physical extents per physical volume to 36684.
Volume group "/dev/ops" has been successfully created.
Volume Group configuration for /dev/ops has been saved in /etc/lvmconf/ops.conf
inbphes5:/tmp ==> vgdisplay -v /dev/ops|more
--- Volume groups ---
VG Name /dev/ops
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 67
Max PV 13
Cur PV 1
Act PV 1
Max PE per PV 36684
VGDA 2
PE Size (Mbytes) 4
Total PE 36678
Alloc PE 0
Free PE 36678
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/ops/gblaidx01
..
..
..
--- Physical volumes ---
PV Name /dev/dsk/c9t0d3
PV Status available
Total PE 36678
Free PE 36678
Autoswitch On
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 02:45 AM
тАО07-11-2005 02:45 AM
Re: vgcreate a LUN shows old ghost LVs on that LUN ? How to get rid of LVs?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 02:56 AM
тАО07-11-2005 02:56 AM
Re: vgcreate a LUN shows old ghost LVs on that LUN ? How to get rid of LVs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 03:36 AM
тАО07-11-2005 03:36 AM
Re: vgcreate a LUN shows old ghost LVs on that LUN ? How to get rid of LVs?
Allthough the old LV's are not consuming any space but VGRA contains information about them & this is what you want to remove I suppose. For that fill whole LUN with null's or zero's using dd & then issue pvcreate & vgcreats commands.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 03:44 AM
тАО07-11-2005 03:44 AM
SolutionDo vgexport for that VG, pvremove for that LUN & then do this for that LUN 7 follow vg creation procedure, you should not find this back.
#vgexport /dev/ops
#pvremove /dev/dsk/cxtydz
#dd if=/dev/zero bs=256k of=/dev/rdsk/cxtydz
Wait as it will take long time.
Now recreate the VG.
#pvcreate /dev/rdsk/cxtydz
#mkdir /dev/ops
#mknod /dev/ops/group c 64 0x0?0000 (? should be unique in all VG's)
#vgcreate /dev/ops /dev/dsk/cxtydz
#vgdisplay -v /dev/ops |more to verify.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 04:10 AM
тАО07-11-2005 04:10 AM
Re: vgcreate a LUN shows old ghost LVs on that LUN ? How to get rid of LVs?
You can do a pvcreate -f on that disk.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 04:57 AM
тАО07-11-2005 04:57 AM
Re: vgcreate a LUN shows old ghost LVs on that LUN ? How to get rid of LVs?
will keep posted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 01:15 AM
тАО07-12-2005 01:15 AM
Re: vgcreate a LUN shows old ghost LVs on that LUN ? How to get rid of LVs?
I assume it went away after dd. Was everything else normal?
Regards,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 03:39 AM
тАО07-12-2005 03:39 AM
Re: vgcreate a LUN shows old ghost LVs on that LUN ? How to get rid of LVs?
great solution. once again, do appreciate your vaulable input.