New Storage on AWS Server
In a free tire you can access only 30 GB of Amazon Elastic Block Storage, plus 2 million I/Os and 1 GB of snapshot storage*.
And if you want to take a snapshot, attach a storage which less than 1gb and take the snapshot of that partation alone.
1. Go to "Elastic Block Storage" and expand the menu
2. Click on "Volumes". Then you can get the current volume details.
3. Click on "Create Volume" tab to create a new volume, by filling the needed size and all
4. After creating a new volume will come up.
5. "Right Click" on the new volume and select option "Attach Volume". A new window will come,
It has three options Volume: / Instances: / Device:
Volume = Your current volume
Instances = To which instance you want to attach
Device = It will automatically detect the device
6. Go to console and run # fdisk -l
# fdisk -l
Disk /dev/xvde1: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/xvde1 doesn't contain a valid partition table
Disk /dev/xvdl: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/xvdl doesn't contain a valid partition table
Here we have a new disk called /dev/xvdl
Now partation that disk using # fdisk for attaching
7. # fdisk /dev/xvdl
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel. Building a new DOS disklabel with disk identifier 0x761bd39f.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): n
Command action
e extended
p primary partition (1-4)
Partition number (1-4): 1
First cylinder (1-130, default 1): press enter
Last cylinder, +cylinders or +size{K,M,G} (1-130, default 130): +500M
Command (m for help): p ------ for listing partitions
Command (m for help): w ------ or writing the partition in the partition table
# partprobe
# mkdir /STORAGE
# mkfs.ext3 /dev/xvdl1
# mount /dev/xvdl1 /STORAGE/
# mount -a
# vim /etc/fstab
/dev/xvdl1 /STORAGE ext3 defaults 0 0
# cat /etc/mtab
/dev/xvdl1 /STORAGE ext3 rw 0 0
No comments:
Post a Comment