不知道问题出在哪里,小白~~
Xshell 5 (Build 0556)
Copyright (c) 2002-2015 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
[e:\~]$
Connecting to 121.199.9.252:1984...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Last login: Tue Apr 28 08:52:12 2015 from 125.120.153.219
Welcome to aliyun Elastic Compute Service!
[root@AY13052909 ~]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 20G 2.9G 16G 16% /
devtmpfs 488M 0 488M 0% /dev
tmpfs 497M 0 497M 0% /dev/shm
tmpfs 497M 6.5M 490M 2% /run
tmpfs 497M 0 497M 0% /sys/fs/cgroup
/dev/xvdb1 20G 1.6G 18G 9% /idata
[root@AY13052909 ~]# /etc/init.d/nginx stop
Stopping nginx!
[root@AY13052909 ~]# /etc/init.d/mysqld stop
Shutting down MySQL.. [ OK ]
[root@AY13052909 ~]# /etc/init.d/php-fpm stop
Gracefully shutting down php-fpm . done
[root@AY13052909 ~]# systemctl stop vsftpd.service
[root@AY13052909 ~]# umount /idata
[root@AY13052909 ~]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 20G 2.9G 16G 16% /
devtmpfs 488M 0 488M 0% /dev
tmpfs 497M 0 497M 0% /dev/shm
tmpfs 497M 6.5M 490M 2% /run
tmpfs 497M 0 497M 0% /sys/fs/cgroup
[root@AY13052909 ~]# fdisk /dev/xvdb
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): d
Selected partition 1
Partition 1 is deleted
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-58720255, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-58720255, default 58720255):
Using default value 58720255
Partition 1 of type Linux and of size 28 GiB is set
Command (m for help): wq
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@AY13052909 ~]# e2fsck -f /dev/xvdb1
e2fsck 1.42.9 (28-Dec-2013)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/xvdb1
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
[root@AY13052909 ~]# resize2fs /dev/xvdb1
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /dev/xvdb1
Couldn't find valid filesystem superblock.
[root@AY13052909 ~]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 20G 2.9G 16G 16% /
devtmpfs 488M 0 488M 0% /dev
tmpfs 497M 0 497M 0% /dev/shm
tmpfs 497M 6.5M 490M 2% /run
tmpfs 497M 0 497M 0% /sys/fs/cgroup
[root@AY13052909 ~]# fdisk -l
Disk /dev/xvda: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0009e68a
Device Boot Start End Blocks Id System
/dev/xvda1 * 2048 41943039 20970496 83 Linux
Disk /dev/xvdb: 30.1 GB, 30064771072 bytes, 58720256 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x1aced61c
Device Boot Start End Blocks Id System
/dev/xvdb1 2048 58720255 29359104 83 Linux
引用第3楼海曼于2015-04-28 10:41发表的 回2楼shuguang的帖子 :同感啊。
这个问题其实昨天我在另外一个账户给官方提议过了.
官方回复是resize2fs 扩容的话,数据不会丢失的?
老实说我到现在都不敢去扩容.
....... [url=http://bbs.aliyun.com/job.php?action=topost&tid=240380&pid=647735][/url]
-------------------------
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。