Skip to main content

Posts

Showing posts from January, 2019

Setting up S3cmd client to manage files in Digital Ocean.

First we need to generate the Token , KEY ID and Secret key from the Digital ocean console > API > Generate Token > Generate Key. Installation In Centos ###################### cd /etc/yum.repos.d wget http://s3tools.org/repo/RHEL_6/s3tools.repo yum install s3cmd Configuring the S3cmd ##################### s3cmd --configure This will ask for Key Id and Secret Key Region use the default one. No encripytion is necessary, just enter. Say yes for ssl https and finally press enter of HTTP Proxy Now the confiurations will be saved in the ~/.s3cfg file. Open it and add the below entries: access_token = host_base = <region>.digitaloceanspaces.com host_bucket = %(bucket)s.<region> .digitaloceanspaces.com now save the file and exit. Putting a file to Digitial Ocean bucket. ######################################## s3cmd put /home/jino/filetest.txt s3:// <bucket> Reference. ######### https://www.digitalocean.com/docs/api/example-

Extending Your EBS Volume in Linux AWS EC2

First you have to select the EBS volume >> Actions >> Modify Volume . Now select the total volume that you want to increase to in the size section. Now click on the Modify button. Now finally do the below steps after login to the server for extending the additionally allocated space. # df -h  >> This will show you the Filesystem like '/dev/xvda1'. Expand the modified partition using  growpart  (note that you need to add a space between the device name and the partition number): # sudo  growpart /dev/xvda 1  # sudo growpart /dev/nvme0n1 1  >> for /dev/nvme0n1p1 A look at the  lsblk  output confirms that the partition  /dev/xvda1  now fills the available space on the volume: #  root@logserver:~# lsblk NAME    MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda    202:0    0  40G  0 disk  └─xvda1 202:1    0  40G  0 part / To extend a Linux file system # resize2fs /dev/xvda1  # resize2fs /dev/nvme0n1p1 https://docs.amazonaws.cn/en_us/