Attatch a new EBS volume with running instance to make Backup
Posted By : Arvind Das | 19-Jun-2012
In this article , I'm explaining how to extend your ebs machine volume. Let the EBS volume created is: /dev/sdf and you are creating one volume.
Now take back up of /opt
#mkdir /opt_backup #cp /opt /opt_backup>
- Login to your instance using your terminal.
- type fdisk /dev/sdf
- At "Command" type n
- At "Primary or Extended" type p
- At Number of volumes type 1
- Press "Return" two times to accept the default cylinder values
- Press "w" to write the partition table and exit
- Type "mkfs.ext3 /dev/sdf" to format an ext3 file system
- Type mount /dev/sdf /opt to mount the drive
- edit /etc/fstab to add the drive mount to automount at boot.
vi /etc/fstab
add this line:
/dev/sdf /opt ext3 defaults 0 0
#cp /opt_backup /opt
More From Oodles
Ready to innovate? Let's get in touch
Request for Proposal
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Arvind Das
Technical Product Manager experienced in developing Real Time Planning Solutions, Video CMS with experience in Product Management and technical expertise in Reactive applications , Micro-services . Spending most of his time in planning , new solutions.