当前位置: 技术问答>linux和unix
linux扩容,添加磁盘出现的问题
来源: 互联网 发布时间:2017-04-06
本文导语: 添加了一个硬盘 Disk /dev/sdb: 1097.4 GB 之前不知道怎么整的,在网上看了攻略就整坏了,分区呀,lv什么的都不懂,现在还搞不定!求救! [root@FJXM-DM-ResPool-VM84 ~]# fdisk -l Disk /dev/sda: 536.9 GB, 536870912000 bytes 255 he...
添加了一个硬盘 Disk /dev/sdb: 1097.4 GB 之前不知道怎么整的,在网上看了攻略就整坏了,分区呀,lv什么的都不懂,现在还搞不定!求救!
[root@FJXM-DM-ResPool-VM84 ~]# fdisk -l
Disk /dev/sda: 536.9 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002cf95
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 65271 523774976 8e Linux LVM
Disk /dev/sdb: 1097.4 GB, 1097364144128 bytes
255 heads, 63 sectors/track, 133413 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2b5965e2
Device Boot Start End Blocks Id System
/dev/sdb1 1 133413 1071639891 8e Linux LVM
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_root doesn't contain a valid partition table
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_swap: 19.1 GB, 19075694592 bytes
255 heads, 63 sectors/track, 2319 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_swap doesn't contain a valid partition table
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_home: 471.1 GB, 471095836672 bytes
255 heads, 63 sectors/track, 57274 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_home doesn't contain a valid partition table
我想直接创建文件系统,挂在某个目录下,可是:
[root@FJXM-DM-ResPool-VM84 ~]# mkfs.ext3 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
/dev/sdb1 is apparently in use by the system; will not make a 文件系统 here!
[root@FJXM-DM-ResPool-VM84 ~]# vgdisplay
--- Volume group ---
VG Name vg_fjxmdmrespoolvm84
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 2
Act PV 2
VG Size 507.16 GiB
PE Size 4.00 MiB
Total PE 129834
Alloc PE / Size 129666 / 506.51 GiB
Free PE / Size 168 / 672.00 MiB
VG UUID 6kXeqX-crf3-Nfhy-0xxv-nDnE-eARk-oP0pdC
[root@FJXM-DM-ResPool-VM84 ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name vg_fjxmdmrespoolvm84
PV Size 499.51 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 127874
Free PE 0
Allocated PE 127874
PV UUID TJVNBO-tTLx-Tr9z-HJuC-z8N1-Sad2-EbMEnK
--- Physical volume ---
PV Name /dev/sdb1
VG Name vg_fjxmdmrespoolvm84
PV Size 7.66 GiB / not usable 4.21 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 1960
Free PE 168
Allocated PE 1792
PV UUID 3MfE7e-kpiw-ILyK-IHxd-P2I2-q0vd-BbLrU0
[root@FJXM-DM-ResPool-VM84 ~]# fdisk -l
Disk /dev/sda: 536.9 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002cf95
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 65271 523774976 8e Linux LVM
Disk /dev/sdb: 1097.4 GB, 1097364144128 bytes
255 heads, 63 sectors/track, 133413 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2b5965e2
Device Boot Start End Blocks Id System
/dev/sdb1 1 133413 1071639891 8e Linux LVM
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_root doesn't contain a valid partition table
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_swap: 19.1 GB, 19075694592 bytes
255 heads, 63 sectors/track, 2319 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_swap doesn't contain a valid partition table
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_home: 471.1 GB, 471095836672 bytes
255 heads, 63 sectors/track, 57274 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_fjxmdmrespoolvm84-lv_home doesn't contain a valid partition table
我想直接创建文件系统,挂在某个目录下,可是:
[root@FJXM-DM-ResPool-VM84 ~]# mkfs.ext3 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
/dev/sdb1 is apparently in use by the system; will not make a 文件系统 here!
[root@FJXM-DM-ResPool-VM84 ~]# vgdisplay
--- Volume group ---
VG Name vg_fjxmdmrespoolvm84
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 2
Act PV 2
VG Size 507.16 GiB
PE Size 4.00 MiB
Total PE 129834
Alloc PE / Size 129666 / 506.51 GiB
Free PE / Size 168 / 672.00 MiB
VG UUID 6kXeqX-crf3-Nfhy-0xxv-nDnE-eARk-oP0pdC
[root@FJXM-DM-ResPool-VM84 ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name vg_fjxmdmrespoolvm84
PV Size 499.51 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 127874
Free PE 0
Allocated PE 127874
PV UUID TJVNBO-tTLx-Tr9z-HJuC-z8N1-Sad2-EbMEnK
--- Physical volume ---
PV Name /dev/sdb1
VG Name vg_fjxmdmrespoolvm84
PV Size 7.66 GiB / not usable 4.21 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 1960
Free PE 168
Allocated PE 1792
PV UUID 3MfE7e-kpiw-ILyK-IHxd-P2I2-q0vd-BbLrU0
|
然后再mkfs