Clear All ZFS Snapshots

If you’ve been running snapshots for a while and have already backed them up, you might occasional need to delete all zfs snapshots for your pool.
Typically, you’d do this as part of your backup script, assuming that they have been written correctly.

First, to find the used snapshot space, run this command:
zfs list -o space
This will give you a detailed readout of your pools and snapshot space used.

Here’s my script to wipe ZFS snap shots, but I am certainly open to suggestion:
zfs list -H -o name -t snapshot | xargs -n1 zfs destroy
Again, caution is needed as this will remove ALL SNAPS from your pools.

ZFS Build Checklist

I’ve decided to replace the Windows Home Server Vail server with something capable of handling newer builds of ZFS and the inherent deduploication.

Here’s a quick kit list and build diary I’ll try to keep up-to-date as I go along.

Kit:

  • Dell Perc6i – this is essentially a port multiplier. I scored it from eBay on the cheap, though it was delivered from Israel, took awhile, and had neither cables nor mounting bracket.
  • OCZ RevoDrive 120GB – Though the RAID controller on this card is not supported in Linux/Solaris, the drives show up as two separate devices as long as you make sure to put it in the right PCIe slot. That means it’s perfect for both ZIL (log) and L2ARC (cache).
  • 2x Intel 80GB X25-M SSDs – these will house the virtual machine files to be deduped. Very reliable drives, and though they might not be the fastest in terms of writes, the speeds are relatively constant which is quite handy compared to solutions that attempt compression like SandForce controllers. ZFS will take care of that, thanks.
  • (IN TRANSIT) 2x Dual Port 1gbit Intel PCIe NICs – I’ll use these for the direct connection to the virtual machine host. Currently one link is used, but when reading from the SSD drives the line is saturated.
  • (IN TRANSIT) 32 Pin SAS Controller To 4x SATA HDD Serial Cable Cord – This is needed to plug in 8 drives to the LSI controller.
  • 5x 1.5TB Seagate hard drives – These will be the bread-and-butter storage running in RAID-Z2 (similar to RAID 6).
  • 3x 3TB Seagate hard drives – These might simply be a large headache, but the plan was to have an extra 3TB RAID-Z2 for backups in another machine. Unfortunately there seem to be issues with drives that are 4k presenting themselves as 512b. I may be able to get around this by hacking or waiting as they become more popular. For now 2 of them are in software RAID1 on a Windows 7 host, and the other remains in the external USB 3 case and is used as a backup drive.
  • NetGear GS108T Switch – A cheap VLAN-capable switch should I decide to use more than 2 bonded ports (I doubt it), currently running the lab.

Vista on Vista Virtualization using Virtual PC 2007

I can now confirm that the Windows Vista MSDN x86 ISO is fully installable using Virtual PC 2007 Beta on Windows Vista Ultimate 64bit.

Even though these are both MSDN images, neither of them was activated, nor did I enter a serial number during the install. Just click next when they ask you for a serial, and make sure to confirm that you do not wish to enter a serial number by pressing the “no” button.
(click on thumbnails for 1600×1200 images – the virtual machine is running at 1280×1024)

Vista on Vista VirtualizationVista on Vista VirtualizationVista on Vista Virtualization

The installation took some time, even with 1GB of RAM allocated to the Virtual PC 2007 virtual machine, but after about 30 90 minutes or so, Vista Ultimate x86 virtualized on Vista Ultimate x64 using Virtual PC 2007 is a definite go-ahead-and-try-it install.

Follow normal VPC installation procedure, select Vista as the guest operating system, and chug along as the install proceeds.

Coming up next: full installation instructions.

Note: Unfortunately Virtual PC 2007 is beta, and I don’t see any plans for adding 64bit virtualization any time soon. If you have info that states otherwise, please let me know is this appears to be the only viable option for Vista VMs at the moment.

Skip DMG verification by default in Mac OS X

I’ve been using OS X for a while now, and one thing that really irks me, especially on larger DMG files like a Leopard image, is that OS X automatically tries to verify the checksum of the DMG image file, which could take hours.

There are a few applications out there that will disable this for you, but if you want the quick and dirty method, and don’t mind using the Terminal once in a while, use this one-liner to disable the verification easily:

defaults write com.apple.frameworks.diskimages skip-verify true

Distro of the week: Berry Linux

Up until a few years ago I was getting fed up trying to show Japanese friends that linux was a viable option to Windows XP SP2, because the input method that Linux used at the time quite truthfully stank. The conclusion was that with an English keyboard, Windows was the way to go because of the (then) fancy Japanese input method applet.

Later on, I found out about Berry Linux, a Japanese LiveCD distro based on RedHat/Fedora that can easily show off Linux and allow users to do things like compose email that Japanese people can actually read (common problem on Windows), and surf the web in Japanese by default, instead of having to manually choose codepages and the like, which frustrates must computer users (if they haven’t already given up).

Berry Linux got an update today (to version 0.75), and now supports fancy-pants XGL – which I’m sure you’ll agree kicks Aero’s behind quite handily (footily?). If you’re trying to run Berry Linux Mini as a virtual machine you’ll get a console instead of X and you’ll lose the XGL capabilities, so I’d recommend testing it on a physical machine instead of a virtual machine – it’s a LiveCD so it’s quite safe to do so.

Berry LinuxBerry LinuxBerry Linux

Here’s a feature rundown taken from the Berry Linux site’s English page (corrected a few typos):

    Common Features:

  • Support for Kernel-2.6. ALSA, ACPI, selinux.
  • Overlay Filesystem Support.
  • XGL, 3D Desktop, support.
  • Berry Linux is not necessary to install. (Root partition is in the RAMdisk using initrd, all commands are operated by being transfered from CD-ROM)
  • It can install on Windows without parting partitions to use Setup.exe or install.bat. (Using squashfs/cloop/loopback device)
  • It can install to your hard disk on Linux. (Use Berry Linux Installer or Copy under /BERRY/, and set up LILO or grub)
  • Berry Linux can boot from USB-HDD/memory.
  • Berry Linux uses WHIZ, a very sharp Kana-Kanji conversion system. (WHIZ Project)
  • If you push the windows key, and show the K-Menu.
  • Automatically recognizes USB storage, and show icons.
  • Berry Linux uses free Japanese True Type Fonts.
  • Berry Linux uses bootsplash when booting.
  • Berry Linux uses DHCP to connect the Network. (If you’d like to use PPPoE, you should setting up it on the Terminal)
  • It’s possible to save personal setting.
  • Red Hat Fedora compatible.
  • Using new technologies.
    Berry Linux’s Features:

  • You can listen to mp3 using BMP/XMMS, and play DVD/DivX using MPlayer, XINE and Kaffeine.
  • You can edit files of Microsoft Word, Excel by OpenOffice(TM).
    Berry Linux Mini’s Features:

  • Minimum Linux environment is available by using Berry Linux Mini.
  • Its file size is very small. (148.0MB)
  • It’s light. Because of the Window Manager is Fluxbox.
  • You can enjoy comfortable Linux environment.
    Berry Linux Server’s Features: (Published Berry Linux Mini as alpha version)

  • Build the Linux Server easily.
  • Minimum Server Linux enviroment is available by using Berry Linux Server.
  • Its file size is very small. (161.3MB)
  • It’s light. Because of the Window Manager is WindowMaker.
  • You can enjoy comfortable Linux enviroment.

    To do:

  • Support Software Suspend.
  • Support Captive NTFS.

You can grab Berry Linux from the SourceForge page or the Berry Linux main page – but I’d recomend using SourceForge if you are in North America as it is much faster.

Running Virtual Machines on Windows Vista

In the coming weeks I will be working more on Microsoft’s Windows Vista as it ramps up to release to manufacture (RTM) status.

Although you can currently run Microsoft Virtual Server 2005 in 32 bit mode on a Windows Vista physical machine, I’ve learned that I was recently accepted into the Virtual PC 2007 beta tester program, and that Virtual PC 2007 can run on 64bit Vista.

If you are interested in joining the Virtual PC 2007 beta program, I highly suggest you sign up, then play some fantastic Rod Stewart albums until you are accepted.

By the way, this does in fact mean you can run Vista on Vista reliably now. VMWare Workstation and Server still don’t work at this point, but it’s on the way, just stay tuned.

Disco Disc Burner App Public Beta for Mac OS X

Why is it that I always find myself ponying up the small amounts of cash it takes to purchase Mac shareware applications? Black fire and a disco ball? I gotta have it.

Today I fell victim to MacZot‘s current promotion (ends in 23 hours!) that saw me gobbling up the public beta of the Disco CD/DVD burning application for Mac OS X, and boy am I content with this lil 700KB number.

Firstly, the hype: when you purchase the beta at the silly-low price, you also get the opportunity to send a free license to someone else. So here goes – the first person to leave an intelligent comment gets the license! (I’ll need a real email address) This is a great marketing idea that see people not only using the beta of a terrifically designed piece of software, but also spreading the word to others so they can try it as well. Good show.

Disco Windows

Next, the features: Disco copies discs in two clicks. Say that ten times fast. Disco can span CDs and DVDs automagically. They call it Spandex, I call it dead sexy. This is extremely handy when backing up iPhoto or iTunes, trust me. Disco can burn VIDEO_TS folders by just dragging them onto the application, which makes it great for burning your DVD backups. Disco has realtime 3D interactive smoke that actually wafts up from the application as you burn discs. If you blow into your microphone, the smoke will dissipate, and if you move your cursor around the smoke itself, it reportedly moves accordingly – but I didn’t get to see this on the low-end test box. Disco has an amazingly simplistic interface that is very easy to follow as it prompts you at every step. Last, but certainly not the least in terms of features, and should really be in caps: Disco remembers every single burn and keeps a catalog of the burn sessions using what it calls “discography” so that you can easily do things like print labels, disk jackets, or simply keep handy for when you need that dot release or the pre-altered code that you can never find. Let Disco be your personal sherpa.

Disco runs very well for a beta application. I have yet to see it crash under Panther, Tiger, or even Leopard (WWDC or the 9a ADC build). Oh, and it worked fine in Tiger server as well. Unfortunately the test box is a 1st generation Mac Mini (PPC), so there was no “smoke” to speak of (anyone have screenshots?), so that will need to be tested later. I burned some mix audio CDs, a backup copy of the disk image for Disco public beta itself, an ISO image of Ubuntu Edgy Eft Beta, and a bunch of Gentoo releases, for good measure. No hiccups. I erased a very old scratched CDRW. I even inserted a scratched blank CDR to see what would happen… Well it wouldn’t burn correctly but Disco kept on keepin’ on – like some sort of Disco inferno – no bouncing beachballs of death here. And you call this a beta? I expected flames, not smoke. No crash and burn here.

picture-1.pngpicture-2.pngpicture-3.pngpicture-4.pngpicture-5.pngpicture-6.pngpicture-7.pngpicture-8.pngpicture-9.pngpicture-10.pngpicture-10.pngpicture-11.png

In these screenshots you see the Disco app in full swing, from installation to a test burn, and a view of all the windows it provides. I really like the design of this app, and it was well worth the 15$ pricetag. If you’re new to MacZot, and need a referrer, feel free to use “blandname”. Now go write some optical media and dance around like a schoolgirl.

Oh and on the topic of Disco, and in the name of Halloween here’s a joke:

“Why didn’t the skeleton dance at the disco?”

“He had no body to dance with”