我正在阅读本教程,在AWS上设置PostgreSQL: http : //media.amazonwebservices.com/AWS_RDBMS_PostgreSQL.pdf
这是前几个步骤:
1. Launch an EC2 instance using the AMI of your choice. (For this example, use the Amazon Linux 64-bit AMI.) 2. Create an Amazon EBS volume to use for your PostgreSQL storage, and attach it to the instance. **Note: You need the operating system device name (/dev/xvdc for instance) to complete step 6.** 3. Connect to the instance by SSH. 4. Make a file system on your Amazon EBS volume: $ yum install xfsprogs **$ sudo mkfs -t xfs /dev/xvdc** 5. Make a directory to serve as a mount point: $ sudo mkdir -p /data $ sudo chown `id -u` /data 6. Edit your fstab to mount the volume on startup: $ sudo –I $ echo '/dev/xvdc /data auto noatime,noexec,nodiratime 0 0' >> /etc/fstab
在步骤4中,我认为这意味着我应该格式化新附加的EBS卷,而不是操作系统卷。 但是自从在步骤2的说明中,他们把操作系统称为“xvdc”,我感到困惑。
我对AWS或Linux没有经验,这就是为什么我对自己的理解还不够自信,想要validation它。
/dev/xvdc 是新设备的名称。 “操作系统设备名称”表示这是操作系统引用该设备的名称。 我认为你把“操作系统设备”与“根卷”混为一谈。 您的根卷可能是/dev/xvda1 。
因此,你应该遵循指定的指导。