Tag Archive for 'osx'

27
Jan

Xserve disk mirror repair

Looking over the last few posts, I seem to be stuck in a rut. I apologize to readers looking for stories about our remodeling project, progress on Barb’s quilt shop, cooking, or other tales of home. Believe me when I say that I’d much rather be writing about those things! Sadly I’ve been attending the school of hard knocks for the last month, and I want to record some of the things I’ve learned in the hopes of helping other people in similar situations. Heck, it may even come in handy for me in the future, although I sincerely hope not!

The system I’m currently fixing has a high-reliability disk setup. The server has two fibre channel interfaces, each connected to a separate RAID-5 array. The server takes care of mirroring, while the external disk arrays implement the RAID-5. This is all done with an Apple Xserve server and an Xserve RAID enclosure.

It looks like one of the RAID arrays got corrupted during our recent power outage, as diskutility (the GUI tool) is reporting “mirror degraded”. I used diskutil (CLI) and the RAID Admin utility to check the RAID arrays, but they both reported no errors on either side of the mirror. A little time on Google turned up a post which suggested using iostat to determine which side of the mirror had failed, but when I tried rebuilding the mirror using those instructions I kept getting “Error -9980″. Some more digging and it looks like the “broken” side of the mirror was unmounted. I tried several things to get that half of the mirror to reconnect, even going so far as shutting down the server and the RAID and rebooting. No luck, although I was able to get ‘diskutil repairMirror raid-disk slice from-disk to-disk‘ accepted. (It didn’t actually do anything, though. But at least it didn’t error out anymore.)

Finally I noticed that one of the RAID controller cards was behaving oddly. It reported status=okay, but it wouldn’t allow connection from the RAID Admin utility (over the LAN). I had been ignoring it, since I was connected to the other controller, but I decided to connect directly to the flaky one and see if there was something it wasn’t reporting to the controller I had been using to diagnose the problem. I found that the IP address of the dodgy controller wasn’t correct, and the passwords for monitoring and management access weren’t working. I shut down the server again, and this time when I shut down the RAID I pulled the power cords. (I had found out that without pulling the power cords, the array isn’t actually powered off; rather, it’s in “sleep” mode.) I powered up the RAID (but not the server!), then reset the RAID controller (just the password reset, not the full-blown one). Between power-cycling the RAID and resetting the controller, I was able to get the RAID Admin utility to connect to the array. Then when I rebooted the server, the disk mirror started rebuilding without any other action on my part.

The mirror seems to be rebuilding right now. The RAID arrays are 1.225 TB (1.1 TiB) each, with ATA100 disks. (It’s a few years old.) At the rate it’s been going, I expect the rebuild to take about 11 hours total.

13
Jan

Burning ISO images on a Mac

I burn ISO images on my Mac fairly frequently, but not often enough to have the process committed to memory. In the past I’ve always followed the instructions I found in a macosxhints post. It works, but it has always seemed a little convoluted to me. I found a much simpler method today:

  1. Insert a blank CD/DVD.
  2. In Finder, double-click on the ISO image you want to burn.
  3. Open Disk Utility (in Finder / Applications / Utilities / Disk Utility). Depending on your settings, either of the previous steps might open Disk Utility for you.
  4. In the left pane of Disk Utility, select the ISO image (e.g. “7.2-RELEASE-i386-disc1.iso”, not the “FreeBSD_Install” contents of it).
  5. Click the Burn icon on the top of the window (or Apple-B on the keyboard, or via the menu select Images / Burn ).
(Original instructions below. Thanks for the tip, Nick!)
  1. Open Disk Utility (in Finder / Applications / Utilities / Disk Utility).
  2. Make sure nothing is selected in the left pane of Disk Utility (in case you had it open already).
  3. From the menu, select Images / Burn (or Apple-B on the keyboard).
  4. A file requester will pop up. Navigate to the ISO image you wish to burn.
  5. Insert a blank CD/DVD if you haven’t done so already.
  6. Click Burn.
  7. Done!
14
May

Ejecting stubborn Mac OSX disks

I’ve been using a Mac for several years, and I’ve had in intermittent problem: about once or twice a year, a CD-ROM will get “stuck” in the drive. In the past, I’ve only been able to eject the CD by rebooting my Mac. I’m sure a Windoze user would rejoice at only being required to reboot once or twice per year, but I find it annoying. Just a few minutes ago, I popped a recordable CD into my drive and got the following error:

"This disc cannot be used because it is not recognized"

So now I’ve got a blank (useless?) CD in my drive, but there’s no CD icon in Finder to eject, and the eject button on the keyboard isn’t causing the CD to eject either. To the Internet, Batman! A little searching on Google turned up a helpful post: Use disktool and System Profiler to eject stubborn CDROM discs. The short instructions (excerpted from the article) are:

  1. Run the System Profiler (Apple menu -> About This Mac -> More Info).
  2. I happen to know that my ComboDrive is an ATA device by Matshita, so I just clicked on the “ATA” section under “Hardware” (left pane of System Profiler), then looked for a Matshita device in the ATA Device Tree (right top pane of System Profiler). Clicking on the Matshita device in the top right pane shows detailed information in the bottom right pane: I needed to know the “BSD Name” of the drive. In my case, it’s “disk2″.
  3. Open a Terminal window and enter the following command:

    disktool -e disk2

Poof! Out comes the CD! That just eliminated about half of my annual reboots on my Mac. :)

18
Dec

Delicious Library and boardgames

I’ve been using Delicious Library to catalog our DVD’s, CD’s, and books for almost two years. It’s great for keeping track of your library, especially if you loan your books and such out to your friends–just drag the item being loaned onto the person to whom it’s being loaned.

DL will also keep track of video games, which doesn’t do me a lot of good since I don’t own any. But I do have a modest collection of boardgames that I’d like to catalog (and track!) in DL. I sent this feature request to Wil Shipley soon after I started using DL. Lo and behold, this morning I read the following (from “Transitions and Epiphanies”, about 1/3 of the way down):

…I start asking if the world even needs an app that catalogs books and DVDs and now boardgames when we could all be under five feet of water in a few years.

(Emphasis added.)

I’m running the current version (1.6.6) of DL, and there’s nothing to support boardgames in there, so I think this is a new feature being added to the upcoming version 2. I’m firing off an email to Wil begging to beta test the new version.

28
Nov

Difficulty upgrading to Leopard 10.5.1

I upgraded my PowerBook G4 to OS X “Leopard” yesterday. (Thanks, Kasandra!) Looks pretty cool, but one of the first things it tried to do was auto-update to 10.5.1. The system would present a “You must restart to apply this update” message, but upon restarting the system would hang while displaying “Configuring Installation”. After three attempts (and concomitant reboots) I finally gave up and asked Google for help. It turns out that there is a (much larger!) “standalone” 10.5.1 upgrade available from Apple’s Mac OS X 10.5.1 Update page. This did the trick, so now I can actually start exploring Leopard!

The best new feature I’ve seen so far is the Cover Flow view in Finder, a very slick way to browse your files!

28
Mar

Mac OSX Finder: “The volume cannot be found”

I love Mac OS X, but every once in a while I manage to screw up one (or more) of the network folders I dropped into the sidebar. (On this particular occasion I changed my mind after I started opening a network folder and clicked “Cancel” on the keychain access prompt.) Now every time I click on the network folder in the sidebar of Finder I’m getting the following message: The volume for “network-folder-name” cannot be found.

volume-cannot-be-found.png

I’ve had this happen before, but I can never remember how to fix it. A quick search turned up this thread which suggests blasting the entire com.apple.sidebarlists.plist file, but that’s a bit harsh if you have a dozen folders in the sidebar and only one or two of them are broken! Instead I chose to edit the plist file and delete the broken folders.

Double-clicking on ~/Library/Preferences/com.apple.sidebarlists.plist should open the Property List Editor. (If it doesn’t, see “to Diana” comment on this post.) Click on the exposure triangles for Root, useritems, and CustomListItems. Find the broken folder–they’re in the same order that they appear in the Sidebar. You can click the exposure triangle for a numbered item and see if the Name property matches your broken folder. Once you’ve selected the correction Dictionary item, click the Delete button:

plist-editor-sidebar-fix.png

Now if you open a new Finder window you’ll notice… That you still have the same problem. Doh! You need to restart Finder. Click on the “Apple” menu (top left of the screen) and choose “Force Quit…” (or just hit Apple-Option-Escape on the keyboard). Select the Finder application and hit the Relaunch button.

This doesn’t really fix the problem–the broken folder is gone, not repaired. But it’s better (imo) than whacking the entire Sidebar preferences file.

05
Sep

SMB file sharing doesn’t support Subversion on Mac OS X

I’ve received several queries about the SMB patch that I mentioned in my svn-on-osx post. Unfortunately, when I went hunting for the patch the second time around, I wasn’t able to find it. But I was finally able to solve my OSX/Subversion/scplugin problems by using the svn+ssh transport, thus:

svn+ssh://username@some.server/path/to/repository

Once I gave up on SMB file sharing, I’ve had no trouble with scplugin or Subversion on Mac OS X.

20
Apr

Testing scplugin on a local repository

On some earlier posts (tagged scplugin) I was trying to get scplugin working on my Mac (OS X 10.4.6). It seems like the problem may be due to subversion (svn) failing to communicate with my SMB-based repository. To test that, I made a local repository and created a test project within it.

First, let’s make sure DarwinPorts is up-to-date:

$ port sync Error: /opt/local/bin/port: port sync failed: sync failed doing rsync

Doh! I always forget to sudo that command…

$ sudo port sync Password: $ sudo port selfupdate DarwinPorts base version 1.200 installed Downloaded DarwinPorts base version 1.211 Configuring, Building and Installing new DarwinPorts base selfupdate done! $ port version Version: 1.211

(Just because I’m paranoid…)

Okay, now let’s see what version of svn I have installed, and compare that to what’s available from DarwinPorts:

$ svn −−version svn, version 1.3.0 (r17949) compiled Apr 4 2006, 11:47:42 $ port info subversion subversion 1.3.1, devel/subversion (Variants: mod_dav_svn, no_neon, no_bdb, mac-os-x-server-mod_dav_svn, tools)

Yep, the 1.3.1 version has made it into DarwinPorts so let’s upgrade that:

$ sudo port upgrade subversion −−−> Fetching subversion yadda yadda yadda −−−> Installing subversion 1.3.1_0 −−−> Activating subversion 1.3.1_0 −−−> Cleaning subversion $ svn −−version svn, version 1.3.1 (r19032) compiled Apr 20 2006, 15:31:38

(Paranoia again…)

Cool, the tools are up-to-date, so now it’s time to make a new local repository.

$ svnadmin create /path/to/local/repository $ svn import -m “Creating testproj” testproj/ file:///path/to/local/repository Adding testproj/some_file Committed revision 1.

Now let’s checkout a copy of the project and see how it looks in Finder.

$ svn checkout file:///path/to/local/repository/testproj svn: URL ‘file:///path/to/local/repository/testproj’ doesn’t exist

Oops, looks like I screwed up the repository import. I’ll just check out the whole repository for now, and rtfm for help with project importing later.

$ svn checkout file:///path/to/local/repository/ A svn_repository/some_file Checked out revision 1.

A quick perusal with Finder doesn’t show any visual svn status indicators, but after I made a change to the file I got to see scplugin’s “red bang” over the file icon, indicating that the file was out of sync with the repository. Woo hoo! Right-clicking or control-clicking on the changed file presents me with a Subversion context menu, from which I selected commit:

Sending some_file Transmitting file data . Committed revision 2. Process finished with exit status 0.

That looks pretty good. Unfortunately, scplugin hasn’t changed the status indicator in Finder–it’s still showing the red bang, even though the working copy and the repository are now in sync. Relaunching Finder doesn’t change this. :( Hmm…

Well, that’s some progress–at least subversion is working! I’ll play with scplugin some more and see what I can find out.

13
Apr

OSX and Windows simultaneously!

The possibilities for an Intel-equipped Mac just keep improving! The headline from an article in today’s New York Times tells it best:

Run Windows and Mac OS Both at Once

Boot Camp by Apple was great news last week, and it will still have its uses, but the news out of Parallels about running OSX and Windows simultaneously just clinched my family’s next hardware purchase–an Intel Mac Mini will be the next system to grace our desk!

04
Apr

Mac OSX Subversion with an SMB repository (again)

I just applied the Mac OSX 10.4.6 update, hoping that it would solve my problems viz a viz committing changes to an SMB-based subversion repository. Alas, I still have the same trouble with svn commit. In addition, the new update undid scplugin’s changes to Finder which indicate a file’s svn status (e.g. current, newer working copy, etc). I guess that’s not such a big deal, since the svn status is useless without the ability to commit my changes. :(

Version 1.3.1 of svn came out a day or two ago, so let’s see if that does the trick.
Downloading Mac binary svn client v1.3.1
Installing…
Testing…


515$ svn –version
svn, version 1.3.1 (r19032)
compiled Apr 4 2006, 00:30:54

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles ‘http’ scheme
- handles ‘https’ scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles ’svn’ scheme
* ra_local : Module for accessing a repository on local disk.
- handles ‘file’ scheme

516$ svn commit -m ‘Changed script to be user-independent’ my_script
subversion/libsvn_client/commit.c:873: (apr_err=5)
svn: Commit failed (details follow):
subversion/libsvn_subr/io.c:2199: (apr_err=5)
svn: Can’t write to file ‘/Volumes/svn/grading_system/db/transactions/4-7.txn/rev’: Input/output error

ARRRRRGH!

Oh well, I guess it’s time to try the (old) patch for SMB access, which means building Subversion from source. Darwin ports collection, here I come!




September 2010
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930  

Tags

a wok for all seasons abramoff accessibility acetylene active directory activism adodb aerial photo afrofunk aim4tree air america airport express alite alito amtrak andante andy antenna anti failure any browser apache appetizer apple apple pie applescript arden arcade arden park ariana arnold artichoke ashland astronomy attic attika audio avid reader backup baen bart bash batch bathroom bbq bee beef begonia bgg bike bike hikers bike journal bikejournal biketalk bill oreilly bittorrent blacklist blog bloggercode blogroll blueberry boardgamegeek boardgames bonjour book bookcrossing boot failure bootcamp borderline chaos bugmenot bush business card butter cabinetry caira caitlin california callsign candamir caroline carpet cat cateye cdrom celebration cellular phone century cfengine cheese chicken chico chile chili chimney chinese chipotle chocolate christmas city bikes civilization cjd claire club club fed co op coconut coffee comfort food community computer concord congress conquest conservation consumer reports copyright costco crazybikerchick crepe crock pot cruftbox css csus curl currency custard cvntrak dagoba daniel goetz darwinports database datarescue date format death delicious monster democracy now Democrat demolition dessert dhcp dickens diff disaster discrimination discworld dishwasher disk mirror diskutil diskutility diskwarrior dixie belle dock doors downing street memo drm dryer drywall dtv dump ed burke eff eggs eject election electric car electric truck electrical electricity elvgren emacs email energy efficiency eric meyer esr etext euthanasia facebook family faq faux news fcc feed feedreader fence finder firefox fireworks first4internet first amendment fishmeal flash flickr flooring fondue foreign exchange foundation fox and goose framing freebsd freedback freetds fsck fundraiser fyq garage garden geek geotag geourl ginger gnutar go gonuls google google earth google maps gpl gracenote graywater greek green group concat gtd gunthers gutters gwbush gymnastics hacking halloween ham ham radio handspring hardwood harry potter headmeta heimdal high speed photograph high tech inv hoax hobbies hobby hodgins holiday holly home power magazine horcrux houseblogs how to html https humor hvac ilovejackdaniels imac impeach init inspection insulation intel internet iostat ipod ipodder iq iraq isight iso itunes ivins iwantsandy java city javascript jean reno jet lag joint chiefs joseph jott journalized blue judges cup juliette binoche kale kctc kerberos khs kimkerry kitchen kyocera la salles la times labor landscape laundry law leatherbys legal lego leopard lhc liberal library linkedin ljurban lodi logic logo lungren lynx maaloufs mac macaroni macbook mafc mailinator make.conf malware map marin markdown martin yan mason media media clip media reform meetup metric mexican microsoft mike comfort military milonic mindstorms mlk model railroading modoc hall monterey morning sedition motorcycle movie moving mssql munchkin murray mushroom music mynetflix mysql n3jim nagios naked lounge neon nerd score netflix network new urbanism new year New Yorker nofollow nut nutella oatmeal obama obcz occidental occupation omni openssl oracle organic osx owp paint pair palast palm panasonic parallels party patch peak adventures peak oil pear pedestrian village perl petaluma php ping pingback pingomatic pingomation pingqueue pirate pl sql planet bike plasma playroom entertainment plugin plugin:preview theme plugin:text control plugin:ultimate tag warrior plumbing podcast podsite politics portaudit portmaster ports portupgrade postfix potato powerbook Pozsars printer programming project gutenberg pryde punk puzzle qiana qrz quilt quilt shop quiz quote r5 records racism radio RAID railroad recent comments recipe redalt remodel repairmirror resaurant resolution restaurant restore review richmond rio americano robotics roger niello ron montana roof rootkit rss sacbee sacog sacramento sacramento spotlight magazine salad samba san francisco sandwich santa cruz scam scandal school days scplugin screen security session report shakespeare shuffle sigma siriradha sitemap slim jim snl snopes social social network software soma somafab sonicchicken sonicchicken blog sony spam spam karma spellcheck spinach spinner spirit spoiler etiquette spring hill cheese sql sqlserver stairs standards statcounter stephen king stop loss stucco stunt subversion sudo sudoku superbowl superhero supreme court sushi svn sysadmin tacoma tags plugin takara technology telephone television template terms and conditions textcontrol thai kitchen thanksgiving the well seasoned wok theater theme theme:borderline chaos theme:elvgren theme:elvgren wordpress google code theme:fluid blue theme:fullwidth theme:head theme:journalized theme:journalized blue theme:psycho theme:redoable theme:sharepoint like theme:simple green theme:spirit theme:steam theme:wuhan theme:yadda theme switcher thomas tigris euphrates tile tinfoil hat toc tofu tower theater training transit transit oriented development tribute u haul uneasy rhetoric university village unix ad notes ups van zant veal veterans day video vie viking hobby vote smart w3c wall warboss washer washington post weather web web developer web server wikipedia windows windows server 2003 wishlist woodworking wordpress workplace wpblacklist wpgatekeeper wsj xserve yaaarr yard