展开EC2亚马逊实例磁盘空间

时间:2017-07-25 15:21:40

标签: amazon-web-services amazon-ec2 amazon

我尝试在亚马逊上安装pytorch,如下所示:

conda install pytorch torchvision cuda80 -c soumith

我收到以下错误:

Package plan for installation in environment /home/ubuntu/anaconda2/envs/crnn:

The following NEW packages will be INSTALLED:

    cuda80:      1.0-0             soumith
    pytorch:     0.1.12-py27_2cu80 soumith [cuda80]
    torchvision: 0.1.8-py27_2      soumith

Proceed ([y]/n)? y



CondaError: IOError(28, 'No space left on device')
CondaError: IOError(28, 'No space left on device')
CondaError: IOError(28, 'No space left on device'

当我运行以下命令时:

df -h

我得到以下内容:

Filesystem      Size  Used Avail Use% Mounted on
udev             30G     0   30G   0% /dev
tmpfs           6.0G  8.6M  6.0G   1% /run
/dev/xvda1      7.7G  7.4G  361M  96% /
tmpfs            30G     0   30G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            30G     0   30G   0% /sys/fs/cgroup
tmpfs           6.0G     0  6.0G   0% /run/user/1000

现在我添加了一个名为/ data的新分区,它有50个Go:

/data$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             30G     0   30G   0% /dev
tmpfs           6.0G  8.9M  6.0G   1% /run
/dev/xvda1      7.7G  6.3G  1.4G  82% /
tmpfs            30G     0   30G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            30G     0   30G   0% /sys/fs/cgroup
/dev/xvdf1       50G  3.9G   43G   9% /data
tmpfs           6.0G     0  6.0G   0% /run/user/1000

但是大多数安装文件系统如cuda都必须安装在/中 如何将50 G0可用空间从/data转移到/以便这样做 /dev/xvda1将有58个GO?

NAME    MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda    202:0    0   8G  0 disk 
`-xvda1 202:1    0   8G  0 part /
xvdf    202:80   0  50G  0 disk 
`-xvdf1 202:81   0  50G  0 part /data

非常感谢

0 个答案:

没有答案