Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql AmazonEC2没有提供磁盘空间,但我的实例有空间_Postgresql_Amazon Web Services_Amazon Ec2_Ubuntu Server - Fatal编程技术网

Postgresql AmazonEC2没有提供磁盘空间,但我的实例有空间

Postgresql AmazonEC2没有提供磁盘空间,但我的实例有空间,postgresql,amazon-web-services,amazon-ec2,ubuntu-server,Postgresql,Amazon Web Services,Amazon Ec2,Ubuntu Server,所以我有一个实例,它应该有很多自由空间 我已经安装了Postgres,当我尝试导入转储时,它会告诉我磁盘已满。我做了一个df-h,看到实际上xvda1已经满了,但是xvdb呢 它有很多可用空间,我如何将其用于我的Postgres数据库 df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.9G 7.5G 1.1M 100% / udev 1.9G 8.0K 1.9G 1%

所以我有一个实例,它应该有很多自由空间

我已经安装了Postgres,当我尝试导入转储时,它会告诉我磁盘已满。我做了一个
df-h
,看到实际上
xvda1
已经满了,但是xvdb呢

它有很多可用空间,我如何将其用于我的Postgres数据库

df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      7.9G  7.5G  1.1M 100% /
udev            1.9G  8.0K  1.9G   1% /dev
tmpfs           376M  184K  375M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            1.9G     0  1.9G   0% /run/shm
/dev/xvdb       394G  199M  374G   1% /mnt

xvdb
很可能是卷(也称为临时卷,与卷不同),如果您重视数据,您几乎肯定不想使用它,除非您确切知道自己在做什么,并且准备随时进行时间点备份等:

短暂存储将在停止/启动循环中丢失can 通常情况下,你会离开,所以你肯定不想把你的任何东西放进去 持久的价值,即只能将临时数据放在那里 可轻松丢失或重建,如交换文件或 计算期间使用的临时数据。你当然可以去商店 例如,那里有巨大的索引,但必须准备好重建这些索引 无论出于何种原因(例如 重新启动,硬件故障…)

有关更多详细信息,请参见我对以下相关问题的回答:


您使用的实例大小是多少?xvdb是EBS卷吗?