2016/05/02

Predictions

For all that follows, the precondition is that Ted Cruz was eliminated in either the primary or general election process.

I predict:
The internet, within the US either becomes very cost prohibitive or quits entirely.
Health care providers, already gut-punched by Barry decide it isn't worth it anymore and give up... with members possibly joining militias that actually feed and support them and their families.
Workers that are fired, with or without cause (most, without), decide that working just isn't productive, and they give up on looking for employment since their work (or their employer) feeds government... which destroyed their last job.

Distilled:  When evil takes over things, and it has been for some time, people that are capable of doing things surrender and stop doing things.  There's no point, and when a thing is done, government wants its pound of flesh for it having been done. There is an exception for friends and maybe friends of friends.  Those rare exceptions tend to be done with zeal.

democrat/miserable-person

Have I ever mentioned that the song "My Friend of Misery"  (circa 1991) by Metallica really does seem to describe the democrat condition?  (yes, it is an illness and a condition)
Followers of the Clintons... followers of Barry... All some special form of stupid.
Followers of Sanders seem to be some special form of special (which is to say stupid).  They're gleeful.  They're happy.  They seem to have no idea what kind of creeping doom they've invited into their bed.

What's really sad is that even though I'm not even 40 years old, I'm really getting to a point where I no longer care.  As Forest Gump said (and rightfully so), "Stupid is as stupid does."

If you think I'm talking about you... I probably am.  You have two choices: Realize it and grab a clue, or just keep being an idiot.  I no longer care.

2016/02/14

Crushing cans

In general, people don't bother to crush cans.  Meh. I understand it.  They're (generally) either too lazy, don't care, or aren't sure how or why to crush a can.

As to the "why", a crushed can takes up less space than a non-crushed can.  This means that more crushed cans can be stored in a space than non-crushed cans.

As to "how", there are several methods.  One of the easiest and least thought-required is to equip oneself with a boot or very sturdy shoe and squash the can.  In an apartment building, this can be problematic.  It can annoy neighbors, especially if done at "odd hours".

There is a work-around for this.  If a can is taken in hand and pinched, not hard, but just enough in the center, and then rotated 90 degrees and pinched again halfway between the first pinch and the top and bottom, those creases make it easy to take the can in-hand and press the top and bottom so that the can folds in on itself.  This type of crushing is not hard, in the least bit.  It also tends to not be noticed by neighbors, which is a positive thing in an apartment block.

2016/01/27

Freedom!

Let me go right out on the limb and remain there by saying I love freedom.

There are a very small number of things that I would put forth as valid reasons to limit freedom.
  • You may not murder.  (self defense or defense of others is justifiable).
  • You may not rape.  (Being seduced by a child that does arguably know what they're doing does not count.  It may be stupid on the adult's part, but it should not be criminal.)
  • You may not use coercion on other people.  (Employees should not be exploited, but employees should be free to leave at any point, with or without reason.  Conversely, employers should be free to dismiss employees at their discretion.)
That's pretty much it.   Any law that is above or beyond the above list is probably misguided at best and evil/liberal more likely.

So, I like freedom.  I love freedom.  I'm out on that limb, and I'll remain there, using claws to attack those that think freedom is an old or useless fad.
Yes!  Some stupid people will do some very stupid things with the freedom they've been granted.




If you're a democrat, I probably hate you, not because of who you are, but because of what you represent.  You're a very small dictator, and probably not a loved one.
If you're a "progressive", see "democrat" above.  I don't have time to elaborate.  If any of the above seems "less controlled" than you like, you're likely a dictator that just didn't realize it.  Fix your head, and you may be salvageable.  Elsewise, expect me to hate your anti-freedom-ness.
Republicans [hangs head] start to weary me.  Freedom used to be the rule.  Some still follow this, but too many have turned dictatorial.

There I am.  There I'll stay.  I love freedom.  If you think otherwise, I probably want to smack you until you finally get it.  (but that would probably constitute assault under current laws, so I restrain myself)

2016/01/25

EU (ew?) cookie policy

If you have the misfortune to live in a place controlled by a european legislature, this is my official notice that I don't care any tiny bit about the stupid legislation that declares that people must disclose a site's cookie policy.

What's worse I feel sorry for EVERYBODY that has to deal with the the results of this in the form of fairly intrusive boxes, dialogs, and other crap that demand that a person read and accept that a site is using cookies to continue using said site.  If a user is too uninformed to know what a cookie is or that sites may be doing bad things with them, too friggin' bad.  No action by any moronic legislature is going to stop bad people from using people's ignorance against them.

To clarify my position, I am not personally using cookies on this blog to do anything.  Since it's hosted on blogger (Google essentially), they may be using cookies to disambiguate visitors from each other, or whatever.  I don't care, and you probably don't either.  Further, I think that you and your other continent-men should start putting in power some legislators that will reverse idiotic laws like this.  If you do care, and you think the legislation was a good idea, I welcome and invite you to go wander off and read something else, because you're some horrible, stinking form of unsalvageable.

That's my cookie policy.  I'm not tracking you.  Google may be.  Meh.  I don't care.  If you care, you have the option to leave.  Use it.  Take your governments with you.

2015/12/17

Fixing the FreeBSD ashift (4k) problem

Originally sourced and reformatted from Fixing the ZFS ashift problem on FreeBSD

The blog appears long-time unmaintained and looks like crap where it was previously very readable, I doubt the author will mind that another usable copy with better formatting floating around.

As you’re probably aware (since you’re reading this), some of the new hard drives with “Advanced Format” lie about their sector size and thus the partitioning and/or file systems end up unaligned with the disk and performance suffers. Boo, Western Digital. You guys are worse than Hitler. But, since the WD20EARS was cheap and I didn’t think anyone would design something so stupid, I bought it.
Of course, ZFS is smart enough to use the larger sector size through the “ashift” setting, but only if it actually knows the sector size of the drive. This option is set at pool (or rather VDEV) creation and can’t be changed.
The easy way around this is to use gnop to prevent the drive from lying.

# zpool create tank raidz ada0 ada1 ada2
# zdb | grep ashift
       ashift: 9

Oe noes! 2^9 is 512, the wrong sector size. Let’s try that again.
 
# zpool destroy tank
# gnop create -S 4096 ada0
# zpool create tank raidz ada0.nop ada1 ada2
# zdb | grep ashift
       ashift: 12

2^12 is 4096, as it should be. Note that you should only need to tag one of the drives.  zpool is clever enough to use the largest size of them all. Also note that you need to do this every time you add a new VDEV, otherwise you’ll have varying ashift values within your pool. Only problem now is that the drive list is a bit ugly, but that’s easily fixed.

# zpool status
pool: tank
 state: ONLINE
 scan: none requested
config:
        NAME           STATE     READ WRITE CKSUM
        tank           ONLINE       0     0     0
          raidz1-0     ONLINE       0     0     0
            ada0.nop   ONLINE       0     0     0
            ada1       ONLINE       0     0     0
            ada2       ONLINE       0     0     0
# zpool export tank
# gnop destroy ada0.nop
# zpool import tank
# zpool status
  pool: tank
 state: ONLINE
 scan: none requested
config:
        NAME        STATE     READ WRITE CKSUM
        tank        ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
             ada0   ONLINE       0     0     0
             ada1   ONLINE       0     0     0
             ada2   ONLINE       0     0     0

There we go. Destroying the gnop node just removes the sector size override, the data is safe and sound. You’ve now got ashift set right without fiddling with patches and such.

Creation Example

  tanker: ~ # bash
  [root@tanker ~]# gnop create -S 4096 ada0
  [root@tanker ~]# gnop create -S 4096 ada1
  [root@tanker ~]# zpool create gozer mirror ada0.nop ada1.nop
  [root@tanker ~]# zpool status -v
    pool: gozer
   state: ONLINE
    scan: none requested
  config:
  
   NAME          STATE     READ WRITE CKSUM
   gozer         ONLINE       0     0     0
     mirror-0    ONLINE       0     0     0
       ada0.nop  ONLINE       0     0     0
       ada1.nop  ONLINE       0     0     0
  
  errors: No known data errors
  [root@tanker ~]# zpool export gozer
  [root@tanker ~]# gnop destroy ada0.nop
  [root@tanker ~]# gnop destroy ada1.nop
  [root@tanker ~]# zpool import gozer
  [root@tanker ~]# zpool status -v
    pool: gozer
   state: ONLINE
    scan: none requested
  config:
  
   NAME        STATE     READ WRITE CKSUM
   gozer       ONLINE       0     0     0
     mirror-0  ONLINE       0     0     0
       ada0    ONLINE       0     0     0
       ada1    ONLINE       0     0     0
  
  errors: No known data errors
  

2015/11/12

IMEI Check Code

This is mostly a reminder to myself:

(for most phones) To check a phone for its IMEI number(s), from the phone's dialer, type *#06#.

2015/10/14

Leadership...

When the Russian leadership makes the american (uncapitalized intentionally) leadership look like fools, there's really something to be said.  I'm not sure what that thing is that should be said, but it cannot be good.

2015/07/02

Woefully lacking predators

Once upon a time, a friend of mine, and I came to the realization that one of the reasons the species had gotten lazy, sloppy, stupid, and a number of other things was because we lacked something resembling a proper predator.

Humans, as a group and individually, become a bit stupid and lazy in general without upward pressure.  Sometimes this pressure comes in the form of an enemy to be defeated, such as during World War I and II.  Other times it exhibits because there is a predator that must be defeated or avoided.  Minus this upward pressure, the species has this tendency to generate some silly illusions of stability.  Preemptively, I will say that "caste systems" and "slavery" are mechanisms that while "unfair" do tend to generate a semblance of stability.  Then, there's another number of misguided people that would see something (that appears to be) more powerful (than themself) and they would try to make a god from the thing, and start worshiping it, leading to human sacrifice and other horrors.


He suggested that humans are naturally the only real predator for humans.  I agreed, but lamented the fact that humans being humans, most underestimate the capacity of fellow humans to be truly inhumane creatures.  As such most humans are incapable of seeing their fellow humans as predators that must be defeated or avoided.  So, humans just aren't enough of a threat to be taken seriously until it is too late.  I guess that's the hallmark of a great predator.  The predator isn't noticed until it is too late.

Then, humans being humans, entirely too many are incapable of learning anything from experiences that are not their own.  They can see another person being attacked and totally omit any possibility from their thinking that the same thing could happen to them.  As thinking goes, we're a pretty dense species.

I have lamented a lack of zombies, vampires, werewolves, hostile space aliens... pick a poison.  I continue to.  In the face of zombies, stupid causes like "climate change", welfare, immigration "equality", "gay marriage", eat the rich, and a host of other stupid (typically liberal led) causes would not just take a back burner, but they'd be thrown off the stove because they're useless.  On the plus side, zombies would willingly comply with gun-free zones, and kill people anyway.

From the "religion of peace" (which in all honesty is repressive and hasn't really ever been peaceful) has arisen ISIS.  The behavior of these predators can only truthfully be categorized as predatory.  And yet again, humans just don't get it.  The american president doesn't get it.  Most of the american public doesn't get it.  (the anti-capitalization isn't a typo, it's on purpose)

I wished for a better predator.  As the djinn's warning goes, "Be careful what you wish for.  You just might get it."  Well, we got it.  It hasn't helped one bit.  I still want zombies, or vampires, or aliens (from space, not Mexico).

Oh well.  I'll keep wishing and hope it eventually doesn't backfire.

2015/06/05

ZFS:Main

ZFS is included in FreeBSD and several other operating systems and comes bundled with the supporting tools. This supplies a very large number of tools and toys for managing your disks and filesystems.

Included ZFS features:
(These features are baked into ZFS, but that does not mean that all of them are a good idea)

Disk Management - disk(s) assigned to ZFS pools do not need to be micromanaged by other tools
ZFS Managed Software Raid - stripe, mirror, or raidz (or, some combination/variation like Striped-Raidz)
Datasets - child filesystems of the pool, no special partitioning required.
Volumes - virtual disks created from raw storage of the pool, no special partitioning required
Transparent Compression - lz4, lzjb, gzip, gzip-[1-9], zle, or none (Pool version 5000, also called "feature flags" added lz4 to this list)
Dedup - Identical blocks are not stored more than once. VERY HIGH MEMORY COST, AND SPEED IS SACRIFICED, PLUS OTHER HAZARDS. NOT RECOMMENDED, but available.
Snapshots - read-only reference to a dataset or volume as of a specific moment in time
Cloning - replica of a dataset/volume created from a snapshot

ZFS Structural Elements:
vdev - structural elements that make up a pool
Pool - the nexus that presents the underlying storage devices
Dataset - a child filesystem of the pool
Volume - a child of the pool that acts as a virtual block device
Snapshot - a point-in-time reference to the state of a dataset or volume
Clone - a new dataset or volume that starts with a snapshot as its template

Link Source Notes
FreeBSD zpool man page freebsd.org for creation, manipulation, and destruction of pools
FreeBSD zfs man page freebsd.org for creation, manipulation, and destruction of datasets, snapshots, clones, and volumes
FreeBSD zdb man page freebsd.org ZFS debugger - useful for checking pool and vdev parameters
FreeBSD ZFS wiki freebsd.org
ZFS Tuning Guide wiki.freebsd.org
ZFS Best Practices Guide solarisinternals.com Some is Solaris specific, but most is equally valid
ZFS snapshot, clone, volume googlux.com
Dedup details blogs.oracle.com In case you're curious about dedup. Dedup is NOT recommended
Migrating ZFS pools docs.huihoo.com
zfs copies=x blogs.oracle.com
Moving ZFS pools barbz.com.au
ZFS Compression - A Win-Win blogs.oracle.com
Becoming a ZFS Ninja blogs.oracle.com (video)
ZFS Cheatsheet lildude.co.uk
ZFS: Read Me 1st nex7.blogspot.com
Fixing the 4k problem blog.monsted.dk

Originally from zfs/main.txt · Last modified: 2014/09/04 06:49 by killermist  This is a copy, just in case.