Operating System - HP-UX
1752785 Members
6280 Online
108789 Solutions
New Discussion юеВ

Re: how to check if i have still free 20g local disk?

 
SOLVED
Go to solution
Aristotle
Advisor

how to check if i have still free 20g local disk?

I would like to know if i have still 20g of free disk space as local disk.
31 REPLIES 31
Sharma Sanjeev
Respected Contributor

Re: how to check if i have still free 20g local disk?

Hi Aristotle

Do pvdisplay /dev/dsk/c?t?d? on disk you want to check space.
Look for Free PE and PE Size
Multiply PE Size and Free PE you will get free space in Disk.

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Aristotle
Advisor

Re: how to check if i have still free 20g local disk?

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t6d0
/dev/dsk/c4t6d0
/dev/vgdev
/dev/dsk/c39t3d7
/dev/dsk/c39t4d0
/dev/dsk/c39t4d1
/dev/dsk/c39t4d2
/dev/dsk/c39t4d3
/dev/dsk/c39t4d4
/dev/dsk/c39t4d5
/dev/dsk/c39t4d6
#

is this the way to know your disks? sorry i am just new here
Torsten.
Acclaimed Contributor

Re: how to check if i have still free 20g local disk?

I think these are your local disks:

/dev/vg00
/dev/dsk/c0t6d0
/dev/dsk/c4t6d0

Just do a

# vgdisplay -v vg00

to see the amount of unallocated space.

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!   
Aristotle
Advisor

Re: how to check if i have still free 20g local disk?

thanks, how to know that was my local disk? Could explain a little further?

anyway see below.

# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 8285
Free PE 395
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 112
Current LE 14
Allocated PE 28
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 128
Allocated PE 256
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 3000
Current LE 375
Allocated PE 750
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 7104
Current LE 888
Allocated PE 1776
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 625
Allocated PE 1250
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 6304
Current LE 788
Allocated PE 1576
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 8000
Current LE 1000
Allocated PE 1000
Used PV 1

LV Name /dev/vg00/lvolFTP
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 625
Allocated PE 625
Used PV 2

LV Name /dev/vg00/lvol11
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0


--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
PV Status available
Total PE 4340
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c4t6d0
PV Status available
Total PE 4340
Free PE 395
Autoswitch On
Proactive Polling On


#
Sharma Sanjeev
Respected Contributor

Re: how to check if i have still free 20g local disk?

Hi Aristotle

these are your local disks
/dev/dsk/c0t6d0
/dev/dsk/c4t6d0
which belongs to root vg if you want to see free space in this do
vgdisplay -v vg00 or pvdisplay /dev/dsk/c0t6d0

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Torsten.
Acclaimed Contributor

Re: how to check if i have still free 20g local disk?

...

PE Size (Mbytes) 8
Total PE 8680
Alloc PE 8285
Free PE 395
...

8MB * 395 PE = 3160 MB free


If you want to know what disks are internal, please post

# model
# ioscan -fn

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!   
Sharma Sanjeev
Respected Contributor

Re: how to check if i have still free 20g local disk?

Hi

But here 395 PE's are free only on disk /dev/dsk/c4t6d0 which is mirrored disk and on primary disk no PE's are free as you can see lvol9 is in one PV only.
That's why 395 PE's are free in Second disk.

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Aristotle
Advisor

Re: how to check if i have still free 20g local disk?

@torsten,ok thanks please indicate how to know the local disk
#model
9000/800/S16K-A
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 394 0/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 393 0/0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 543 0/0/2/0/0.104.14.0.0.0.0 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c82t0d0 /dev/rdsk/c82t0d0
disk 574 0/0/2/0/0.104.14.0.0.3.7 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c82t3d7 /dev/rdsk/c82t3d7
disk 587 0/0/2/0/0.104.14.0.0.4.0 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c82t4d0 /dev/rdsk/c82t4d0
disk 588 0/0/2/0/0.104.14.0.0.4.1 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c82t4d1 /dev/rdsk/c82t4d1
disk 589 0/0/2/0/0.104.14.0.0.4.2 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c82t4d2 /dev/rdsk/c82t4d2
disk 590 0/0/2/0/0.104.14.0.0.4.3 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c82t4d3 /dev/rdsk/c82t4d3
disk 591 0/0/2/0/0.104.14.0.0.4.4 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c82t4d4 /dev/rdsk/c82t4d4
disk 592 0/0/2/0/0.104.14.0.0.4.5 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c82t4d5 /dev/rdsk/c82t4d5
disk 593 0/0/2/0/0.104.14.0.0.4.6 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c82t4d6 /dev/rdsk/c82t4d6
disk 406 0/0/8/0/0.103.14.0.0.0.0 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c39t0d0 /dev/rdsk/c39t0d0
disk 475 0/0/8/0/0.103.14.0.0.3.7 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c39t3d7 /dev/rdsk/c39t3d7
disk 476 0/0/8/0/0.103.14.0.0.4.0 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c39t4d0 /dev/rdsk/c39t4d0
disk 477 0/0/8/0/0.103.14.0.0.4.1 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c39t4d1 /dev/rdsk/c39t4d1
disk 478 0/0/8/0/0.103.14.0.0.4.2 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c39t4d2 /dev/rdsk/c39t4d2
disk 479 0/0/8/0/0.103.14.0.0.4.3 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c39t4d3 /dev/rdsk/c39t4d3
disk 480 0/0/8/0/0.103.14.0.0.4.4 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c39t4d4 /dev/rdsk/c39t4d4
disk 481 0/0/8/0/0.103.14.0.0.4.5 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c39t4d5 /dev/rdsk/c39t4d5
disk 482 0/0/8/0/0.103.14.0.0.4.6 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c39t4d6 /dev/rdsk/c39t4d6
disk 395 1/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC
/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0
disk 396 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC
/dev/dsk/c6t6d0 /dev/rdsk/c6t6d0
#
Torsten.
Acclaimed Contributor

Re: how to check if i have still free 20g local disk?

This is a rp8400.

Local disks are

disk 394 0/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0

disk 395 1/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC
/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0

disk 396 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC
/dev/dsk/c6t6d0 /dev/rdsk/c6t6d0



Based on the information above the disk /dev/dsk/c6t6d0 looks still unused.

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!