- 论坛徽章:
- 3
|
目前一块磁盘分区/dev/sda2大概550G做了LVM,LVM划分了两个LV,一个是/dev/VolGroup00/LogVol00,一个是/dev/VolGroup00/LogVol01,目前通过df命令发现/根目录挂载的是/dev/VolGroup00/LogVol00,不知道另一个lv分区/dev/VolGroup00/LogVol01是否是剩余空间,不知道它是否在使用中,不知道它是否已经格式化
想了解,怎么看LVM怎么剩余空间和如何查看所有lv是否都已经格式化并挂载了
[root@mdsdb04 ~]# df -hP |column -t
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 274G 19G 242G 7% /
/dev/sda1 99M 13M 81M 14% /boot
tmpfs 253G 157G 96G 63% /dev/shm
PV信息如下
[root@mdsdb04 ~]# pvscan
PV /dev/sda2 VG VolGroup00 lvm2 [557.75 GB / 0 free]
Total: 1 [557.75 GB] / in use: 1 [557.75 GB] / in no VG: 0 [0 ]
[root@mdsdb04 ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 557.76 GB / not usable 10.83 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 17848
Free PE 0
Allocated PE 17848
PV UUID 6niTrS-R4AM-NsyK-7wsb-toW3-meo2-KYV6qN
[root@mdsdb04 ~]#
VG信息如下
[root@mdsdb04 ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
[root@mdsdb04 ~]# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 557.75 GB
PE Size 32.00 MB
Total PE 17848
Alloc PE / Size 17848 / 557.75 GB
Free PE / Size 0 / 0
VG UUID LHEYe2-ykvz-1dIE-ws2j-JkIy-4fNA-ct3D52
[root@mdsdb04 ~]#
lv信息如下
[root@mdsdb04 ~]# lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [282.16 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [275.59 GB] inherit
[root@mdsdb04 ~]# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID jqeL9X-2hSy-8I66-Xk3L-lXjW-mReh-TAp4Qe
LV Write Access read/write
LV Status available
# open 1
LV Size 282.16 GB
Current LE 9029
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID 6BtF6S-nEbj-1Nqi-iqU1-FuLb-YEtL-KrVKqs
LV Write Access read/write
LV Status available
# open 1
LV Size 275.59 GB
Current LE 8819
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
[root@mdsdb04 ~]#
|
|