Entries Tagged as ''

A joke for the progressive set

“How many Obama supporters does it take to change a lightbulb?”

“RACIST!”

Commies. Fuck them all.

Zombie goes to Denver to see the commies in full bloom.

Note the difference between the commie protesters and the counter-protest.  The age gap leads to one conclusion:

These young skulls full of mush are protesting for communism because they think it means that they get to protest all the time and never have to actually GET A FUCKING JOB.

I mean, the idea of never bathing and wearing a mask all the time does have its allure, but that kinda wears off when you realize that you actually have to work if you want to be able to continue to wear your Birkenstocks to Starbucks.

Commies?  More like filthy, filthy hippies if you ask me.

(ht: LGF)

The super-quick way to RAID a non-boot linux drive

I’ve found several how-tos on the net for converting a single drive to a raid setup, but they all involved the boot partition, and changing the boot loader, and so on.  I’ve got a hardware RAID setup already for the actual OS, but I wanted a cheap raid for dumping low-usage files (like MP3s and backups) to.  In retrospect, this is kinda obvious, but here it is anyhow.

I already had a 500 GB SATA drive hung off the mainboard (as /dev/sda – important later).  I set it up as a single partition, and used LVM to create four logical volumes (which is completely unimportant, I just wanted to type that.)

So, there’s a way to use LVM to do RAID, but since there was no way to specify which drive the mirror belonged on, I didn’t do it.  I don’t trust it to be sensible about where it puts the mirror, as I have encountered systems where two parts of a RAID volume in LVM were on the same physical drive – which then failed.  It was on HP-UX, which supposedly has the most robust LVM around, and it still didn’t prevent feet from being shot.

Anyhow, these instructions are a modified and mixed version of other stuff you’ll find on the net.  It uses Linux MD for the RAID, and doesn’t require any mucking about in /etc/fstab or the /boot directory.

This assumes that you already have an LVM setup running on your drive, it takes up the whole drive, and you are mirroring to another drive that is the same size.  Yes, it ends up copying the data twice, and there’s some risk of loss during the first copy if you have a hardware failure.  So, if you don’t have a backup of your data and you lose it, don’t come crying to me.  It also assumes that you’ve already got the second drive physically installed but not partitioned.

Without further ado – the method.

Assumptions:  The existing drive is on /dev/sda, the volume group is called VolGroup01, the new drive is recognized as /dev/sdb.

  1. Unmount all the filesystems in the volume group.  If you have them shared with NFS or Samba, you will need to stop those services.
  2. Partition the new drive with
    fdisk /dev/sdb

    Set the partition type to 0xfd (Linux MD Auto).

  3. Using mdadm, create the MD device:
    mdadm -C /dev/md0 -l 1 -n 2 missing /dev/sdb1
  4. Create a physical volume for LVM on the MD device:
    pvcreate /dev/md0
  5. Extend the volume group to the new device:
    vgextend VolGroup01 /dev/md0
  6. Move the physical extents to the new drive:
    pvmove -v /dev/sda1 /dev/md0
  7. Wait a long damn while.
  8. Verify that the extents have moved:
    pvdisplay
  9. If the Free PE and Total PE numbers do not match on /dev/sda1, something has gone wrong.  I don’t know how to help you at that point, you’re on your own.
  10. Remove the old drive from the volume group:
    vgreduce VolGroup01 /dev/sda
  11. Change the type of the partition on /dev/sda1 to 0xfd:
    fdisk /dev/sda
  12. Initiate the repair of the RAID on md0 by adding the old drive into the mirror as a spare:
    mdadm /dev/md0 -a /dev/sda1
  13. You can re-mount the filesystems at this time (and restart NFS and Samba if you stopped them), although access will be slow while rebuilding.  You can check the status with
    mdadm --detail /dev/md0
  14. When the State from step 13 shows”clean”, you’re now running with full RAID.  Check the man pages for mdadm to see how to get it to inform you if something goes horribly wrong.

It’s Biden? It’s Over.

Ok, folks.  Barring something insanely stupid on McCain’s part (like picking Lieberman), it’s over, and Obama’s toast.

Joe Biden?  What the fuck was the Messiah of Hope and Change thinking?

I told you he was an idiot.

Hints – how not to take them

The Republican Party has yet again sent me a survey, which they insist REQUIRES my immedate attention.

So instead of doing what I normally do with documents marked “DO NOT DESTROY” (which is to immediately feed them to my shredder), I read the thing.  And, as always, there are the pages of silly questions where the answers OUGHT to be obvious to a small-government conservative.  And the “Support Reply Form” – which has options for “YES!  I’ll take part in your stupid survey, and here, have some cash too”, “No, I’m not taking part in your survey, but here’s a gob of loot anyhow”, and “I’m not taking part in the survey, and I don’t want to donate, but here’s 11 bucks anyhow to process the survey”

I went with “other” – which is to leave the whole thing blank save for the “additional comments” section which now reads:

Until the Republican Party decides to embrace the principle of smaller government, please refrain from sending me further surveys or requests for donations.  None shall be forthcoming.

Let’s see if they do.  I sincerely doubt it.  Dense as neutronium.

Propaganda Failure

Achewood.  Thank James Lileks for turning me on to this madness.  This particular strip just kinda tweaked something in my memory.  When I was a kid, I’d find these stupid little things “dropped” in innocent little ways – on top of the book return bin at the library, on the ground next to a store.  I didn’t know what they were, or what their purpose was, but I’d read them and laugh and laugh at just how insanely silly they were.

Of course, I now know that they are the work of Jack Chick, and their purpose is to propagandize for “The Lord”.

And upon further reflection, I realize that I can thank Jack Chick for turning me away from religion for good.

How do people put up with dogs?

Case in point – most dogs will lie down wherever the mood strikes.  Not mine.  At least, not for long.  No, for long term lie-downs, it’s one of the dog beds.

Unless, of course, that dog bed is not in precisely the location and condition she wants it in.  Then I get yelled at.

The blanket (which normally goes on the couch) was on the bed.  She’ll lie on the blanket, or the bed, but apparently not both.  Move the blanket, and we get this:

dogsleep

dogsleep

Dessert of champions

A glass of Maker’s Mark and a piece of Ghirardelli.

Chocolate likes good whisky.

Juan Williams Swings, Misses.

Read this, then come back to me.

Mr. Williams expends a great number of pixels on theorizing about the impact of race on the coming presidential election.  He seems to believe that there’s some grand undercurrent of racial animus in the white electorate.

Then he slips this little sentence in, completely whiffing his intended point:

In 2004, John Kerry had a 46% favorable rating among white voters, barely better than Barack Obama’s. But Mr. Kerry lost. Mr. Obama needs to do better with whites. But the white voters’ view of him is still clearly unsettled.

This means one of two things to me.  Either John Kerry was black, or the majority of whites aren’t keen on Obama for the same reason they weren’t keen on Kerry – his liberalism.

Occam’s razor being what it is, I’m siding with the latter.

Because just like me, most white Americans have no problem with a black man in the oval office.  Just not this black man.