Technology Archive

Extending LVM for LXC

Posted May 1, 2013 By Landis V

I finally got back to experimenting with LXC recently.  There have either been some improvements, or I’ve given it sufficient time to sink in, because it’s pretty much a cinch now (at least as long as you’re not trying to bridge the network, but that’s another story).

I’ve managed to set up a fairly lightweight VirtualBox host running Ubuntu with an Ubuntu container for use as a monitoring server.  Unfortunately my planning was a little shortsighted when I initially set the system up, and I left myself short on space.  With the help of the following sites, I was able to extend my logical volume using the LVM tools and (hopefully, I haven’t checked yet!) clear an ugly splat on my monitoring display.

http://www.howtogeek.com/howto/40702/how-to-manage-and-use-lvm-logical-volume-management-in-ubuntu/
http://sujithemmanuel.blogspot.com/2007/04/how-to-add-disk-to-lvm.html
http://www.turnkeylinux.org/blog/extending-lvm

With the help of the man page for lvextend I was able to determine the appropriate command to resize the logical volume to the total free space in the volume group with ‘lvextend -l+100%FREE /dev/vol-group-name/root’.

All together, here’s the summary of what I did.
Added a VDI disk in VirtualBox
fdisk /dev/sdb
Partitioned as needed, per first link.
pvcreate /dev/sdb1
vgextend vol-group-name /dev/sdb1
lvextend -l+100%FREE /dev/vol-group-name/root
resize2fs /dev/vol-group-name/root
Confirmed that the added space was apparent to the kernel.
df -h
Finally, I restarted my monitoring container.
lxc-start -d -n monitor-01
And confirmed that the free space was also apparent within the container.
df -h

After checking the basics, I confirmed that everything looks clean and clear in the monitoring system. Now I’m on to the task of figuring out how best to monitor some new equipment.

Be the first to comment

http://www.linuxjournal.com/content/advanced-firewall-configurations-ipset

Be the first to comment

PVR/Live TV in XBMC

Posted April 22, 2013 By Landis V

As I use XBMC for playback of series’ I’ve recorded using Windows Media Center, and am not super fond of Media Center (it was just highly convenient), I found this to be something probably worth pursuing, or at least investigating in more detail, in the near future.

Lifehacker – Record and Watch Live TV On Your XBMC
http://lifehacker.com/5981757/how-to-watch-and-record-live-tv-on-your-xbmc-media-center

The XBMC PVR and Live TV Setup Guide
http://wiki.xbmc.org/index.php?title=PVR

Be the first to comment

TP-Link TL-WR703N – OpenWrt Wiki

Posted April 10, 2013 By Landis V

http://wiki.openwrt.org/toh/tp-link/tl-wr703n

Neat little system for possible embedded controller.

Be the first to comment

T1/ESF Alarm Conditions

Posted March 26, 2013 By Landis V

http://www.whitsnet.com/Tutorials/T1/

It always seems to be tough to find the T1 alarm documentation I’m looking for when I need it.  This page provides a nice little graphic that shows what alarms are present and in which direction the alarm indications are being sent (RAI/yellow alarm and AIS/blue alarm).

Be the first to comment

WikiStart – Tiny Tiny RSS

Posted March 26, 2013 By Landis V

http://tt-rss.org/redmine/projects/tt-rss/wiki

I was reminded this morning, while reading some of James Altucher‘s very interesting posts and wanting to add to my subscription list, that I’m eventually going to need to do something to replace Google Reader as my feed reader.  This might be an interesting way to do so.  The Android client is a plus.  I’ll have to add it to my project list.

Edit 6/18/13: Also ran across https://www.commafeed.com/welcome today, which does not look bad, but I still have some inclination towards tt-rss at this time.

Be the first to comment

http://www.computerworld.com/s/article/9237267/Back_up_your_website_10_WordPress_plugins_that_keep_your_data_safe

Better automation is always good.

Be the first to comment