Others > Others 1 second ago

If Multiple Volumes attached to single EC2 Instance, how can we which volume is currently in user

If Multiple Volumes attached to single EC2 Instance, how can we which volume is currently in user

394 views . 1 answers . 0 likes . 0 shares Gaurav Singh 1 answers

Say, If I have created One Linux EC2 instance and attached two volumes with it (Say Vol-1 and Vol-2). Now after login to the machine, If I create a file- File-1, how can I check in which Volume it got created.

As it may happen in future, I want to detach the unused volume, in that case it would required for me to check the volume in which we have some data.

profilepic.png

Answers (1)


profilepic.png
PR Reddy Best Answer 2 years ago

This is solved using the "File Systems" concept in Linux:

  1. Volumes that are attached to the EC2 instances are RAW volumes. That means can not be used to store the regular files directly into the RAW volumes.
  2. RAW volumes must be formatted to create the File System Structure and then mount it on to the Linux Directory
  3. Any files that are created under the Directory mounted on the volume will be stored in that volume only.
  4. If any volume has to be detached then need to compare the volume name with AWS volume name mapping and identify the volume ID and then Detach/Delete the volumes.
394 views . 0 shares