Slashdot Mirror


Turning a PC into a Firewire-Based SAN?

Rachovenov asks: "So I've finally plunked down the money for one of those new, shiny Powerbooks, but they don't have much storage. My old PC is just sitting here with 2 identical 250 gig disks spinning away and an empty firewire port. There's even a hardware RAID controller in there somewhere. So why not use it as a low cost RAID 1 array for the Powerbook when I'm at home? Has anyone done this? How could I make it so that Mac OS X just sees it as a couple of Firewire drives?"

50 comments

  1. Re:Errrr... by override11 · · Score: 0, Flamebait

    I believe he wants to turn his PC into a dum-firewire raid box for his pa-pa-pa-Powerbook. As in: Firewire from his Powerbook to his Pc, so the Mac see's it as a storage device. I dont think there is a way to do this now.

    --
    No I didnt spell check this post...
  2. Oh... crap. My bad. by Ayanami+Rei · · Score: 2, Interesting

    You wanted the PC itself to be act as a firewire drive?

    Good luck. Macs have this built into the firmware, not PCs. I don't think it's even on anyone's radar. But I don't imagine it's too difficult to write something that could do the job using libraw1394 and the SBP2 documentation.

    Good luck!

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  3. iscsi by gyratedotorg · · Score: 1, Informative
    --
    Gyrate Dot Org - "Where high-tech meets low-life"
    1. Re:iscsi by tchuladdiass · · Score: 1

      That was going to be my suggestion.
      Just to clairify for the original poster, iSCSI works similar to network block device (NBD), in that it allows a machine running an iSCSI "target" daemon to serve up a chunk of it's storage as a virtual drive to a client running an iSCSI "initiator" driver. Once set up, the client's OS sees the block(s) of storage as if they were directly attached SCSI disks. The chunk of storage being served up by the target daemon can be a physical partition, a logical volume, or in some cases a regular file containing a disk image.

      Now if you want this to go through your firewire port, just set up networking over firewire and you're all set. Note, however, that the iSCSI virutal drives are only available after the OS is booted, so it is difficult to get them to be used as as boot device (although I've done this with Linux clients, just do a network boot and load up the appropriate drivers on your initrd image) The other thing you can do is get an iSCSI HBA (host buss adapter), which is nothing more than a network card with a built in tcp/ip & iscsi stack running on a dedicated processor. Not sure if this is available for the powerbooks, though.

    2. Re:ISCSI by Kalak · · Score: 2, Informative

      You'd have to do this with linux as the target and get an OS X initiator program (iSANmp is one I just found via google for OSX). Since the iSCSI device exported would have to be HFS/HFS+, you'd have to get the driver for linux if you want to read it from the "server".

      Looking at http://www.ardistech.com/index.html?id=12&lang= looks interesting, but this is new territory for me (just found out that the iSCSI drive enclosure we were looking at for work to connect to some Linux servers was way out of our budget). You could add this to IP over Firewire to get basically what your looking for (in theory). Gigabit would still be faster than firewire.

      --
      I am, and always will be, an idiot. Karma: Coma (mostly effected by .hack)
  4. Re:Errrr... by Student_Tech · · Score: 0, Offtopic

    I haven't seen anything like that either.

    I think it would be end up being easier to just use the ip over firewire stuff and just make it appear as a network drive. (or any network, just said firewire because has a listed max of 400 Mb/s versus 10/100 ethernet having a 100Mb/s max)

    Either that or just buy some $50 (or less) firewire enclosures.

  5. Firewire by Cthefuture · · Score: 3, Interesting

    Pop a gigabit ethernet card in your big machine and use a regular network connection. No need to get complicated with Firewire networking or whatever.

    --
    The ratio of people to cake is too big
    1. Re:Firewire by Anonymous Coward · · Score: 2, Informative

      GbE is faster than Firewire too. Well, faster than FW400. FW800 would be a toss-up since GbE has more protocol overhead.

      You probably won't get the full benefit of FW800 or GbE without a machine with PCI-X, PCI-E or similar. In that case GbE will do as good as anything (and cheap).

    2. Re:Firewire by Matt+Clare · · Score: 1

      This is my configuration. Gentoo server with 600GB of storage connected to my 802.11G home router and a $25.00 DLink GbE card was added so I can connect my PowerBook to it.

      Server (with all it's fans and all) is in the basement, PowerBook stays on the main floor. I can connect everywhere in the house with my WiFI and I can get GbE speeds wherever the 25ft Cat6 cable can go. Firewire is generally good for 6ft.

      To connect I don't use samba. Instead I use version 2 (not 1 - very important!) of Netatalk http://netatalk.sourceforge.net/ and NFS for my all media drive. Netatalk 2 has a lot of features and overhead, NFS has few features but a lot of speed.

      One small note: OSX will see the 1GbE connection as a better route than your WiFi - so I'll have to turn on IP masquerading.

      --
      .\.\att Clare
    3. Re:Firewire by Glonoinha · · Score: 3, Funny

      Yea ... if only there was a way to make a PC running Windows serve up those files over Ethernet to other computers, perhaps by letting those other computers map to a share or something.

      Naw, that would never work.

      --
      Glonoinha the MebiByte Slayer
  6. Re:Errrr... by Kalak · · Score: 2, Insightful

    Errrr...Did you read the question at all? That is not an answer to the question. He's not looking for a Firewire disk container, but to turn a PC into a firewire device.

    AFAIK, IIRC, the only way to do this would be to raid the drives on the PC and export them via NFS or SMB and set up TCP/IP over firewire.

    --
    I am, and always will be, an idiot. Karma: Coma (mostly effected by .hack)
  7. Re:RAID by TheCrip · · Score: 2, Informative

    Not unless he's running RAID 1. Not everyone is running a stripe.

  8. Re:RAID by Anonymous Coward · · Score: 0

    True, I didn't read carefully.

  9. TCP/IP over firewire by Anonymous Coward · · Score: 1, Insightful

    TCP/IP over firewire.

    run it as a samba server, but connect through the firtewire. google it...it'll work and be fast.

  10. Here's what I would do -without googling of course by numbski · · Score: 2, Informative

    Do a minimal MINIMAL Linux or FreeBSD install. I mean just as small as you can get, but include NFS and IP-over-Firewire.

    That's about it really, set up a nice link to mount your device when you come in, plug in your firewire. Heck, I think you can configure the automounter to detect when the firewire network becomes available and mount it for you. That's really all there is to it. Should work out pretty well. On a side note, if you plug in a third drive, even if your SCSI card doesn't support it, you could use Vinum on FreeBSD or LVM on Linux to add capacity, and at least on Vinum you can do RAID5 or RAID10. It won't be as fast as hardware RAID, but hey when you're going cheap, you use what you can. Besides, I somehow suspect that you're wanting capacity over speed anyway, and if that's the case, use the best redundancy you can, right?

    --

    Karma: Chameleon (mostly due to the fact that you come and go).

  11. Don't - build a server instead by JackAsh · · Score: 5, Interesting

    I hate to point it out, but that is not the solution you are looking for (waves hand).

    You already have a PC, and the two disks built inside. Mirror or stripe the drives in the system (your choice, I'd got for a mirror) and then install Linux or BSD or whatever server-ish operating system you want on the box with the right services (Samba, NFS, whatever). Connect to it with IP over firewire, Ethernet, or gigabit ethernet if the old system supports it (the laptop does).

    This will allow the system to keep running when you are not around, will allow you to use the disk over that fancy wireless connection on your new Po-po-po-powerbook!. If you put SSH on the box I'm sure you'll figure out how to access your home disk from the road (for bonus points roll your own remote file access solution based on some creative web based interface running on port 443 that no one will ever block).

    Last but not least, you'll be able to access the disk from the PowerMac system you'll eventually buy when you realize that the Powerbook is just a touch slow, the keyboard is not so comfortable, and the trackpad is complete crap (mind you, I have a 17" PB myself and love it to death, but all of the above are true and that's the reason I use a Bluetooth keyboard and mouse with it when it's "docked" at home).

    -Jack Ash

    1. Re:Don't - build a server instead by jannesha · · Score: 1
      [jannesha@uma ~]$ grep 443 /etc/services
      https 443/tcp # MCom
    2. Re:Don't - build a server instead by Anonymous Coward · · Score: 0

      That's why it won't get blocked. The original poster was not saying it's unused. He was saying firewalls don't block it. Because it is in common usage. Good to see you can use the cli already, though.

  12. Has anyone done this? by captnitro · · Score: 3, Informative

    See a previous Slashdot story entitled Home-brewing a 1.2TB IDE to Firewire Monster. He constructed a huge firewire "disk" out of a nice case and most importantly, a couple firewire-IDE bridges. It's not PC-based, however, it's a dumb array of drives.

    1. Re:Has anyone done this? by Marillion · · Score: 1

      As near as I can tell, the article builds six individual firewire disks. Since Mac OS X has ability to create various RAID configurations, I presume that's how he did it.

      --
      This is a boring sig
  13. Custom distributions by Matthias+Wiesmann · · Score: 3, Interesting

    As people have more and more old machines lying around, having a live CD with a single purpose operating system. I think there are already distributions that transform a PC into a router, but changing an old PC into a firewire hard drive enclosure looks like an interesting idea.

    One advantage of this approach over installing a file-server is that the hard drives are seen directly by the OS, this means you can boot of them, do low level manipulations (like formatting them), directly from the client machine.

    One such distribution I would like to see (one can dream), is that changes an old PC into a advanced dock for a laptop. Typically, a thing I can connect my laptop to, and I get to use the peripherals of the PC: hard-drives, CD-drive, keyboard, mouse, heck even the floppy drive.

    The goal would be to have all those devices recognised as being devices attached to the laptop, i.e no client server protocol to share them - basically the PC would pretend to be a firewire or USB hub with a lot of devices attached.

    Maybe I would even make sense to use the sound-card of the PC. Not so long ago I would have suggested also to access the display of the PC and use its CPU as a powerful GPU, but given the graphical cards one can now find in laptops, this makes no sense.

  14. What's with the ._* files with macs using samba??? by Stoutlimb · · Score: 1

    I have a mac geek on our PC network, and every time he saves a file onto a network share, it also saves a useless file next to it with the same file name, but a dot-underscore before it. Is there any way to get him to stop doing this short of beating him with his own powerbook?

    Bork!

  15. Re:What's with the ._* files with macs using samba by SkipRosebaugh · · Score: 2, Informative

    That's for the resource fork. That file may be useless to you, but depending on what type of file it is, it may be quite important to him. Don't delete them before you understand the nature of the resource fork.

  16. gotta agree with the rest by sootman · · Score: 3, Informative

    I've done a fair number of tests comparing speeds from moving files via 10/100, gigE, firewire, and IP over FireWire. Long story short: 100bT and anything over firewire are neck-and-neck. Gigabit Ethernet blows them away. So set up the box as a server, using gig-E if possible. Not sure about the PC, but you can connect two gig-E Macs with a straight (*not* crossover) cable and they'll automagically connect properly and you get gig-E speeds--like moving a 650 MB disk image in 30 seconds instead of 90 seconds over 10/100, IP-over-FW, or to a firewire disk.

    Yeah, it'd be nice if you could just put the PC into target disk mode like a Mac, but you can't. There are some advantages and disadvantages, but I think the advantages of a server--even ignoring the whole "server setup is easy, target disk mode with Intel hardware is just about impossible" thing--would win over using it as an attached disk.

    Among other things, you can tuck it anywhere--it doesn't have to be a firewire cable's length away. And since it's networked based, it's easier to share, and can even be accessed (thought more slowly) via wireless.

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
    1. Re:gotta agree with the rest by digitalsushi · · Score: 1

      two gig-E Macs with a straight (*not* crossover)

      Either should work. Gig ethernet PHY often support Auto-MDIX.

      --
      slashdot: where everyone yells sarcastic metaphors to themselves to understand the issue
    2. Re:gotta agree with the rest by Anonymous Coward · · Score: 0

      Either should work. Gig ethernet PHY often support Auto-MDIX.

      I thought AutoMDIX was part of the GigE standard. I haven't seen anything GigE without it.

    3. Re:gotta agree with the rest by justforaday · · Score: 1

      Even if there were a card that didn't support it, it would be a moot point since his powerbook supports it (only one end needs to sense that it should flip modes).

      --
      I'll turn into a supernova and burn up everything. Well I'll turn into a black little hole and you'll turn into string.
  17. Re:What's with the ._* files with macs using samba by cloudmaster · · Score: 1

    If you're running samba as a file server, you can set those files to hidden or veto them relatively easily. I'm not sure how to turn them off on the Mac side, so I just set them to hidden on the server.

    If you're running windows servers (that's just weird), then I'm not sure what to tell you. Set up a scheduled task to get rid of them...

  18. To code something in Bonjour technology? by lordliuxin · · Score: 1

    http://developer.apple.com/macosx/bonjour/ How about to create a "file system exporter" in Bonjour technology, that should be great for Macs.

  19. Exactly what you want by The+Iconoclast · · Score: 4, Informative
    I found this a while ago at http://www.linux1394.org/:

    http://oss.oracle.com/projects/endpoint/ - it turns a linux machine into a SBP-2 endpoint.

    --
    Quando Omni Flunkus Moritati
    1. Re:Exactly what you want by bruciferofbrm · · Score: 2, Informative

      Interesting in its own right. But seems to be under documented on the site at least. And it is from 2003.

      If I had firewire I'd play with this too. Maybe it is time to pick up a couple of multi port firewire cards.

      But, so far (at first glance) the lack of documentation, and the age of the release may not make this an easy solution to impliment.

  20. Re:What's with the ._* files with macs using samba by Stoutlimb · · Score: 1

    He has no use for them, and they don't seem to do anything special. The only things he does on our peer to peer network is move around some word files, zip files, pictures, and dwg files. He would really like to play nice on our network and not leave these files, but he has no idea how. He can't even delete them himself, because his powerbook refuses to show him these files.

    I can run a scheduled delete script on the network's PC's, but is there anything he can do, short of buy a PC? It really is obnoxious of macs to do this by default on PC networks.

    Bork!

  21. Drive cages by RabidMonkey · · Score: 3, Informative

    I had the same space issues with my Toshiba notebook ... Until someone pointed out USB 2.0 drive cages.

    I snared 2 ($25 a piece) and put my 2 120gig drives in. Plug em in, Windows (I know you have a Mac, but it should be similar I'd hope) detects them and I've got 240gig of space on top of the 20gig that my laptop has. easy as that.

    There are also firewire cages out there if you're hooked on that.

    Cheap and easy. The only downside I've found so far is that, be cause the drives are in cages and independantly powered, they never stop spinning until you unplug them. I don't see the need to have my drives spinning all the time, especially when my laptop isn't even there, so I put them on a power bar to make turning them off easy when it's time to take the laptop on the road.

    $0.02 CDN.

    --
    We emerge from our mother's womb an unformatted diskette; our culture formats us. - Douglas Coupland
  22. Re:What's with the ._* files with macs using samba by Zachary+Kessin · · Score: 2, Informative

    Its how mac OS stores some metadata for the finder. (File labels and such) the best bet would be to use find from a crontab to go and get rid of them every so often.

    --
    Erlang Developer and podcaster
  23. Re:What's with the ._* files with macs using samba by itomato · · Score: 1

    What's so obnoxious?

    Ewww! A Thumbs.db file on my drive!!

    Ick! What's this in /home?! .gtkrc! BLAST!

    Gasp! Here in /etc, too?! Is there no shame?!

    Are they duplicate files, or little 30 byte file descriptors? GIMP used to burn me with that damned .xvpics directory, but then, it saved my ass a time or too..

    Is it that big of a deal? The script does it's job, so what't the beef?

  24. Re:What's with the ._* files with macs using samba by Stoutlimb · · Score: 1

    "What's so obnoxious?

    Ewww! A Thumbs.db file on my drive!!
    "

    I can turn off the creation of thumbs.db files if I'm visiting someone's non-pc SMB network with my laptop. My friend can't stop his mac from creating a fork file for every file he copies across the network. He would like to avoid the hassle of explaining them and how to get rid of them every time he connects to someone else's network. Especially if the peer to peer network is run by some clueless people. He would rather just disable his mac from creating these files on network shares, because he never needs the files anyways, and its a hassle for him to delete.

    Do you understand?

  25. Anyone done this or a server for A/V Editing? by birdman666 · · Score: 1

    Does anyone have and explicit guide for something like this that works for editing of DV content in Avid or Final Cut Pro? Right now I do all my work off of individual firewire drives, but I'm tired of the clutter and worrying about one of the drives failing and not having sufficient backup for it. I have a couple of IDE drives lying around, and would love to set up something similar to a RAID 5 setup so I could sleep a little better at night. Some people have mentioned a server setup with GigE, which would also work, but does it actually work like a local disk would with picky Avid software? What kind of boxes are you guys building for it (mobo, processor, ram, OS, etc)?

    --

    Nothing from nowhere I'm no one at all
  26. ISCSI by bruciferofbrm · · Score: 3, Informative

    I also suggest ISCSI.

    I know you want to bank on your firewire connections. Go for it.

    Iscsi would give you the ability to connect to shared block devices in your machine via TCPIP networking. If you do that over firewire, or Twisted pair 10/100, or wireless, you can leverage alot more then a direct connection. For one, you would not have to be within what ever limit is imposed by your firewire cabling situation.

    ISCSI can be implimented entirely in software. There are ISCSI target (host) software solutions that let you turn a PC (X86 is what I know and have played with) into a destination (hosting the drives). You can allocate the drives as you desire. And it is fast.

    However, I am not certain on the MAC software side of the deal. There is one company (at least) called ATTO who claim to have a software ISCSI initiator called XTEND SAN. But it seems they have been talking about it for a while, with no release. ARDIS also claims to have one, but only for OEM companies.

    I have played the software route on Windows and Linux. It is fast and cool to do it all in software. A hardware ISCSI initiator (think scsi card combine with ethernet card) costs way to much for the casual user ($500 +).

    And yes, none of this has any meaning to you if there is no software ISCSI initiator for your mac.

    (umm.. you also didn't really state what your OLD PC really is.. Is it a PC in the Windows/X86 sense? Or is a PC in the sense of another Mac? (do we all naturally assume PC means Windows?)

  27. Re:What's with the ._* files with macs using samba by Anonymous Coward · · Score: 1, Funny

    > Do you understand?

    With a slashdot id of 143245 you either got your account from ebay or they tried that hibernation thing with you.

    This place is full of Mac and Linux Zealots comparing the latest OSX/Linux release to Win3.11 or Win95

  28. Mod parent up... by Anonymous Coward · · Score: 1, Insightful

    it's the only post in the whole thread that actually answered the question!

    1. Re:Mod parent up... by Nutria · · Score: 1

      it's the only post in the whole thread that actually answered the question!

      Very true. But some questions have tunnel vision, though, or already have the answer in mind.

      A better question would have been to ask, "How can my Powerbook make best use of the 2x 250GB drives in my PC?"

      --
      "I don't know, therefore Aliens" Wafflebox1
  29. Re:RAID by poolmeister · · Score: 1

    ...the RAID isn't going to give you anything. Having a single 500GB drive instead of spreading your data across 2 drives would be more convenient. I do agree with others here that using GbE instead of firewire would be the easier, faster & cheaper option. Unibrain http://www.unibrain.com/1394_products/1394_network ing/firenet_mac.htm has a IP over FW solution for the Mac but it costs just as much as a GbE card.

    --
    CN=poolmeister.OU=lurkers.CN=slashdot
  30. Re:Errrr... by override11 · · Score: 0, Flamebait

    umm, how can I be redundant when I am the first to post a reply saying this? Stupid mods =)

    --
    No I didnt spell check this post...
  31. Re:RAID by GraemeDonaldson · · Score: 1

    500GB? You're thinking of RAID0 then, where data is striped across disks. RAID1 is a mirror set, i.e. both disks contain identical data.

    --
    I think, therefore I am. I think?
  32. Re:RAID by poolmeister · · Score: 1

    Exactly... That's what I meant, but was too lazy/dozy to fully explain (or correct the formatting of the post). :/

    --
    CN=poolmeister.OU=lurkers.CN=slashdot
  33. Re:What's with the ._* files with macs using samba by Stoutlimb · · Score: 1

    Well, here it's a peer to peer XP network in a small office. How would I veto those kind of files on the network layer, so they don't get transmitted? It's a temporary fix, but it would help in this office.

    Since my colleague with his powerbook does move around a lot, and connects to various networks big and small, is there any awy he can put a filter on his outgoing network traffic to block these files? He really doesn't want the hassle of having to delete them after the fact on someone else's network, since his mac can't see the files in the first place. And he also doesn't want to explain to some clueless office manager why his mac peppers their computers with ._ files, and why he should have access to another machine to delete them across the various machines on the network. As a travelling consultant with a mac, the only thing that makes good business or pr sense is to prevent these files from going out in the first place, or have some way his mac can auto-delete them after.

    Do you know of any simple solution on the mac that he can implement?

    Thanks.

  34. Re:What's with the ._* files with macs using samba by cloudmaster · · Score: 1

    I'm not sure, but I'd suggest digging around in google to find a way to disable compatability resource fork generation or somethign along those lines. That's OS X's way of storing resource forks on a non-HFS filesystem, and I could have sworn that there was a mount option or something that could be set to disable that. Check out macosxhints.com as well - theres lots of useful stuff up there along these lines.

    As far as blocking them at the network level - you'd probably need a proxy or a different file server. The file server won't help if you're peer to peer, and I don't know of any smb proxies, so you're probably stuck with figuring out how to disable them on OS X...

  35. Re:What's with the ._* files with macs using samba by itomato · · Score: 1

    What does that make me?