Chinaunix首页 | 论坛 | 博客
  • 博客访问: 311396
  • 博文数量: 42
  • 博客积分: 451
  • 博客等级: 下士
  • 技术积分: 890
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-03 18:24
文章分类

全部博文(42)

文章存档

2015年(1)

2013年(9)

2012年(19)

2011年(13)

分类: LINUX

2013-01-14 09:42:18

无法格式化磁盘分区:

点击(此处)折叠或打开

  1. # mkfs.ext4 /dev/sdb1
  2. mke2fs 1.41.12 (17-May-2010)
  3. /dev/sdb1 is apparently in use by the system; will not make a filesystem

查看原因:

点击(此处)折叠或打开

  1. # dmsetup status
  2. VG01-base: 0 4194304 linear  #/dev/sdb1设置为VG01之后被dm服务占用
  3. VG01-test_wang: 0 11747328 linear
  4. vg_infonix6-lv_swap: 0 4128768 linear
  5. vg_infonix6-lv_root: 0 36782080 linear

  6. # lvs
  7.   LV VG Attr LSize Origin Snap% Move Log Copy% Convert
  8.   lv_root vg_infonix6 -wi-ao 17.54g
  9.   lv_swap vg_infonix6 -wi-ao 1.97g

解决方法:

点击(此处)折叠或打开

  1. # dmsetup remove VG01-base
  2. # dmsetup remove VG01-test_wang      #删除映射关系,即取消占用
  3. # dmsetup status
  4. vg_infonix6-lv_swap: 0 4128768 linear
  5. vg_infonix6-lv_root: 0 36782080 linear

继续格式化分区:

点击(此处)折叠或打开

  1. # mkfs.ext4 /dev/sdb1     #以下是正常格式化过程
  2. mke2fs 1.41.12 (17-May-2010)
  3. Filesystem label=
  4. OS type: Linux
  5. Block size=4096 (log=2)
  6. Fragment size=4096 (log=2)
  7. Stride=0 blocks, Stripe width=0 blocks
  8. 524288 inodes, 2097148 blocks
  9. 104857 blocks (5.00%) reserved for the super user
  10. First data block=0
  11. Maximum filesystem blocks=2147483648
  12. 64 block groups
  13. 32768 blocks per group, 32768 fragments per group
  14. 8192 inodes per group
  15. Superblock backups stored on blocks:
  16. 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

  17. Writing inode tables: done
  18. Creating journal (32768 blocks): done
  19. Writing superblocks and filesystem accounting information: done

  20. This filesystem will be automatically checked every 39 mounts or
  21. 180 days, whichever comes first. Use tune2fs -c or -i to override.



阅读(10424) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~