我添加了一个sdb磁盘,上面有一个sdb1
:
[root@localhost ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 111.3G 0 part
├─centos00-swap 253:0 0 7.8G 0 lvm [SWAP]
├─centos00-root 253:1 0 50G 0 lvm /
└─centos00-home 253:2 0 53.5G 0 lvm /home
sdb 8:16 0 111.8G 0 disk
└─sdb1 8:17 0 111.8G 0 part
我想将sdb1挂载到/ data,但是我发现不能:
[root@localhost dev]# mount /dev/sdb1 /data
mount: unknow filesystem "LVM2_member"
这是我可以提供的信息:
[root@localhost dev]# fdisk -l
磁盘 /dev/sda:120.0 GB, 120034123776 字节,234441648 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x00026214
设备 Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 234440703 116707328 8e Linux LVM
磁盘 /dev/sdb:120.0 GB, 120034123776 字节,234441648 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x00085936
设备 Boot Start End Blocks Id System
/dev/sdb1 2048 234440703 117219328 8e Linux LVM
磁盘 /dev/mapper/centos00-swap:8396 MB, 8396996608 字节,16400384 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘 /dev/mapper/centos00-root:53.7 GB, 53687091200 字节,104857600 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘 /dev/mapper/centos00-home:57.4 GB, 57420021760 字节,112148480 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
的lvs
:
[root@localhost dev]# lvs
WARNING: Device for PV Zov90S-LgGB-ScPG-Fxdx-3xD7-OkZv-Yi9s5F not found or rejected by a filter.
Couldn't find device with uuid Zov90S-LgGB-ScPG-Fxdx-3xD7-OkZv-Yi9s5F.
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home centos -wi-----p- <164.82g
root centos -wi-----p- 50.00g
swap centos -wi-----p- 7.75g
home centos00 -wi-ao---- <53.48g
root centos00 -wi-ao---- 50.00g
swap centos00 -wi-ao---- 7.82g
那么,如何将我的/ dev / sdb1挂载到/ data?
vgs显示:
[root@localhost dev]# vgs
WARNING: Device for PV Zov90S-LgGB-ScPG-Fxdx-3xD7-OkZv-Yi9s5F not found or rejected by a filter.
Couldn't find device with uuid Zov90S-LgGB-ScPG-Fxdx-3xD7-OkZv-Yi9s5F.
VG #PV #LV #SN Attr VSize VFree
centos 2 3 0 wz-pn- 222.57g 4.00m
centos00 1 3 0 wz--n- <111.30g 0
pvs显示:
[root@localhost dev]# pvs
WARNING: Device for PV Zov90S-LgGB-ScPG-Fxdx-3xD7-OkZv-Yi9s5F not found or rejected by a filter.
Couldn't find device with uuid Zov90S-LgGB-ScPG-Fxdx-3xD7-OkZv-Yi9s5F.
PV VG Fmt Attr PSize PFree
/dev/sda2 centos00 lvm2 a-- <111.30g 0
/dev/sdb1 centos lvm2 a-- <111.79g 0
[unknown] centos lvm2 a-m <110.79g 4.00m
lvscan显示以下信息:
[root@localhost dev]# lvscan
WARNING: Device for PV Zov90S-LgGB-ScPG-Fxdx-3xD7-OkZv-Yi9s5F not found or rejected by a filter.
Couldn't find device with uuid Zov90S-LgGB-ScPG-Fxdx-3xD7-OkZv-Yi9s5F.
inactive '/dev/centos/swap' [7.75 GiB] inherit
inactive '/dev/centos/home' [<164.82 GiB] inherit
inactive '/dev/centos/root' [50.00 GiB] inherit
ACTIVE '/dev/centos00/swap' [7.82 GiB] inherit
ACTIVE '/dev/centos00/home' [<53.48 GiB] inherit
ACTIVE '/dev/centos00/root' [50.00 GiB] inherit