Few days (a month) back I had faced a strange (amateur) problem in Linux with Amazon EBS volume. For some reason I had to increase the volume size say double the size of current volume attached to an instance.
As a normal (not an “advance” user of Linux) I did the following steps:
Dismounted the device (EBS Volume) by “umount /dev/sdf“.
Logged into AWS console and detached the attached volume from the instance.
Took a snapshot of that EBS volume.
Created another volume from above created snapshot with double the size of the current volume.
Attached the above newly created volume back to the instance.
SSH to the instance and mounted the volume (a handy – “mount /dev/sdf/mnt/ebs“).
Just curious (being a naive Linuxian), I tried to see the size of the volume by running “df -h”.
It shows the size of the volume as the old one.
I confirmed it in the AWS console the size of the new EBS volume is double the size of the original.
In my good old days with LINUX I struggle quite a bit to understand what is a port number & how it works, what is firewall & why the hell it is blocking, etc. You have to understand port number when you work with tomcat server (remember server.xml 🙂 – man it sucks), it works in 8080 but not in 8090 or you name it, it just doesn’t work at all :-).
I always want to share some of the quick-tip like the one below.
Recently when I was working with Amazon Cloud for one of our client I faced a problem when umount (dismount) a volume (EBS – Elastic Block Storage) (OR) detaching from an EC2 instance. I could not dismount the volume, whenever I try to dismount, it throws “umount: … device is busy“. I was like not sure what is going on, why the device is not dismounting from the machine ???.
Dismounting a particular device forcefully, especially a storage volume can cause a serious damage you will end-up losing some important data. I was not sure what should I do, on the other end, the PRESSURE, I have to dismount the volume and re-create another machine.
Today one of my colleague asked me to write about (a lot) a tip on Eclipseon linking appropriate editor to a particular file extension. My colleague told me he had tried to find this solution in my blog but he couldn’t – I feel sorry for that.
From now on, I will be posting quite a few of tips which I come across in my day to day life.
Today I am going to write a tip on Eclipse‘ – associating a file with any extension to any editor.