I struggled to find the answer to resizing an existing Amazon Elastic Block Store Volume.
Here is how I resolved this
1. Created a snapshot of the existing volume (log into Amazons Console for this https://console.aws.amazon.com)
2. Create a new volume based on the snapshot
3. Attach this new volume to my Amazon Instance (after detaching the other volume)
4. SSH into my Amazon Instance
5. Enter the following, this checks the integrity of the disk 'e2fsck -f /dev/sdf'
6. Enter the following 'resize2fs /dev/sdf'
7. Mount the volume 'mount /dev/sdf /mnt/data-store'
Showing posts with label amazon. Show all posts
Showing posts with label amazon. Show all posts
Tuesday, March 10, 2009
Wednesday, December 19, 2007
Amazon S3 useful commands with S3Sync
If you are using Amazon's S3 service for Simple Storage (offsite backups) in conjunction with the S3Sync Project then there are some simple commands that may be of benefit to you
From the command line browse to the directory that hold the file s3cmd.rb
To list all available buckets type
To create a bucket
To list all files within a bucket
To list all files within a key
To drill down into folders in a bucket
To copy a directory from a bucket to your local computer
From the command line browse to the directory that hold the file s3cmd.rb
To list all available buckets type
./s3cmd.rb listbuckets
To create a bucket
./s3cmd.rb createbucket BucketName
To list all files within a bucket
./s3cmd.rb list BucketName
To list all files within a key
./s3cmd.rb list BucketName:Key
To drill down into folders in a bucket
./s3cmd.rb list BucketName:Key/folder1/folder2
To copy a directory from a bucket to your local computer
./s3sync.rb -r BucketName:Key/folder/subfolder /somedirectory
Wednesday, August 8, 2007
Guide : Ubuntu and Backing up to Amazon S3
I have been looking for a good method to back up to Amazon's S3 service. I have used the 'S3 Firefox Organizer' although this seems a bit cumbersome at times and does not give much feedback.
I have since installed s3sync
you need to have ruby installed as well as openssl-ruby, so using aptget I installed these
Extract s3sync somewhere on your computer and then create a file in this directory called s3config.yml and put your key and secret key that you have obtained from Amazon in this file, there is an example file in the directory to help out here.
You will need to create a bucket (somewhere to save your files) on your AmazonS3 Service so browse to the newly extracted folder and run the commands below to list the buckets in your account and also create a bucket
You can then backup to AmazonS3 service with a command such as
There are some other useful commands which can be obtained in the readme files.
I have since installed s3sync
you need to have ruby installed as well as openssl-ruby, so using aptget I installed these
sudo apt-get install ruby
sudo apt-get install libopenssl-ruby
Extract s3sync somewhere on your computer and then create a file in this directory called s3config.yml and put your key and secret key that you have obtained from Amazon in this file, there is an example file in the directory to help out here.
You will need to create a bucket (somewhere to save your files) on your AmazonS3 Service so browse to the newly extracted folder and run the commands below to list the buckets in your account and also create a bucket
s3cmd.rb listbuckets
s3cmd.rb createbucket BucketName
You can then backup to AmazonS3 service with a command such as
s3sync.rb -r directory bucketname:nameofbackup
There are some other useful commands which can be obtained in the readme files.
Subscribe to:
Comments (Atom)