linux扩容,添加磁盘出现的问题

tobarman 2013-04-01 08:44:46
添加了一个硬盘 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

...全文
252 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
morris88 2013-04-02
  • 打赏
  • 举报
回复
然后再mkfs
tobarman 2013-04-02
  • 打赏
  • 举报
回复
引用 1 楼 morris88 的回复:
pvcreate vgcreate lvcreate
问题在这里: [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!
morris88 2013-04-01
  • 打赏
  • 举报
回复
pvcreate vgcreate lvcreate

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧