If you need additional storage space for your instance in Amazon Lightsail, you can create and attach block storage disks to it. In this blog, we will show you how you can create a new block storage disk and attach it to your instance using AWS lightsail console.
What is disk storage in Lightsail?
Lightsail offers SSD for block storage. It is a storage architecture that manages data as “blocks” and each block or disk works as an individual hard disk that can be attached to a server.
It offers a reasonable price, low latency, and good performance for applications or software that frequently access stored data. You can select up to 80 GB system disk for your Windows or Linux/Unix-based instance
Disk Quotas available:
- 20,000 GB per Region.
- 8 GB per disk minimum and 16 TB per disk maximum.
- Up to 15 disks can be attached with each instance, and 1 boot volume disk
If you want sustained IOPS performance or high throughput per disk then go with Amazon EC2 instead of Lighsail. Also if you are using large databases like MongoDB, Cassandra, etc.
Create new block storage and attach it to an instance
- Sign in to your AWS Console and open Lightsail.
- Click on the Storage tab and then choose Create Disk.
- Now choose Region and Availability Zone where your instance is located. Then choose disk size.
- Enter the name of the disk.
- Add tags for your disk and then click on Create Disk.
- Choose your instance from the given list and then click on Attach to attach the new disk with your instance.
Connect to the instance to bring the Block storage disk online
We will connect to our windows instance using RDP and then use the Disk Management option to bring the storage online.
- On the Lightsail homepage, choose the instance you attached the disk with. Then under the connect tab click on Connect using RDP.
- After connecting, open Computer Management in your instance.
- In the Computer Management window, choose Disk Management from the left side.
- At the bottom, you will see a disk labeled Unknown or offline. This is the disk you attached with your instance earlier.
- Select that disk and from the Action menu, click on All Tasks, and then click on Online.
Initializing the Block Storage Disk
- Select the disk which is labeled as Unknown.
- After selecting the disk from the Action menu, Choose All tasks and then click on Initialize Disk.
- Choose the Desired Partition Style for your Disk and then click on ok.
Now you will see the disk labeled as Online. It is now attached with your Instance and working online.