码迷,mamicode.com
首页 > 其他好文 > 详细

resize2fs: Bad magic number in super-block while t

时间:2018-01-17 16:47:32      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:0.00   erb   docker   command   vsc   write   max   bad   super   

resize2fs: Bad magic number in super-block while trying to open /dev/mapper/cl-root


[root@docker1 ~]# df -Th

Filesystem          Type      Size  Used      Avail   Use%   Mounted on

/dev/mapper/cl-root      xfs     18G     18G    897M    96%    /

devtmpfs            devtmpfs  901M     0      901M   0%     /dev

tmpfs              tmpfs     912M     0     912M   0%     /dev/shm

tmpfs              tmpfs     912M    608K    912M   1%    /run

tmpfs              tmpfs     912M     0     912M   0%     /sys/fs/cgroup

/dev/sda1           xfs      1014M    186M    829M  19%     /boot

tmpfs              tmpfs     183M     0     183M   0%     /run/user/0


[root@docker1 ~]# vgdisplay

  --- Volume group ---

  VG Name               cl

  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               <19.00 GiB

  PE Size               4.00 MiB

  Total PE              4863

  Alloc PE / Size       4862 / 18.99 GiB

  Free  PE / Size       1 / 4.00 MiB

  VG UUID               0g6KUL-2kdC-e4Ml-EMFH-2JYs-SNUT-bn09Od

   

[root@docker1 ~]# pvcreate /dev/sdc

  Physical volume "/dev/sdc" successfully created.

[root@docker1 ~]# vgextend c1 /dev/sdc

  Volume group "c1" not found

  Cannot process volume group c1

[root@docker1 ~]# vgscan

  Reading volume groups from cache.

  Found volume group "cl" using metadata type lvm2

[root@docker1 ~]# vgextend lvm2 /dev/sdc

  Volume group "lvm2" not found

  Cannot process volume group lvm2

[root@docker1 ~]# pscan

-bash: pscan: command not found

[root@docker1 ~]# pvscan

  PV /dev/sda2   VG cl              lvm2 [<19.00 GiB / 4.00 MiB free]

  PV /dev/sdc                       lvm2 [20.00 GiB]

  Total: 2 [<39.00 GiB] / in use: 1 [<19.00 GiB] / in no VG: 1 [20.00 GiB]

[root@docker1 ~]# pvscan

  PV /dev/sda2   VG cl              lvm2 [<19.00 GiB / 4.00 MiB free]

  PV /dev/sdc                       lvm2 [20.00 GiB]

  Total: 2 [<39.00 GiB] / in use: 1 [<19.00 GiB] / in no VG: 1 [20.00 GiB]

[root@docker1 ~]# vgextend cl /dev/sdc

  Volume group "cl" successfully extended

[root@docker1 ~]# vgdisplay

  --- Volume group ---

  VG Name               cl

  System ID             

  Format                lvm2

  Metadata Areas        2

  Metadata Sequence No  4

  VG Access             read/write

  VG Status             resizable

  MAX LV                0

  Cur LV                2

  Open LV               2

  Max PV                0

  Cur PV                2

  Act PV                2

  VG Size               38.99 GiB

  PE Size               4.00 MiB

  Total PE              9982

  Alloc PE / Size       4862 / 18.99 GiB

  Free  PE / Size       5120 / 20.00 GiB

  VG UUID               0g6KUL-2kdC-e4Ml-EMFH-2JYs-SNUT-bn09Od


[root@docker1 ~]# resize2fs /dev/mapper/cl-root

resize2fs 1.42.9 (28-Dec-2013)

resize2fs: Bad magic number in super-block while trying to open /dev/mapper/cl-root

Couldn't find valid filesystem superblock.


resize2fs: Bad magic number in super-block while t

标签:0.00   erb   docker   command   vsc   write   max   bad   super   

原文地址:http://blog.51cto.com/sf1314/2062106

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!