How to Attach an EBS Volume with an AWS EC2 Windows Instance
The Amazon Elastic Block Store (Amazon EBS) offers persistent storage for the Amazon EC2 instances. Amazon EBS volumes provide a scalable storage service, which persists independently of the instance life. A user can attach an EBS volume to an EC2 instance. It is mandatory that both the volume as well as the instance be in the same availability zone. The user can assign a maximum of 16 EBS volumes to an instance. AWS allows the user to create the EBS volume.
The present guide demonstrates how attach an EBS volume to a Windows instance.
A user has to specify the device name while attaching an EBS volume to an EC2 instance. When a volume is attached to a Windows instance, it is recommended to format the device and mount it as a drive.
1. Go to the AWS console and select the EC2 service. From the EC2 dashboard, click on the “Running Instances” or the “Instance” link.
2. Launch a Windows instance.
3. Go to Volumes and check the currently attached volume information. Create an additional volume in the same zone where the instance is running.
4. Select the volume to be attached. From the “Actions” menu, select “Attach Volume”.
5. AWS will ask for the EC2 instance, where the EBS volume will be attached. The device name should also be provided. Click on “Yes, Attach”.
6. The volume will be attached to the instance and the instance information will be displayed in the volume attachment information.
7. When the user checks the instance information, as explained in step#2, the two devices will be displayed. The newly attached device is shown as xvdf.
8. When the user clicks on the xvdf device, the device information will be displayed.
9. The user is required to format the attached device before using it.
The Amazon Elastic Block Store (Amazon EBS) offers persistent storage for the Amazon EC2 instances. We saw that an EBS volume can be attached to AWS Windows instance for vertical scalability.
The present guide demonstrates how to format an EBS volume attached to a Windows instance.
1. Create an EBS volume and attach it to Windows Instance.
2. Login to the Windows instance. Currently only one disk drive (C Drive) is available in the instance. The new device (volume), which is mounted, is still not available in the instance.
3. Go to the Control Panel -> Administrative Tools. Click on Computer Management.
4. Click “Disk Storage”. If Windows asks to initialize the disk, click on the “OK” button.
5. The new attached volume will be displayed as “Disk1”. It is still unallocated.
6. Right click on “Disk 1” and select “New Simple Volume”.
7. Windows will show the New Simple Volume Wizard. The user can select the default options or the options, such as the drive, and size as per requirement.
8. On completion of the above mentioned steps, the New Simple Volume Wizard will show the summary of all the steps for review. Click on the “Finish” button.
9. On completion of the above mentioned steps, the volume will be formatted.
10. The new volume will be available after formatting as “D Drive”.
11. The new device will now be available in the computer.
Keywords: Amazon Web Services, AWS, Amazon EBS, EBS Volume, AWS EC2, EC2 instances, Cloud Computing, AWS Console, Windows Instance
You must be logged in to post a comment.