RSS

Transfer / Copy Garageband .band files / songs to your iPhone or iPad

I’ve found out that it’s possible to transfer your Garageband files from your computer to your iPhone/iPad and continue working on it with the mobile version of GarageBand.  There are limitations since the iPhone/iPad version doesn’t have all the instruments and effects but if you keep that in mind while working on your song you can work on your song anywhere.

First thing to do is make sure both GarageBand on the iPhone/iPad are the latest version (update apps on your iPhone/iPad) the best way to update all your iPhone/iPad apps is with iTunes.  If you don’t know how to update all your apps simply click on Apps on the top left of the iTunes window.  All your apps will show up then at the bottom right you will see a number X updates Available -> .  Click on the little right arrow and the will change to show you all the apps that have updates.  Click on the button on the top right “Download All Free Updates” and your computer will get all the apps for all the iDevices associated to your iTunes account.  When it is done getting all the newest apps you will have to sync your iPhone/iPad to get the newest apps on your iPhone/iPad.

Also update the GarageBand on your computer to the latest version (Software Update on your computer).

There isn’t a lot of tweaking to do just edit two settings in two different files and you are good to go.  But first you need to know what to change your garageband files to inorder to work with your iPad/iPhone.  The settings are different depending on your device.  I don’t have a complete list and it’s best to learn for yourself what you need for your particular iPhone/iPad (it’s painless todo).

To find out what your iPhone/iPad device settings need to be do the following:

On your iPhone/iPad (I’m using an iPhone 4S) start up Garageband and select press the top left down arrow button and then select My Songs

Next select any song on your iPhone. (We wont be modifying it, so don’t worry).

Next Press the Export button (Bottom left corner)

Click on iTunes

Then press GarageBand

Now that you saved your song on your iphone in the iTunes folder you can grab it within iTunes.  Plug your iPhone/iPad into your computer and start up iTunes.  Click on your iPhone/iPad on the left (under DEVICES) to select it then go to the top middle of the screen and click on Apps.  Scroll down the screen and you should see the File Sharing list of Apps.  Click on GarageBand and you will see your iTunes Exported GaragBand Songs like the picture below:

You can click on the songname and drag it to your desktop for easy editing

then right click or control-click the icon and select Show Package contents

Finder will open and show all the Garageband files and folders

Right Click on projectData and open with TextEdit, you will then see the following:

The data on the two blue hi-lighted lines between the <string>xxx</string> is the important information you need to remember.  The first should be “ios” for every ios device (iPhone/iPad) but the second line will be different if you have an iPad 1 or iPad 2 or whatever future devices Apple releases.  For my iPhone 4S it is iPhone4,1 this might be different for the iPhone 3GS or an iPhone 4.  So make a note of your particular text.  This is what you need to change when you want to copy a GarageBand song made on your computer to your iPhone/iPad.  We will call this the “GarageBand device ID.”

Now to copy a GarageBand song from your computer onto your iPhone/iPad start Garageband on your computer and import it and re-save it (maybe with a new name).  This will update the song to the latest Garageband format which is more closely associated with Garageband on the iPhone/iPad.  Then find the Garageband song you just saved on your computer and right click (control click) on the filename and do a Show Package Contents.  You will see the same list of files and folders as above.

First right click (control click) on the projectData file of your newly saved GarageBand song from the computer version of GarageBand and Open With TextEdit.  You should see a similar file output as this picture:

See the blue highlights lines of my Mac Pro running Snow Leopard 64 it version shows up as macos and x86_64 you may have i386 on the second line or something else.  It doesn’t matter as long as you change these two lines to be the same as the iPhone/iPad version you saw above.  So change the first line in blue to read <string>ios</string> and the second line to whatever you found above your ”GarageBand device ID” my iPhone 4S “GarageBand device ID” was iPhone4,1 so I will change the second line in blue above to <string>iPhone4,1</string> Once those two lines are changed save the file and quit TextEdit.

Now we need to make the same changes to another file in the GarageBand Songs Package folder.  In the finder window open showing the GarageBand song’s Package content click on output and right click (control click) on the metadata.plist and select Open With > Other…  TextEdit

As in the previous file we change the line in blue <string>x86_64</string> yours might be <string>i386</string> to your ”GarageBand device ID” my iPhone 4S “GarageBand device ID” was iPhone4,1 so I will change the line in blue above to <string>iPhone4,1</string> you will use your own “GarageBand device ID” found in the first step.

In the same file a little lower you will see

Change this line to read <string>ios</string> this is my final version of the metadata.plist.  Your will look different unless you an iPhone 4S.

Once you are happy with the changes save the file and close TextEdit.

We are done editing the files.  Now we just copy your Edited GarageBand song on the iPhone/iPad.  Open up iTunes and as before click on your iPhone/iPad on the left under DEVICES then Apps at the top middle of the screen, scroll down and select GarageBand on the left.  You will seethe GarageBand sons in the list on the right.  Now drag your editing song from your computer to the iTunes GarageBand song lists and drop it.  iTunes will add your GarageBand song onto your iPhone/iPad sync your iPhone/iPad.  Once done disconnect your iPhone/iPad from your computer and startup GarageBand.

Click on the Top left Down Arrow and select My Song.  Then from here click on the import button (second button from the bottom left corner) you will see your GarageBand song that was copied from your computer.  Press on the name and it will be imported into your iPhone/iPad.

I don’t know the limitations of this method, it might only work with simple files with short filenames.  So if you’re having difficulties try some very basic songs and see how you make out.  I’ve only done it a few times with so simple songs.  The most complex was with 8 tracks (iPhone/iPads limit) and 52 bars.

Apple might stop support of this in the future.  Hopefully Apple will actually add this feature in the future so we wont have to go through this hassle anymore.

I found out how to do this by watching a Youtube video here:

It might help you if you’re stuck.

Good luck,

Glen.

 
Leave a comment

Posted by on December 27, 2011 in GarageBand

 

Tags: , , , , , , , , , ,

XBMC Live install with working NVidia (GT240) HDMI audio

I fought with XBMC Live yesterday for half a day trying to get Audio out of the HDMI port on my GT240 NVidia graphics card.  It turns out it is very simple, I was fighting with it for nothing, I was just missing a little information and I was reading older posts on alsa sound configurations that didn’t need to be touched.  XBMC was almost ready to go once it was installed.

First if you don’t need the computer on-board audio, I would go into the BIOS and disable it so it wont interfere with the HDMI audio devices.

Here is a quick how-to install XBMC live 10.1 and how to get audio out of the GT240. Follow the instructions here on how to download and install XBMC Live .ISO I have it installed on a 2Gig USB Thumb drive. Once installed to a USB drive or a hard drive (not running from the CD, because you can’t keep your settings when running from the CD) exit XBMC this will get you to the login prompt (one or twice it didn’t show up and I had to hit ALT-F1 or ALT-F2). Enter the username and password you chose when you installed XBMC to the drive.  This password is also the root (sudo) password. You can also login to your XBMC box from a remote computer using ssh, to find out the ip address of your XMBC login to it directly and type:

$ ifconfig

You will see the following (and more), the inet addr: is the IP address you need to use from another computer in your house.  In my case it’s 192.168.1.44

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.1.44  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::6ef0:49ff:fe2c:fde/64 Scope:Link

So I would pull up a terminal on my MAC (I like to use iTerm on my Mac because the Function keys works better) or linuxbox and type

$ ssh glen@192.168.1.44

From here I had to un-mute my HDMI ports

$ alsamixer

You will need to un-mute the S/PDIF ports by hitting the ‘M’ key and moving to the next port (right and left arrows) the ‘MM’ will turn to ’00′

                                 ┌──┐     ┌──┐     ┌──┐     ┌──┐                                                                          │
                                 │OO│     │OO│     │OO│     │OO│                                                                          │
                                 └──┘     └──┘     └──┘     └──┘                                                                          │
                              < S/PDIF >S/PDIF 1 S/PDIF 2 S/PDIF 3

Press ‘F2” to get the System information then select /proc/asound/devices, you will see something like:

          ┌─────── /proc/asound/devices ───────┐                                                                       │
          │  0: [ 0]   : control               │                                                                       │
          │  1:        : sequencer             │                                                                       │
          │  4: [ 0- 0]: hardware dependent    │                                                                       │
          │  5: [ 0- 1]: hardware dependent    │                                                                       │
          │  6: [ 0- 2]: hardware dependent    │                                                                       │
          │  7: [ 0- 3]: hardware dependent    │                                                                       │
          │ 19: [ 0- 3]: digital audio playback│                                                                       │
          │ 23: [ 0- 7]: digital audio playback│                                                                       │
          │ 24: [ 0- 8]: digital audio playback│                                                                       │
          │ 25: [ 0- 9]: digital audio playback│                                                                       │
          │ 33:        : timer                 │                                                                       │
          └────────────────────────────────────┘

From the window shown the digital audio playback lines show [0- 3] [0- 7] [0- 8] [0- 9].  From this list I chose [0- 7] since [0- 3] is also an input (see it shows up twice in the list).  In the [0- 7] the 0 means card 0 and the 7 means device number 7. To test out your speakers use the speaker-test command.  With your HDMI ports now un-muted you should hear sound from at least one of the devices shown above.  My [0- 7] worked perfectly with this command.  Use ‘speaker-test -h’ for help using this command.

$ speaker-test -Dplughw:0,7 -c6

This gave me sound out of all my 5.1 ( -c6 ) speakers and now I know what to use in the custom lines in the XBMC Settings>System>Audio output menu.  The top line Audio output should be HDMI, the next important line is the Audio output device set it to Custom and the line below that Custom audio device should be set to plughw:0,7

The next line Passthrough output device should also be set to Custom and the line below that Custom passthrough device should also be set to plughw:0,7

You might need to reboot for the audio settings to take effect, I’m not an alsa expert but this works for me…

I hope this helps someone from wasting a day fighting with their HDMI audio port.

Glen.

 
Leave a comment

Posted by on October 9, 2011 in Uncategorized

 

Convert all files recursively from one format to another (ie .flac to .mp3) using Linux

HI All,

A little post for a cool Linux bash script I created with some help from the net that will convert all the .flac files in a directory and all sub-directories to .mp3 format.  This script can easily be modified to convert other audio files to any other format that FFMPEG supports and also convert between all the different video files FFMPEG supports.

*** Stupid WordPress messes up all the quotes ” please make sure your final script has only regular quotes throughout and not forward and backward quotes.  Also the single quotes are mess up too…  Make sure they are regular sigle quotes ‘. Sorry for the inconvenience.   ***

First install ffmpeg:

Go here for how-to install ffmpeg with mp3 and other file support…

Otherwise a regular sudo apt-get install ffmpeg will install a limited version of ffmpeg

Now onto the script…

Use nano to create the script

$ nano flac2mp3

Copy and paste the following script:

#!/bin/bash
# convert .flac to .mp3 recursively
# By Glen Hewlett
#####################################
if [ -z $1 ];then echo Give target directory; exit 0;fi
find “$1″ -depth -name ‘*’ | while read file ; do
directory=$(dirname “$file”)
oldfilename=$(basename “$file”)
newfilename=$(basename “${file%.[Ff][Ll][Aa][Cc]}”)
if [ "$oldfilename" != "$newfilename" ]; then
ffmpeg -i “$directory/$oldfilename” -ab 320k “$directory/$newfilename.mp3″ </dev/null
rm “$directory/$oldfilename”
fi
done
CTRL-X and save the output Then make it executable

$ chmod +x flac2mp3

Use the command flac2mp3 with the directory name you want it to look for files to convert. Example: convert all the files in the current directory and all subdirectories.

$./flac2mp3 ./

Example: convert all the files in the “/temp” directory and all subdirectories.

$./flac2mp3 /temp

You can remove the “#” at the beginning of the line rm “$directory/$oldfilename” and the script will delete the original file. Be careful to make sure you still have a copy of the original files if you do remove the “#”.

If you want this script to convert all the .wav files to .aac you would change the line:

newfilename=$(basename “${file%.[Ff][Ll][Aa][Cc]}”)

to

newfilename=$(basename “${file%.[Ww][Aa][Vv]}”)

Also modify the ffmpeg output line from:

ffmpeg -i “$directory/$oldfilename” -ab 320k “$directory/$newfilename.mp3″ </dev/null
to
ffmpeg -i “$directory/$oldfilename” -ab 320k “$directory/$newfilename.aac” </dev/null

Of course you can always tweak the ffmpeg command line to a lower bitrate if you want depending on your needs (-ab 320k). If you do plan on using this for video conversion then you will have to play with the ffmpeg settings to get the desired output. There’s tons of info all over the net for using ffmpeg to convert audio and video formats. Just search for ffmpeg and the format you want to end up with and you’ll surely find tons of example ffmpeg commands.

To get ffmpeg to list all the file types it can convert use the command:

$ffmpeg -formats

Have fun… Glen.

 
2 Comments

Posted by on September 11, 2011 in Uncategorized

 

Force the Optoma HD80 projector into quiet 50Hz mode – AppleTV2

I bought an AppleTV2 last week for a few cool reasons:

  • It’s been hacked!
  • You can install XBMC (Media Centre ported to many different OS’s including iOS for the iPads, iPhones & AppleTV2) on it (not perfect yet but getting there as of Nightly Build 2011/04/01).
  • AirPlay is cool (I can instantly watch videos and pictures from my iPhone that I just took or old videos and pictures I have stored)
  • Netflix
  • Uses very little power

I’ve had my 1080p projector the Optoma HD80 hooked up to my linux box with an Nvidia G240 graphics card and it has been doing a fantastic job playing any video I send to it.  Nvidia has had GPU assisted video decoding under Linux for quite awhile now and I’m very happy with it.  I have a Netflix account and I can’t watch it on my Linux box.  Netflix really should come out with a Linux version of API so programmers could do it.  It works on Macs and Boxee (which is a Linux box).

Anyways, I’m a big Apple geek and when I found out I could use XBMC and Netflix on the AppleTV2 I thought for $120 Canadian, why not get it and hack it.  The AppleTV2 is a cool little device but…

The problem I have is that my projector’s fan is too loud when it’s playing back video at 60Hz.  The HD80 is nice and quiet at 50Hz and that is how I have my Linux box version of XBMC setup.

There is no setting on the AppleTV2 to select refresh rates.  It reads the EDID data from your projector/monitor and figures out what is the best refresh rate and displays it’s video signal at that rate.

The HD80 is an NTSC device so it sends the EDID info that it can handle 60Hz and so the AppleTV2 uses 60Hz and my HD80′s fan cranks up and is disturbingly loud.

I had a few options…

  1. Live with the loud fan at 60Hz (not really an option)
  2. Return the AppleTV2
  3. Maybe modify XBMC (if the code existing in the iOS port) to play back at 50Hz.  This is either modifying the source code and compiling myself (big pain, if the refresh rate can even be tweaked) or hand tweak the config files.  This still doesn’t fix the other video features of the AppleTV2 though.
  4. Reprogram my HD80′s EDID so that it tells the AppleTV2 or any other device it attaches to that it only can handle 50Hz
  5. Decode the Apple iOS and modify the firmware  parts that select the refresh rates and make it always use 50Hz.  MAJOR time consuming…  This tweak would need to be done anytime I updated the AppleTV2 firmware.

So option 4 is what I decided todo.  A lot of the info provided below is based on the idea from this post:

http://www.livingcinema.nl/phpBB2/viewtopic.php?p=744

Where the user revo reprogrammed his HD80′s EDID and setup a 24Hz mode.

I fought with this reprogramming the EDID for many days trying to get Powerstrip to program my HD80 but I think something is wrong with the latest version because it kept on giving me errors.  I tried Win 7 and WinXP with four different computers and video cards but it still showed the same error every time.  ”Access violation at address 00511B8B.  Read of address 00000000.”  The company that makes Powerstrip EnTech Taiwan say that EDID writing is a hidden and Unsupported feature.  You have to send them your psinfo.ini file just to get them to send you a 4 digit code to enable the writing of EDID info to your monitor.  I gave up with powerstrip at that point (wasted $30).  I new about the above link and I know revo re-wrote the EDID data of his HD80 with another program DDCW.exe but it only writes the first 128 bytes of the EDID and not the extended data that details all the supported resolutions.

I ended up copying his procedure and re-wrote only the first 128 bytes of the EDID and it turns out it’s all I had todo to get the AppleTV working at 50Hz!!  So if you’re still with me here’s the process I used… (links to all the required apps can be found below, all freeware, Yeah!)  This worked for me, use this info at your own risk (warranty may be voided, yada, yada, yada, blah, blah, blah)…

I had my original EDID info from my xorg.conf file (a Linux video tool) and used that with a program called  ELDIM – EDID Viewer I used the info from the EDID wiki to figure out what the Hex codes meant.  You can also use the program Phoenix EDID Designer to help you edit the EDID.  I took the original HD80 EDID data from this file, you can also get it using DDCW.exe as revo explains from his post above using the commands from revo’s post:

ddcw -m 0 > port1.txt
ddcw -m 1 > port2.txt

one of these files now should show:
EDID update utility
use: -f <filename> to specify the text file containing the correct
EDID data for compare and reprogram
use: -c <filename> to specify the text file containing the correct
EDID data for compare ONLY
use: -p to automatically update the first 8 bytes of the A0 EDID to 00 FF FF FF FF FF FF 00
use: -m A to specify the output to use, A=0 (default) for VGA, A=1 for DVI
use: -q to suppress most output
-f -c and -p are mutually exclusive options: use only one of these

EDID read from device:
00 FF FF FF FF FF FF 00 3E 8D 48 37 02 04 00 00 01 0F 01 03 80 23 1A 78 EA 1C 43 A4 57 4B A8 26 0C 49 4E 21 0A 7F 45 59 61 59 81 80 81 99 A9 40 81 C0 90 40 81 CF 01 1D 00 72 51 D0 1E 20 6E 28 54 01 13 8E 21 00 00 18 01 1D 80 18 71 38 16 40 58 2C 25 00 20 C2 31 00 00 9E 00 00 00 FF 00 54 38 31 45 35 30 31 41 31 30 32 36 0A 00 00 00 FC 00 4F 70 74 6F 6D 61 20 48 37 37 0A 0A 0A 00 38
no input file specified – no update check performed

Remember the port used to give a succesfull read, if not successful re-try other DVI port or PC or video card or give up. (Intel and ati do not work with this ddcw.exe tool)

Revo’s EDID is above and mine is below, remember that this info also has serial number info and shouldn’t be copy and pasted into your HD80 unless you don’t care about that…  Feel free to use my working version at the bottom of this post if you want to program your HD80 into 50Hz mode.

My original Unmodified HD80 EDID bytes might come in handy if someone needs to reprogram their HD80 with original NTSC EDID data (includes extended bytes):

(–) NVIDIA(0):   00 ff ff ff ff ff ff 00  3e 14 30 38 5c 00 00 00
(–) NVIDIA(0):   1a 12 01 03 80 00 00 78  0a 1c 43 a4 57 4b a8 26
(–) NVIDIA(0):   0c 49 4e ff ff 80 81 80  90 40 a9 40 01 01 01 01
(–) NVIDIA(0):   01 01 01 01 01 01 02 3a  80 18 71 38 2d 40 58 2c
(–) NVIDIA(0):   45 00 c4 8e 21 00 00 1e  01 1d 00 bc 52 d0 1e 20
(–) NVIDIA(0):   b8 28 55 40 c4 8e 21 00  00 1e 00 00 00 fc 00 4f
(–) NVIDIA(0):   70 74 6f 6d 61 20 48 44  38 30 0a 20 00 00 00 fd
(–) NVIDIA(0):   00 0f 63 0f 78 12 00 0a  20 20 20 20 20 20 01 65
(–) NVIDIA(0):   02 03 16 31 4a 90 1f 05  14 21 22 04 13 03 12 66
(–) NVIDIA(0):   03 0c 00 10 00 80 01 1d  80 18 71 1c 16 20 58 2c
(–) NVIDIA(0):   25 00 c4 8e 21 00 00 9e  01 1d 80 d0 72 1c 16 20
(–) NVIDIA(0):   10 2c 25 80 c4 8e 21 00  00 9e 01 1d 00 72 51 d0
(–) NVIDIA(0):   1e 20 6e 28 55 00 c4 8e  21 00 00 1e 8c 0a d0 90
(–) NVIDIA(0):   20 40 31 20 0c 40 55 00  c4 8e 21 00 00 18 8c 0a
(–) NVIDIA(0):   d0 8a 20 e0 2d 10 10 3e  96 00 c4 8e 21 00 00 18
(–) NVIDIA(0):   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 fd

Using the tools provided I changed the default 1080p and 720p formats to 50Hz and my final HD80 EDID file looks like this:

00 ff ff ff ff ff ff 00 3e 14 30 38 5c 00 00 00
1a 12 01 03 80 00 00 78 0a 1c 43 a4 57 4b a8 26
0c 49 4e ff ff 80 81 80 90 40 a9 40 01 01 01 01
01 01 01 01 01 01 02 3a 80 d0 72 38 2d 40 10 2c
45 80 c4 8e 21 00 00 1e 01 1d 00 bc 52 d0 1e 20
b8 28 55 40 c4 8e 21 00 00 1e 00 00 00 fc 00 4f
70 74 6f 6d 61 20 48 44 38 30 0a 20 00 00 00 fd
00 0f 63 0f 78 12 00 0a 20 20 20 20 20 20 01 74

According to the EDID wiki the last byte of the 128 bytes is a checksum byte that when all the bytes are added together you get a value of 00.  So use a Hex editor like HxD Hex Editor and use it’s checksum feature on your EDID data to figure out the value of the 128th byte.

Once you are happy with your EDID data it’s time to write it to your HD80.  Make a bootable WinXP floppy disk and save the DDCW software on it (over write any existing files on the floppy).  Also copy your HD80 EDID file as HD80.txt.  From what I’ve read DDCW only works with Nvidia cards (I guess if you can read your original data with your graphics card as suggested above then your card is good).  I used a old PC with a FX 5200 based card and hooked up the DVI output with an adapter cable to HDMI port 2 of my HD80.  I used a bootable WinXP floppy which the DDCW documents suggest with the DDCW software and my new HD80.txt file (with my new 50Hz EDID data).  Then I programmed my HD80 using the command:

ddcw -m 1 -f hd80.txt

In the above command “-m 1″ is for the DVI port which is what you want to program.  Do not program the SVGA port, from what I have read the EDID data is different on SVGA ports.

Once programming has finished (a minute or so later).  Remember to turn off your projector then let the fan cool it off for a few minutes.  Then Unplug it from the power outlet and leave it for a few minutes.  Then plug it back in and give it a try.  Good Luck!

One other note is the HD80 has two HDMI ports.  I reprogrammed the EDID of port 2 on my HD80 and only that port was affected.  Port 1 of my HD80 is still the original settings.  So if I plug my AppleTV2 in port 1 it outputs video at 60Hz, if I unplug it and plug it back in to port 2 of my HD80 then the AppleTV changes to 50Hz mode again.  So I have both options… Just in case.

Required apps (click to download):
DDCW.exe called EDID_Writer.zip (Download link is the top post of page 2 of the EDID Update forum, posted by JustGreg)
EDLIM EDID Viewer – Excellent EDID data to english viewer
Phoenix EDID Designer – EDID reader and tweaker.
edid-converter.cab – nice program to convert EDID files between different formats
HxD Hex Editor – Nice Hex editor

See this cool blog posting for more EDID programming info.

 
3 Comments

Posted by on April 13, 2011 in AppleTV2, Optoma HD80

 

Tags: , , , , , ,

Prowl and Ncid – CallerID forwarded to your iPhone, iPad or iPod

I have installed Prowl on my iPhone and hooked up a modem that supports CallerID to my Ubuntu Linux PC and I’ve got it working so that when someone calls my home phone line I now get a message sent to my iPhone.  This comes in handy when I’m waiting for a call at home but I can’t be there all the time and when the phone rings at home and I’m not close to the land line I can see on my iPhone if it’s for me or the rest of the family.

I’ve documented how I set it up here…  If you are comfortable with Linux and the command line this should be straight forward.

I updated the bash script with examples of how to add more personalized names based on the phone number called and added Richard Dansereau’s method of displaying the messages, also added call logging too…

  • First install the Prowl app (cool Growl for OS-X and Growl for Windows notification app) on your iPhone – $2.99
  • Login into the Prowl website and get an API key for your iPhone, you will need this in the ncid-prowl module (I’ll explain later)
  • Install the ncid software by opening a terminal on your Ubuntu PC and typing
  • $ sudo apt-get install ncid
  • Enter the sudo password and “Y” when asked if you want to continue (to install).
  • Install the curl software on your Ubuntu PC, typing
  • $ sudo apt-get install curl
  • If you do this soon after the ncid apt-get install you wont need to enter the sudo password again.
  • Press “Y” when asked if you want to continue to install.
  • I have an external USRobotics modem that I plug into the serial port on the back of my PC.  It uses device dev/ttyS0 (I/O 0x3f8 ,irq =4) so I had to change the ncidd.config file to use this port.  The default modem config didn’t work.  So make sure you have serial port  enabled in your BIOS then tweak the ncidd.conf file (make sure it has two d’s “ncidd.config” and not “ncid.config”).
  • I used $ sudo nano /etc/ncid/ncidd.conf and changed the line “# set ttyport = /dev/ttyS0″ to “set ttyport = /dev/ttyS0″ removing the “#” at the beginning, and setting it to my serial port (ctrl-x to save and exit the nano editor)
  • Test your modem is working with ncid by starting up the ncid server
  • $ sudo invoke-rc.d ncidd start
  • Try the standard ncid client
  • $ ncid
  • Call your landline from your iPhone and hopefully you see your number show up in the ncid displaybox on your pc
  • (If not read up on the ncid website to get it working)
  • Once it’s working close the ncid program
  • Next we need to modify the ncid-skel shell script to work with ‘Curl’ to send our CallerID message to the prowl server.
  • Using nano again copy the following script into the /usr/share/ncid directory calling the file “ncid-prowl”.

#!/bin/sh
# ncid-prowl Output Module
# Modify as needed for new module
# keep “ncid-” in the name
# input is 5 lines obtained from ncid
# input: DATEnTIMEnNUMBERnNAMEnLINEn
#
# input is 5 lines if a message was sent
# input: nnnMESSAGEnn
# Message will be in $CIDNAME
#
# ncid usage:
# ncid –no-gui [--message] –program ncid-prowl
ConfigDir=/etc/ncid
ConfigFile=$ConfigDir/ncidmodules.conf 

[ -f $ConfigFile ] && . $ConfigFile
read CIDDATE
read CIDTIME
read CIDNMBR
read CIDNAME
read CIDLINE
# Paste your apikey from the prowl website in the following line
apikey=0000000000000000000000000000000000000000

T1=$CIDNAME
#Personalize the call message name for specific numbers
#Add as many numbers and names you want copying the format of the two examples below
if [ "$CIDNMBR" = "555-555-1234" ]; then
T1=”Sam’s iPhone”
fi
if [ "$CIDNMBR" = "555-555-1111" ]; then
T1=”Joe’s Work”
fi

DESCMSG=”$CIDNMBRnTIME: $CIDTIMEnDATE: $CIDDATE”
echo $DESCMSG | curl https://prowl.weks.net/publicapi/add -F apikey=$apikey -F priority=2 -F application=”$T1″ -F description=”<-”

#Add call to phone log /phonelog.txt
INFO=”$CIDDATE – $CIDTIME # $CIDNMBR NAME: $CIDNAME – $T1″
echo “$INFO” > /temp.txt
cat /temp.txt /phonelog.txt > /temp3.txt
mv /temp3.txt /phonelog.txt

exit 0

  • You can copy and paste everything except for the apikey = 00000… to be your apikey from the prowl website
  • (it will be a long hex-decimal string)
  • ctrl-x to save and exit
  • Make the ncid-prowl executable
  • $ sudo chmod 777 ncid-prowl
  • Run it as a background process by using
  • $ ncid –no-gui -P ncid-prowl &
  • Call your landline from your iPhone and you should see the Prowl message on your iPhone.
  • If all is good you are done
  • If you want to start ncid up automatically when you boot your Ubuntu PC do the following
  • Make startup script (copy and paste the following into a file called start-ncid.sh)
  • $ nano start-ncid.sh

#! /bin/sh
# Script to start ncidd server and ncid client at boot-up

# Start the ncidd server as a daemon
ncidd

# Start the ncid client with the ncid-prowl module as output in the background
ncid –no-gui -P ncid-prowl &

  • Make it executable
  • $ chmod +x start-ncid.sh
  • Add the script to /etc/init.d
  • $ sudo cp start-ncid.sh /etc/init.d/start-ncid.sh
  • Add it to the system startup scripts for the different run levels
  • $ sudo update-rc.d start-ncid.sh defaults
  • Reboot and test it… Good Luck.


 
10 Comments

Posted by on February 9, 2011 in Ncid

 

Tags: , , , , , , ,

At the airport

45 minutes until we board.

 
Leave a comment

Posted by on April 21, 2010 in Hawaii 2010

 

San Francisco bound

We are on our way!!!

 
2 Comments

Posted by on April 21, 2010 in Hawaii 2010

 

My first iPhone / iTouch app What_To_Order is available now!

Hello,

I Just wanted to let everyone know that my new iPhone / iTouch app called What_To_Order is available on the iTunes store.  It’s a database for keeping track of your family and friends favourite meals at any restaurant/coffee shop.  To make it easy to order the exact coffee your co-workers like, or what your kids/spouse like on their sub.  I hope people find it useful.

Glen.

 
Leave a comment

Posted by on November 12, 2009 in Uncategorized

 

Tags: , , , , , , , ,

Replacing a 750Gig with a 1TB drive in my FreeNAS ZFS (Drobo like) server config

Example of upgrading my FreeNAS server running ZFS from two 750Gig & two 1TB drives to one 750Gig & three 1 TB drives.  I upgraded my Drobo with a 2 TB drive.  I removed a 1TB drive in it to make room for a new 2TB drive.  Then I took that 1TB drive and used it in my FreeNAS ZFS server (in Drobo like config).

In the end I will have added 250Gigs more to my ZFS pool.  In reality my protected space will increase by 114 Gigs.  Because of the way I’ve configured my ZFS pool and partitioned my drives I can increase the ZFS Zpool without having to copy all the data off the raid arrays within the pool and then destroy the Zpool and start again with the larger drives.  This config allows you to expand the drives one at a time.

This is how I did it:
freenas02:~# zpool export -f tank0
freenas02:~# gpt show ad4
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD ZFS
1465149135          32         Sec GPT table
1465149167           1         Sec GPT header
freenas02:~# gpt show ad6
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD ZFS
1465149135          32         Sec GPT table
1465149167           1         Sec GPT header
freenas02:~# gpt show ad8
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD ZFS
1465149135   122094000      2  GPT part – FreeBSD ZFS
1587243135   122094000      3  GPT part – FreeBSD ZFS
1709337135   122094000      4  GPT part – FreeBSD ZFS
1831431135   122094000      5  GPT part – FreeBSD ZFS
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header

freenas02:~# gpt show ad14
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD ZFS
1465149135   122094000      2  GPT part – FreeBSD ZFS
1587243135   122094000      3  GPT part – FreeBSD ZFS
1709337135   122094000      4  GPT part – FreeBSD ZFS
1831431135   122094000      5  GPT part – FreeBSD ZFS
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header

Reboot with ad6 750Gig drive replaced with ad6 1000G drive

freenas02:~# zpool status
pool: tank0
state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using ‘zpool online’.
see: http://www.sun.com/msg/ZFS-8000-D3
scrub: resilver completed with 0 errors on Wed Sep 23 23:08:57 2009
config:

NAME        STATE     READ WRITE CKSUM
tank0       DEGRADED     0     0     0
raidz1    DEGRADED     0     0     0
ad4p1   ONLINE       0     0     0
ad6p1   UNAVAIL      0     0     0  cannot open
ad8p1   ONLINE       0     0     0
ad14p1  ONLINE       0     0     0
raidz2    ONLINE       0     0     0
ad8p2   ONLINE       0     0     0
ad8p3   ONLINE       0     0     0
ad14p2  ONLINE       0     0     0
ad14p3  ONLINE       0     0     0
raidz2    ONLINE       0     0     0
ad8p4   ONLINE       0     0     0
ad8p5   ONLINE       0     0     0
ad14p4  ONLINE       0     0     0
ad14p5  ONLINE       0     0     0

errors: No known data errors
freenas02:~# zpool export -f tank0

freenas02:~# zpool status tank0
cannot open ‘tank0′: no such pool
freenas02:~# zpool status
no pools available

freenas02:~# gpt create -f ad6
freenas02:~# gpt show ad6
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1953525101
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header

freenas02:~# gpt add -s 1465149101 ad6
freenas02:~# gpt show ad6
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD UFS/UFS2
1465149135   488376000
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header

freenas02:~# gpt add -s 244188000 ad6
freenas02:~# gpt show ad6
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD UFS/UFS2
1465149135   244188000      2  GPT part – FreeBSD UFS/UFS2
1709337135   244188000
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header

freenas02:~# gpt add -s 244188000 ad6
freenas02:~# gpt show ad6
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD UFS/UFS2
1465149135   244188000      2  GPT part – FreeBSD UFS/UFS2
1709337135   244188000      3  GPT part – FreeBSD UFS/UFS2
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header

freenas02:~# zpool import tank0
freenas02:~# zpool status
pool: tank0
state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using ‘zpool online’.
see: http://www.sun.com/msg/ZFS-8000-D3
scrub: resilver completed with 0 errors on Wed Sep 23 23:29:51 2009
config:

NAME        STATE     READ WRITE CKSUM
tank0       DEGRADED     0     0     0
raidz1    DEGRADED     0     0     0
ad4p1   ONLINE       0     0     0
ad6p1   UNAVAIL      0     0     0  cannot open
ad8p1   ONLINE       0     0     0
ad14p1  ONLINE       0     0     0
raidz2    ONLINE       0     0     0
ad8p2   ONLINE       0     0     0
ad8p3   ONLINE       0     0     0
ad14p2  ONLINE       0     0     0
ad14p3  ONLINE       0     0     0
raidz2    ONLINE       0     0     0
ad8p4   ONLINE       0     0     0
ad8p5   ONLINE       0     0     0
ad14p4  ONLINE       0     0     0
ad14p5  ONLINE       0     0     0

errors: No known data errors

freenas02:~# zpool replace tank0 ad6p1
freenas02:~# zpool status
pool: tank0
state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scrub: resilver in progress, 0.00% done, 161h0m to go
config:

NAME             STATE     READ WRITE CKSUM
tank0            DEGRADED     0     0     0
raidz1         DEGRADED     0     0     0
ad4p1        ONLINE       0     0     0
replacing    DEGRADED     0     0     0
ad6p1/old  UNAVAIL      0     0     0  cannot open
ad6p1      ONLINE       0     0     0
ad8p1        ONLINE       0     0     0
ad14p1       ONLINE       0     0     0
raidz2         ONLINE       0     0     0
ad8p2        ONLINE       0     0     0
ad8p3        ONLINE       0     0     0
ad14p2       ONLINE       0     0     0
ad14p3       ONLINE       0     0     0
raidz2         ONLINE       0     0     0
ad8p4        ONLINE       0     0     0
ad8p5        ONLINE       0     0     0
ad14p4       ONLINE       0     0     0
ad14p5       ONLINE       0     0     0

errors: No known data errors

freenas02:~# zpool replace tank0 ad8p2 ad6p2
freenas02:~# zpool replace tank0 ad14p2 ad6p3
freenas02:~# zpool status
pool: tank0
state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scrub: resilver in progress, 0.87% done, 9h25m to go
config:

NAME             STATE     READ WRITE CKSUM
tank0            DEGRADED     0     0     0
raidz1         DEGRADED     0     0     0
ad4p1        ONLINE       0     0     0
replacing    DEGRADED     0     0     0
ad6p1/old  UNAVAIL      0     0     0  cannot open
ad6p1      ONLINE       0     0     0
ad8p1        ONLINE       0     0     0
ad14p1       ONLINE       0     0     0
raidz2         ONLINE       0     0     0
replacing    ONLINE       0     0     0
ad8p2      ONLINE       0     0     0
ad6p2      ONLINE       0     0     0
ad8p3        ONLINE       0     0     0
replacing    ONLINE       0     0     0
ad14p2     ONLINE       0     0     0
ad6p3      ONLINE       0     0     0
ad14p3       ONLINE       0     0     0
raidz2         ONLINE       0     0     0
ad8p4        ONLINE       0     0     0
ad8p5        ONLINE       0     0     0
ad14p4       ONLINE       0     0     0
ad14p5       ONLINE       0     0     0

errors: No known data errors

freenas02:~# df -h
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/md0       88M     76M     12M    86%    /
devfs         1.0K    1.0K      0B   100%    /dev
/dev/da0a      38M     35M    3.8M    90%    /cf
/dev/md1       31M    4.0K     28M     0%    /var
tank0         2.2T    1.9T    339G    85%    /mnt/tank0
freenas02:~#

freenas02:~# zpool status
pool: tank0
state: ONLINE
scrub: resilver completed with 0 errors on Thu Sep 24 05:05:00 2009
config:

NAME        STATE     READ WRITE CKSUM
tank0       ONLINE       0     0     0
raidz1    ONLINE       0     0     0
ad4p1   ONLINE       0     0     0
ad6p1   ONLINE       0     0     0
ad8p1   ONLINE       0     0     0
ad14p1  ONLINE       0     0     0
raidz2    ONLINE       0     0     0
ad6p2   ONLINE       0     0     0
ad8p3   ONLINE       0     0     0
ad6p3   ONLINE       0     0     0
ad14p3  ONLINE       0     0     0
raidz2    ONLINE       0     0     0
ad8p4   ONLINE       0     0     0
ad8p5   ONLINE       0     0     0
ad14p4  ONLINE       0     0     0
ad14p5  ONLINE       0     0     0

errors: No known data errors
freenas02:~# zpool export -f tank0

freenas02:~# gpt show ad8
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD ZFS
1465149135   122094000      2  GPT part – FreeBSD ZFS
1587243135   122094000      3  GPT part – FreeBSD ZFS
1709337135   122094000      4  GPT part – FreeBSD ZFS
1831431135   122094000      5  GPT part – FreeBSD ZFS
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header
freenas02:~# gpt remove -i 2 ad8
ad8p2 removed
freenas02:~# gpt remove -i 3 ad8
ad8p3 removed

freenas02:~# gpt show ad8
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD ZFS
1465149135   244188000
1709337135   122094000      4  GPT part – FreeBSD ZFS
1831431135   122094000      5  GPT part – FreeBSD ZFS
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header
freenas02:~# gpt add -i 2 -s 244188000 ad8
freenas02:~# gpt show ad8
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD ZFS
1465149135   244188000      2  GPT part – FreeBSD UFS/UFS2
1709337135   122094000      4  GPT part – FreeBSD ZFS
1831431135   122094000      5  GPT part – FreeBSD ZFS
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header

freenas02:~# zpool import tank0
freenas02:~# zpool status tank0
pool: tank0
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid.  Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using ‘zpool replace’.
see: http://www.sun.com/msg/ZFS-8000-4J
scrub: resilver completed with 0 errors on Thu Sep 24 14:54:35 2009
config:

NAME                     STATE     READ WRITE CKSUM
tank0                    DEGRADED     0     0     0
raidz1                 ONLINE       0     0     0
ad4p1                ONLINE       0     0     0
ad6p1                ONLINE       0     0     0
ad8p1                ONLINE       0     0     0
ad14p1               ONLINE       0     0     0
raidz2                 DEGRADED     0     0     0
ad6p2                ONLINE       0     0     0
6422553418725777030  FAULTED      0     0     0  was /dev/ad8p5
ad6p3                ONLINE       0     0     0
ad14p3               ONLINE       0     0     0
raidz2                 ONLINE       0     0     0
ad8p4                ONLINE       0     0     0
ad8p5                ONLINE       0     0     0
ad14p4               ONLINE       0     0     0
ad14p5               ONLINE       0     0     0

errors: No known data errors
freenas02:~# zpool replace tank0 6422553418725777030 ad8p2
freenas02:~# zpool status tank0
pool: tank0
state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scrub: resilver in progress, 0.53% done, 5h25m to go
config:

NAME                       STATE     READ WRITE CKSUM
tank0                      DEGRADED     0     0     0
raidz1                   ONLINE       0     0     0
ad4p1                  ONLINE       0     0     0
ad6p1                  ONLINE       0     0     0
ad8p1                  ONLINE       0     0     0
ad14p1                 ONLINE       0     0     0
raidz2                   DEGRADED     0     0     0
ad6p2                  ONLINE       0     0     0
replacing              DEGRADED     0     0     0
6422553418725777030  FAULTED      0     0     0  was /dev/ad8p5
ad8p2                ONLINE       0     0     0
ad6p3                  ONLINE       0     0     0
ad14p3                 ONLINE       0     0     0
raidz2                   ONLINE       0     0     0
ad8p4                  ONLINE       0     0     0
ad8p5                  ONLINE       0     0     0
ad14p4                 ONLINE       0     0     0
ad14p5                 ONLINE       0     0     0

errors: No known data errors

freenas02:~# zpool status tank0
pool: tank0
state: ONLINE
scrub: resilver completed with 0 errors on Thu Sep 24 16:34:09 2009
config:

NAME        STATE     READ WRITE CKSUM
tank0       ONLINE       0     0     0
raidz1    ONLINE       0     0     0
ad4p1   ONLINE       0     0     0
ad6p1   ONLINE       0     0     0
ad8p1   ONLINE       0     0     0
ad14p1  ONLINE       0     0     0
raidz2    ONLINE       0     0     0
ad6p2   ONLINE       0     0     0
ad8p2   ONLINE       0     0     0
ad6p3   ONLINE       0     0     0
ad14p3  ONLINE       0     0     0
raidz2    ONLINE       0     0     0
ad8p4   ONLINE       0     0     0
ad8p5   ONLINE       0     0     0
ad14p4  ONLINE       0     0     0
ad14p5  ONLINE       0     0     0

errors: No known data errors
freenas02:~# df -h
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/md0       88M     76M     12M    86%    /
devfs         1.0K    1.0K      0B   100%    /dev
/dev/da0a      38M     35M    3.8M    90%    /cf
/dev/md1       31M    4.0K     28M     0%    /var
tank0         2.2T    1.9T    339G    85%    /mnt/tank0

freenas02:~# zpool export -f tank0
freenas02:~# gpt show ad14
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD ZFS
1465149135   122094000      2  GPT part – FreeBSD ZFS
1587243135   122094000      3  GPT part – FreeBSD ZFS
1709337135   122094000      4  GPT part – FreeBSD ZFS
1831431135   122094000      5  GPT part – FreeBSD ZFS
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header
freenas02:~# gpt remove -i 2 ad14
ad14p2 removed
freenas02:~# gpt remove -i 3 ad14
ad14p3 removed
freenas02:~# gpt show ad14
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD ZFS
1465149135   244188000
1709337135   122094000      4  GPT part – FreeBSD ZFS
1831431135   122094000      5  GPT part – FreeBSD ZFS
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header
freenas02:~# gpt add  -i 2 -s 244188000 ad14
freenas02:~# gpt show ad14
start        size  index  contents
0           1         PMBR
1           1         Pri GPT header
2          32         Pri GPT table
34  1465149101      1  GPT part – FreeBSD ZFS
1465149135   244188000      2  GPT part – FreeBSD UFS/UFS2
1709337135   122094000      4  GPT part – FreeBSD ZFS
1831431135   122094000      5  GPT part – FreeBSD ZFS
1953525135          32         Sec GPT table
1953525167           1         Sec GPT header

freenas02:~# zpool import tank0
freenas02:~# zpool status tank0
pool: tank0
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid.  Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using ‘zpool replace’.
see: http://www.sun.com/msg/ZFS-8000-4J
scrub: resilver completed with 0 errors on Thu Sep 24 16:40:20 2009
config:

NAME                     STATE     READ WRITE CKSUM
tank0                    DEGRADED     0     0     0
raidz1                 ONLINE       0     0     0
ad4p1                ONLINE       0     0     0
ad6p1                ONLINE       0     0     0
ad8p1                ONLINE       0     0     0
ad14p1               ONLINE       0     0     0
raidz2                 DEGRADED     0     0     0
ad6p2                ONLINE       0     0     0
ad8p2                ONLINE       0     0     0
ad6p3                ONLINE       0     0     0
3452430189445945816  FAULTED      0     0     0  was /dev/ad14p5
raidz2                 ONLINE       0     0     0
ad8p4                ONLINE       0     0     0
ad8p5                ONLINE       0     0     0
ad14p4               ONLINE       0     0     0
ad14p5               ONLINE       0     0     0

errors: No known data errors
freenas02:~# zpool replace tank0 3452430189445945816 ad14p2
freenas02:~# zpool status tank0
pool: tank0
state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scrub: resilver in progress, 2.53% done, 4h33m to go
config:

NAME                       STATE     READ WRITE CKSUM
tank0                      DEGRADED     0     0     0
raidz1                   ONLINE       0     0     0
ad4p1                  ONLINE       0     0     0
ad6p1                  ONLINE       0     0     0
ad8p1                  ONLINE       0     0     0
ad14p1                 ONLINE       0     0     0
raidz2                   DEGRADED     0     0     0
ad6p2                  ONLINE       0     0     0
ad8p2                  ONLINE       0     0     0
ad6p3                  ONLINE       0     0     0
replacing              DEGRADED     0     0     0
3452430189445945816  FAULTED      0     0     0  was /dev/ad14p5
ad14p2               ONLINE       0     0     0
raidz2                   ONLINE       0     0     0
ad8p4                  ONLINE       0     0     0
ad8p5                  ONLINE       0     0     0
ad14p4                 ONLINE       0     0     0
ad14p5                 ONLINE       0     0     0

errors: No known data errors

freenas02:~# zpool status tank0
pool: tank0
state: ONLINE
scrub: resilver completed with 0 errors on Thu Sep 24 18:20:52 2009
config:

NAME        STATE     READ WRITE CKSUM
tank0       ONLINE       0     0     0
raidz1    ONLINE       0     0     0
ad4p1   ONLINE       0     0     0
ad6p1   ONLINE       0     0     0
ad8p1   ONLINE       0     0     0
ad14p1  ONLINE       0     0     0
raidz2    ONLINE       0     0     0
ad6p2   ONLINE       0     0     0
ad8p2   ONLINE       0     0     0
ad6p3   ONLINE       0     0     0
ad14p2  ONLINE       0     0     0
raidz2    ONLINE       0     0     0
ad8p4   ONLINE       0     0     0
ad8p5   ONLINE       0     0     0
ad14p4  ONLINE       0     0     0
ad14p5  ONLINE       0     0     0

errors: No known data errors
freenas02:~# df -h
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/md0       88M     76M     12M    86%    /
devfs         1.0K    1.0K      0B   100%    /dev
/dev/da0a      38M     35M    3.8M    90%    /cf
/dev/md1       31M    4.0K     28M     0%    /var
tank0         2.2T    1.9T    339G    85%    /mnt/tank0
freenas02:~# zpool export -f tank0
freenas02:~# shutdown -r now

Reboot

Check disk size

freenas02:~# df -h
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/md0       88M     76M     12M    86%    /
devfs         1.0K    1.0K      0B   100%    /dev
/dev/da0a      38M     35M    3.8M    90%    /cf
tank0         2.3T    1.9T    453G    81%    /mnt/tank0
/dev/md1       31M    4.0K     28M     0%    /var

 
5 Comments

Posted by on September 24, 2009 in ZFS

 

Tags: , ,

Cache past the auto graveyard

The boys and I went out for another geocache yesterday. We didn’t fond the first one. But we did find the second one. It was a cool cache at the bottom of a big fallen tree. The best part for the boys wad the old “dead” car in the woods. I have no idea how it got so far in the woods. It sure has been there a long time. I couldn’t make out the model but it looks like it was from the 60′s. The boys had fun playing with it.

 
Leave a comment

Posted by on September 20, 2009 in Geocatching

 
 
Follow

Get every new post delivered to your Inbox.