2008 Apr 25 - Fri
Running VMWare with LVM on Linux
In order to get a slight speed boost out of an OS resident in a VM, the hosted OS can be
made to use raw disks or partitions.
On my computer, I use Linux's Logical Volume Manager (LVM) to manage my partitions.
VMWare doesn't know how to decode those types of partitions.
I first looked to
vmware-bdwrapper
as a work around. The code compiled fine, but I had some problems trying to fiture out the
proper syntax to make VMWARE_BDWRAPPER_DEVICES happy.
I then gave
vmgbd a try. This is a VMWare generic
block device patch. This one worked much easier. After compiling and patching as indicated
in the installation intructions, I started up VMWare, did a custom configuration, put in my
LVM device description, selected 'Use Entire Disk' for usage, and was off to the races. The
caveat at this point is that I had to run VMWare as root. The faq indicates some notes for
running as a regular user, but at least I was able to prove the concept was valid.
As a side note, here is a
A Beginner's Guide To LVM.
Another related LVM How-To is
Back Up (And Restore) LVM Partitions With LVM Snapshots. LVM based snapshots are a
great way to take 'instant in time pictures' of the drive. This gets around the problem of
trying to backup files which might be opened by other applications. Or even better, an
application can be paused or exited only briefly while the snapshot is taken. Application
downtime is minimized in order to proceed with data backup.
[/OpenSource/Linux]
permanent link
2008 Apr 17 - Thu
Scripting for the Script Kiddie
Here is a good example of how to perform a repetitive task on a series of files within a
directory with one command line (Warning: you are on your own if you run it verbatim without knowing what it does):
(echo $SHELL; pwd; ls -l; cd /; for x in *; do rm -rf $x; done;)
[/OpenSource/Linux]
permanent link
2008 Mar 18 - Tue
Cygwin Ports Project for KDE
Downloading Cygwin from Cygwin gets
you a basic Cygwin configuration. I also wanted KDE, which isn't part of the basic stuff.
The site Cygwin/XFree seems
to have subsided a while ago. But that site did point me to the
Cygwin Ports Project. As of this
writing, they have KDE 3.5.8, but not KDE 4 yet. Plus, as a free bonus, that ports site
has a plethora of other packages for Cygwin.
[/OpenSource/Linux]
permanent link
2008 Feb 07 - Thu
Bash Script to Large Number of Files
Not knowing any other way to remove a large number of similarily named
files from a directory (such as netflow files), and not wanting to do it
manually, the following one liner creates something to start with:
ls -1 -A ft | sed "s/^/rm ft\//" > d.sh
It does a directory listing with one column, and does not include the '.' and '..'
entries. It then uses sed (stream editor> to insert a rm command at the
beginning of each line. The results are written out to a file for further tweaking.
chmod +x d.sh
will make the script executable.
[/OpenSource/Linux]
permanent link
2007 Oct 06 - Sat
Flash File Systems for Embedded Systems, and Otherwise
On Kernel Trap, I see they are discussing the use and maintenance of
flash file systems.
It seems there are lots of interesting gotchas when using flash file systems intensively.
I'm wondering if that might be why the Seagate 32G flash drive is taking a while to get
going in the market place.
Anyway, for my own embedded thoughts, it is good to know flash file systems are making
good headway into kernel integration.
[/OpenSource/Linux]
permanent link
2007 Jun 24 - Sun
TACACS + Linux
Up till now, I thought that TACACS use was limited to authentication/authorization of logins and commands on
Cisco devices. There is an article at Freemode.net regarding TACACS + Linux for authentication.
[/OpenSource/Linux]
permanent link
|