HOW TO MOUNT AN EBS VOLUME
cat /proc/partitions
mke2fs -F -j /dev/sdp
mkdir /[dir]
mount /dev/sdh /[dir]
WORKING WITH MDADM LINUX SOFTWARE RAID
http://www.thatsgeeky.com/2010/09/setting-up-a-raid-on-ec2/
http://hughperkins.com/techblog/2009/12/02/using-mdadm-software-raid-with-ec2-ebs-disks/
cat /etc/mdadm.conf # see config
cat /proc/mdstat # see status
mdadm --detail --scan >> /etc/mdadm.conf # generate new config line
ALT: mdadm --examine --scan [--config=mdadm.conf] >> mdadm.conf # generate new config line
mdadm --assemble --verbose /dev/md0 /dev/sdc1 /dev/sdd1 /dev/sda1 /dev/sdb1 # assemble an array with the listed volumes in order
mdadm --assemble --scan # Don't name the drives as mdadm will scan for the UUID and assemble from the ones that match the array UUID.
mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdh1 /dev/sdh2 # create a new array
BACKUPS
nohup cp -R /solr_data/ /BACKUP/[dir]/ &
ATTACHING AND DETACHING EC2 VOLUMES
http://alestic.com/2009/06/ec2-ebs-raid
echo solr0
ec2-detach-volume vol-f01b7a99
ec2-attach-volume -d /dev/sdf -i i-dc5c7cb1 vol-f01b7a99
Wednesday, January 25, 2012
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment