問題緣由:
bash
[root@xm-server-50010 xm-bash]# df -hui
Filesystem Size Used Avail Use% Mounted onspa
/dev/xvde1 7.9G 1.7G 5.9G 22% /orm
tmpfs 1.9G 0 1.9G 0% /dev/shmserver
/dev/xvdj1 492G 205M 467G 1% /xm-workspace文檔
[root@xm-server-50010 xm-bash]# resize2fs /dev/xvdeget
resize2fs 1.41.12 (17-May-2010)it
resize2fs: Device or resource busy while trying to open /dev/xvdeio
Couldn't find valid filesystem superblock.table
解決辦法:
fdisk /dev/xvda (the disk name, not your partition) This enters into the fdisk utility.
u #Change the display to sectors
p #Print info
d #Delete the partition
n #New partition
p #Primary partition
1 #Partition number
2048 #First sector
Press Enter to accept the default
p #Print info
a #Toggle the bootable flag
1 #Select partition 1
w #Write table to disk and exit
reboot
[root@xm-server-50010 xm-workspace]# resize2fs /dev/xvde1
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/xvde1 is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 4
Performing an on-line resize of /dev/xvde1 to 13106944 (4k) blocks.
The filesystem on /dev/xvde1 is now 13106944 blocks long.
[root@xm-server-50010 xm-workspace]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvde1 50G 1.6G 46G 4% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/xvdj1 492G 205M 467G 1% /xm-workspace
相關文檔:
http://stackoverflow.com/questions/26770655/ec2-storage-attached-at-sda-is-dev-xvde1-cannot-resize