- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reclaim space after removeing the logical volume 1...
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-24-2008 10:11 AM
01-24-2008 10:11 AM
reclaim space after removeing the logical volume 11.23
I am unable to see the space after removing the logical volume through sam .The physical extents showed ???? instead of free ..
Please help ...The OS is 11.23 hp-ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2008 10:56 AM
01-24-2008 10:56 AM
Re: reclaim space after removeing the logical volume 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2008 10:57 AM
01-24-2008 10:57 AM
Re: reclaim space after removeing the logical volume 11.23
Post the output rom vgdisplay -v. Maybe SAM didn't remove the volume correctly and you problably have to remove it manually
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2008 10:58 AM
01-24-2008 10:58 AM
Re: reclaim space after removeing the logical volume 11.23
# vgdisplay -v /dev/vgxx
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 05:56 AM
01-28-2008 05:56 AM
Re: reclaim space after removeing the logical volume 11.23
--- Volume groups ---
VG Name /dev/datavg
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 3
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 8683
VGDA 2
PE Size (Mbytes) 4
Total PE 8681
Alloc PE 8500
Free PE 181
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/datavg/xxxx
LV Status available/syncd
LV Size (Mbytes) 25000
Current LE 6250
Allocated PE 6250
Used PV 1
LV Name /dev/datavg/xyz
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 1250
Used PV 1
LV Name /dev/datavg/abc
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 500
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c2t1d0
PV Status available
Total PE 8681
Free PE 181
Autoswitch On
Proactive Polling On
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 06:11 AM
01-28-2008 06:11 AM
Re: reclaim space after removeing the logical volume 11.23
You have three open lvols abc, xyz and xxxx
Cur LV 4
Open LV 3
which one did you want to remove?
could you post the output of
# ll /dev/datavg
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 06:20 AM
01-28-2008 06:20 AM
Re: reclaim space after removeing the logical volume 11.23
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 07:29 AM
01-28-2008 07:29 AM
Re: reclaim space after removeing the logical volume 11.23
Did you do a lvremove or did you rm /dev/datavg/lvolXX ???
If the latter, then do a
vgcfgrestore -n /dev/datavg
BTW - as a tip, default naming standards suggest that you name your vg's
vg01
vg02
vg03
etc
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 10:24 AM
01-28-2008 10:24 AM
Re: reclaim space after removeing the logical volume 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 06:11 PM
01-28-2008 06:11 PM
Re: reclaim space after removeing the logical volume 11.23
the correct way is lvremove /dev/vgdata/lxxxx.
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 05:43 AM
01-29-2008 05:43 AM
Re: reclaim space after removeing the logical volume 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 06:27 AM
01-29-2008 06:27 AM
Re: reclaim space after removeing the logical volume 11.23
1 of 2 approaches will probably clear this up:
1. vgchange -a y /dev/datavg
vgdisplay /dev/datavg
- Do the number of lv's match now?
OR
2. Recreate the lvol device files (rlvolxxx,lvolxxx) with the mknod command, and then check with lvdisplay. If the number of lv's match, then perform an lvremove of the lvol you wish to be gone.
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 06:28 AM
01-29-2008 06:28 AM
Re: reclaim space after removeing the logical volume 11.23
1 of 2 approaches will probably clear this up:
1. vgchange -a y /dev/datavg
vgdisplay /dev/datavg
- Do the number of lv's match now?
2. Recreate the lvol device files (rlvolxxx,lvolxxx) with the mknod command, and then check with lvdisplay. If the number of lv's match, then perform an lvremove of the lvol you wish to be gone.
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 06:52 AM
01-29-2008 06:52 AM
Re: reclaim space after removeing the logical volume 11.23
So, either restore those files( lvol and rlvol) or try running the command I provided in my last post:
vgcfgrestore -n /dev/datavg
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 07:22 AM
01-29-2008 07:22 AM
Re: reclaim space after removeing the logical volume 11.23
Usage: vgcfgrestore
[-R]
[-F]
{ -n vgname |
-f VGConfPath }
{ -l [-v] |
{[-o OldPVPath] PVPath}}
OldPVPath and PVPath : character special files
OldPVPath and PVPath : character special files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 11:28 PM
01-29-2008 11:28 PM
Re: reclaim space after removeing the logical volume 11.23
# vgcfgrestore -n /dev/datavg /dev/rdsk/c2t1d0
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-30-2008 02:17 PM
01-30-2008 02:17 PM
Re: reclaim space after removeing the logical volume 11.23
vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c2t1d0",
Detach the PV or deactivate the VG, before restoring the PV
What will this command will do ..do i need to restore from the backup ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 12:34 AM
01-31-2008 12:34 AM
Re: reclaim space after removeing the logical volume 11.23
pvchange -a n /dev/rdsk/c2t1d0
This will restore the LVM structure to the disk from backup.
Try this first:
/usr/sbin/vgcfgrestore -n datavg -l
(this is minor "L")
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-31-2008 08:36 AM
01-31-2008 08:36 AM
Re: reclaim space after removeing the logical volume 11.23
# pvchange -a n /dev/rdsk/c2t1d0
Usage: pvchange
[-A Autobackup]
[-s] |
{[-S Autoswitch] [-x Extensibility] [-a Availability] [-t IOTimeout] [-z SparePV] [-p ProactivePolling]}
PhysicalVolumePath
"PhysicalVolumePath": must be a block special file.
# usr/sbin/vgcfgrestore -n datavg -l
Volume Group Configuration information in "/etc/lvmconf/datavg.conf"
VG Name /dev/datavg
---- Physical volumes : 1 ----
/dev/rdsk/c2t1d0 (Non-bootable)
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 09:06 AM
01-31-2008 09:06 AM
Re: reclaim space after removeing the logical volume 11.23
You will need to recreate the block and character device files of the logical volume you have removed.
A restore from backup
B post the complete output from below command and the name of the lvol you have removed and we may be able to give you the mkmod command to recreate the lvol.
# ll /dev/datavg
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 12:12 PM
01-31-2008 12:12 PM
Re: reclaim space after removeing the logical volume 11.23
total 0
cr--r--r-- 1 root sys 64 0x020000 Jan 19 2006 group
br--r----- 1 root sys 64 0x020002 Mar 1 2006 lvhome
br--r----- 1 root sys 64 0x020001 Jan 19 2006 oracle
cr--r----- 1 root sys 64 0x020004 Mar 2 2006 rxyz
cr--r----- 1 root sys 64 0x020002 Mar 1 2006 rlvhome
cr--r----- 1 root sys 64 0x020001 Jan 19 2006 roracle
cr--r----- 1 root sys 64 0x020003 Mar 2 2006 rabc
br--r----- 1 root sys 64 0x020003 Mar 2 2006 abc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 12:41 PM
01-31-2008 12:41 PM
Re: reclaim space after removeing the logical volume 11.23
It was available in your vgdisplay command.
Could you post the name of the missing lvol?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 12:53 PM
01-31-2008 12:53 PM
Re: reclaim space after removeing the logical volume 11.23
# strings /etc/lvmconf/datavg.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 02:57 PM
01-31-2008 02:57 PM
Re: reclaim space after removeing the logical volume 11.23
CONFIG01
/dev/datavg
/dev/rdsk/c2t1d0
LVMREC01%
VGDA0001
VGSA0001D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 03:48 PM
01-31-2008 03:48 PM