1833016 Members
2811 Online
110048 Solutions
New Discussion

Re: Disk Space

 
John Jayaseelan
Super Advisor

Disk Space

Hi,

pvdisplay results following on a disk, claiming this space is allocated. How to reclaim this space.

00400 current ??? 00000
00401 current ??? 00001
00402 current ??? 00002
00403 current ??? 00003
00404 current ??? 00004
00405 current ??? 00005
00406 current ??? 00006
00407 current ??? 00007
00408 current ??? 00008
00409 current ??? 00009
00410 current ??? 00010
00411 current ??? 00011
00412 current ??? 00012
00413 current ??? 00013
00414 current ??? 00014

Thanks
John Jayaseelan
6 REPLIES 6
Thierry Poels_1
Honored Contributor

Re: Disk Space

hi,

I don't like the question marks....

Where does this disk come from? Was it in use before? Just added to the system?....

pvdisplay does not give an error, so it should be in the lvmtab...

Was a pvcreate already performed on this disk after adding it to the system?

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
John Jayaseelan
Super Advisor

Re: Disk Space

Hi,

The following is the output of pvdisplay. This disk is used in this VG for a ver long time.

# pvdisplay -v /dev/dsk/c0t15d0|more
--- Physical volumes ---
PV Name /dev/dsk/c0t15d0
VG Name /dev/vguv
PV Status available
Allocatable yes
VGDA 2
Cur LV 2
PE Size (Mbytes) 4
Total PE 1023
Free PE 498
Allocated PE 525
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vguv/lvuv_d01 250 250
/dev/vguv/lvuv_ins 150 150

--- Physical extents ---
PE Status LV LE
00000 current /dev/vguv/lvuv_d01 00623
00001 current /dev/vguv/lvuv_d01 00624
00002 current /dev/vguv/lvuv_d01 00625
00003 current /dev/vguv/lvuv_d01 00626
00004 current /dev/vguv/lvuv_d01 00627
00005 current /dev/vguv/lvuv_d01 00628
00006 current /dev/vguv/lvuv_d01 00629
------
00396 current /dev/vguv/lvuv_ins 00146
00397 current /dev/vguv/lvuv_ins 00147
00398 current /dev/vguv/lvuv_ins 00148
00399 current /dev/vguv/lvuv_ins 00149
00400 current ??? 00000
00401 current ??? 00001
00402 current ??? 00002
00403 current ??? 00003
00404 current ??? 00004
00405 current ??? 00005
00406 current ??? 00006
00407 current ??? 00007
00408 current ??? 00008
00409 current ??? 00009
00410 current ??? 00010
00411 current ??? 00011
00412 current ??? 00012
00413 current ??? 00013
-------
00517 current ??? 00117
00518 current ??? 00118
00519 current ??? 00119
00520 current ??? 00120
00521 current ??? 00121
00522 current ??? 00122
00523 current ??? 00123
00524 current ??? 00124
00525 free 00000
00526 free 00000
00527 free 00000
----
01013 free 00000
01014 free 00000
01015 free 00000
01016 free 00000
01017 free 00000
01018 free 00000
01019 free 00000
01020 free 00000
01021 free 00000
01022 free 00000

Thanks
Bernhard Mueller
Honored Contributor

Re: Disk Space

John,

this look exactly as if someone had created an lvol and "removed" it not using lvremove but did rm /dev/vguv/lv_whatevername /dev/vguv/rlv_whatevername

To get this straigt you can use
cd /dev/vguv
ll

look at the group file and the 2 numbers after 0x
*suppose* it was 0x030000
look at lvux_d01 and lvux_ins
they should have minor numbers 0x030001
and 0x030002 then

So enter
mknod lvol_nix b 64 0x030003
mknod rlvol_nix c 64 0x030003

Then pvdisplay will show lvol_nix instead of the ????s

The use lvremove -f /dev/vguv/lvol_nix

That should settle it
Bernhard Mueller
Honored Contributor

Re: Disk Space

John,

this look exactly as if someone had created an lvol and "removed" it not using lvremove but did rm /dev/vguv/lv_whatevername /dev/vguv/rlv_whatevername

To get this straigt you can use
cd /dev/vguv
ll

look at the group file and the 2 numbers after 0x
*suppose* it was 0x030000
look at lvux_d01 and lvux_ins
they should have minor numbers 0x030001
and 0x030002 then

MAYBE there is a file with 0x030003 named
rand-something

Then enter
mknod and-something b 64 0x030003

Else enter
mknod lvol_nix b 64 0x030003
mknod rlvol_nix c 64 0x030003

Then pvdisplay will show lvol_nix or lvoland-something instead of the ????s

The use lvremove -f /dev/vguv/lvol_nix

That should settle it
John Jayaseelan
Super Advisor

Re: Disk Space

Hi,

Created a mknod with tetst an got the following pvdisplay output. lvremove gave error as given below.

# pvdisplay -v /dev/dsk/c0t15d0|more
--- Physical volumes ---
PV Name /dev/dsk/c0t15d0
VG Name /dev/vguv
PV Status available
Allocatable yes
VGDA 2
Cur LV 3
PE Size (Mbytes) 4
Total PE 1023
Free PE 498
Allocated PE 525
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vguv/lvuv_d01 250 250
/dev/vguv/tetst 125 125
/dev/vguv/lvuv_ins 150 150


# lvremove -f /dev/vguv/tetst
lvremove: Can't get lv number of logical volume "/dev/vguv/tetst".
Volume Group configuration for /dev/vguv has been saved in /etc/lvmconf/vguv.cof
[ccprod01]: /dev/vguv

# lvdisplay -v /dev/vguv/tetst|more
--- Logical volumes ---
LV Name /dev/vguv/tetst
VG Name /dev/vguv
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 500
Current LE 125
Allocated PE 125
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/c0t15d0 125 125


Thanks
John Jayaseelan
John Jayaseelan
Super Advisor

Re: Disk Space

Worked fine after creating the raw device file.

mknod rtetst c 64 0x020005


Thanks