Growing an LVM + EXT3 Partition
I do this often enough, so I might as well make my life easier and document it! The following example grows a partition by 500MB:
lvextend -L +500M /dev/mapper/VolGroup00-LogVol0 resize2fs /dev/VolGroup00/LogVol03
I do this often enough, so I might as well make my life easier and document it! The following example grows a partition by 500MB:
lvextend -L +500M /dev/mapper/VolGroup00-LogVol0 resize2fs /dev/VolGroup00/LogVol03
I don’t know why Ubuntu server doesn’t have this enabled by default, but you should add the following to /etc/sysctrl.conf:
kernel.panic=60
This will automatically reboot your server 60 seconds after a kernel panic.
I’m probably the last KDE user to find out about this, but if you have access to an SSH server somewhere, open up Konqueror and type this in the address bar:
fish://your-server.com
It’s just like managing files on a remote Samba share, only it’s done completely over SSH!
Unfortunately, fish:// only works from within KDE applications, but that’s where SSHFS (Secure SHell FileSystem) comes in. With this tool, you can easily mount any remote filesystem over SSH for access by all of your applications. Goodbye FTP!
Some people may be interested in WinSCP, which provides similar functionality on Windows.
In Linux, it’s easy to log the output of a command to a timestamped log file:
echo this is easy >> $(date +%s).log
Here’s what I had to do to accomplish the same thing in Windows:
for /f "tokens=1,2,3,4 delims=/- " %%a in ("%date%") do set ts=%%d%%b%%c echo this sucks >> %ts%.log
I just got back from LinuxWorld in Boston, and I have to say that it wasn’t nearly as geeky as I expected it to be. Judging from pictures I’ve seen from previous LinuxWorlds, I expected it to be like a circus, but I think I saw more business guys in suits than overweight guys with beards. I guess it’s a testament to how mainstream Linux has become over the last few years.
Observations: