**** BEGIN LOGGING AT Mon Jun 20 23:59:56 2005 Jun 21 00:21:36 Yo. I'm new. Reading http://www.nslu2-linux.org/wiki/Main/HomePage for the first time. Bought a NSLU2 + 2x300 GB. Want to do RAID1. Want to share your experience? Jun 21 03:09:42 <]anakin[> could I ask a question about openslung? I haven't found any FAQ about it. Jun 21 03:10:53 <]anakin[> The question is: If I install openslung in my nslu2, can I still use the unslung precompiled packages? Are there other feeds for openslung? Jun 21 03:54:01 hello Jun 21 12:21:31 greetings- i'm using openembedded for mipsel devel and was wondering if someone could give me some pointers for compiling php via openembedded Jun 21 12:21:48 pointers as in, how the heck to get it to work :) Jun 21 12:26:28 is this the room to discuss bitbake or the developers room? Jun 21 12:27:21 bitbake should be on topic at #openslug Jun 21 12:35:36 thanks Jun 21 20:23:20 Yo. Does anybody has experience with Unslung + Raid? I'm about to construct the raid array here. Jun 21 20:34:22 Read the wiki howtos. That's what they are for. Jun 21 20:34:28 http://www.nslu2-linux.org/wiki/HowTo/EnableRAIDSupport Jun 21 20:34:40 i'm reading them Jun 21 20:34:48 but they are terse on explanations Jun 21 20:35:18 Read the LDP documentation too. Jun 21 20:35:27 example: Disable USB_Detect, and possibly rc.bootbin using diversion scripts. Jun 21 20:35:37 doesn't tell you where USB_Detect is Jun 21 20:35:59 I'm no LInux newbie, but I'm new to NLSU2, and I find the RaidHowto quite confusing Jun 21 20:36:07 Read the startup scripts in /etc/rc.d Jun 21 20:36:33 I guess what I'm missing is where is the starting point? Is init /linuxrc in /initrd? Jun 21 20:37:02 If I modify what is under /initrd, will my change persist across power-cycling the NSLU2 Jun 21 20:37:02 ? Jun 21 20:37:19 glc-: I have read it already Jun 21 20:37:47 glc_: are you using your NSLU2 w/ RAID? Jun 21 20:38:01 Start at /etc/rc Jun 21 20:38:09 I was. Jun 21 20:38:12 As I'm doing this, I'm writing a very detailed, no-brainer doc to let more people easily do it Jun 21 20:38:22 glc_: k. thx Jun 21 20:38:47 Don't forget to update the wiki eith those improved instructions. Jun 21 20:39:00 Yep. Will do. Jun 21 20:39:15 Arg, wife is calling me to have dinner. Talk to you later... Jun 21 20:39:30 Ok. Jun 21 20:43:32 http://www.linux.org/docs/ldp/howto/Software-RAID-HOWTO.html Jun 21 20:59:08 My instructions are here: http://www.nslu2-linux.org/wiki/HowTo/Raid1SampleDiversionScripts Jun 21 21:00:55 You will have to edit /linuxrc to start the raid if you want to mount /dev/md0 as your root filesystem. Jun 21 21:02:05 You will also have to modify any startup script that would attempt to mount any component of the raid array. Jun 21 21:02:46 My divirsion scripts did this for 4.0. I have not rewritten them for 5.5 because I have moved my Jun 21 21:03:30 file server to a VIA mini-ITX based box. Jun 21 21:04:50 The slug has no parity detection, and I don't feel it is really a good platform for a file server. Jun 21 21:05:32 I use mine for dns and dhcp services. Jun 21 21:07:54 glc_: I'm back. reading the channel... Jun 21 21:08:45 glc_: parity detection, as in memory errors? Jun 21 21:08:55 Correct. Jun 21 21:08:59 glc_: my plan is to update the howto for unslung 5.5 Jun 21 21:09:22 glc_: doing something similar to what I did here: http://zoy.org/~hpreg/wifi/ Jun 21 21:09:50 Good. Add a separate link below my 4.0 link for the 5.5 instructions. Jun 21 21:09:59 glc_: ok Jun 21 21:10:46 glc_: if I modify /linuxrc, will it stick accross power-cycle, or do I have to write my owm firmware, derived from unslung-5.5? Jun 21 21:11:53 glc_: do you know what the deal is with the EMI core provided with the NLSU2? It was the first time I heard about that. I put it on my LAN cable, as explained in the addendum. Jun 21 21:11:57 Yes. Jun 21 21:12:14 About /linuxrc Jun 21 21:12:17 glc_: good. Jun 21 21:12:56 The EMI core reduces TV interference. Jun 21 21:14:15 glc_: I have my wireless router below the TV, and never noticed any interference. Maybe I just have a good tv. Dunno. Anyway, reading your sample diversion scripts... Jun 21 21:14:54 11:15PM Here. I have to get to bed now. Be careful when you edit /linuxrc or you may have to reflash to recover. Jun 21 21:15:04 glc_: you don't appear to be modding /linuxrc. Didn't it exist in 4.0? Jun 21 21:15:35 4.0 did not mount the hard drive as the root/ Jun 21 21:15:36 glc_: ok, thanks for the help. I don't care about flashing: there is currently nothing on the box, and nothing on the hds. Jun 21 21:16:40 That makes it much simpler to setup the raid. You will have to unsling to download the ipks for mdadm, and copy them to the jffs2. Jun 21 21:17:25 I unslung yesterday (using disk1) Jun 21 21:17:43 Do not try to do an ipkg update before unslinging. Jun 21 21:17:48 OK. Jun 21 21:17:50 I'm about to copy everything on jffs2 (/initrd) Jun 21 21:18:05 glc_: Yeah, I read about over-filling the flash... Jun 21 21:18:20 You hve little room left. You need the modules and mdadm. Jun 21 21:18:53 but then I'm confused about creating the raid: I need to reformat the raid array in ext3, so all the copy of the root fs will be gone Jun 21 21:19:05 Do I need to unsling again after building the array? Jun 21 21:19:21 remove /initrd/.sda1root and reboot. Jun 21 21:19:42 Oh, I see. Jun 21 21:19:53 You will be in jffs at that point, and can edit your /linuxrc to setup the raid. Jun 21 21:20:44 Once you have the raid up and running, you can modify unsling to unsling to /dev/md0 instead of /dev/sda1. Jun 21 21:20:45 Why do I need to remove .sda1root? Jun 21 21:21:01 Cannot I just edit what is under /initrc and reboot? Jun 21 21:21:18 I meant /initrd (it is mounted rw) Jun 21 21:21:27 Edit the rc scripts on the hard disk so they do no mounting. That includes commenting out rc.bootbin. Jun 21 21:21:49 ok Jun 21 21:22:21 Oh I see. You do no mounting, in order not to destroy the array. Jun 21 21:22:27 You will have to set up a link in /share/hdd/data to your new data area for samba. Jun 21 21:22:28 got it. Jun 21 21:22:37 ok Jun 21 21:23:12 You can also raid /dev/sdx3 for /share/hdd/conf. Jun 21 21:23:38 ok Jun 21 21:24:13 You can see what I did. I am sure you can come up with a better solution for 5.x. Jun 21 21:24:35 I'll try Jun 21 21:24:41 thanks for all your help Jun 21 21:25:16 No problem. It took me several iterations before I got the raid to survive a re-boot. Jun 21 21:25:35 Then it was very stable. Jun 21 21:26:01 excellent. Well, I'm not afraid to experiment since my hds are currently empty. Jun 21 21:26:40 I use my slug for playing now. Been playing with vblade. Jun 21 21:26:55 what is vblade? Jun 21 21:27:07 ATA over ethernet. Jun 21 21:27:37 how is that different from nbd (network block device)? Jun 21 21:27:41 It is like network block device, but at a much lower level. Jun 21 21:27:49 I guess nbd uses tcp/ip Jun 21 21:28:00 No IP, just MAC. Jun 21 21:28:08 ok Jun 21 21:28:58 It is quite restrictive though. Only one device exported per MAC address. Jun 21 21:31:18 Linux Journal and Linux Magazine both have articles on it this month. It was developed by Coraid. Jun 21 21:32:14 Interesting. I will look at it. A fresh alternative to iSCSI Jun 21 21:32:14 Some kind soul ( Sorry I don't remember his name ) ported it to the Slug about a week ago. Jun 21 21:32:34 Yes, without fibrechannel. Jun 21 21:33:46 It would be really nice if a $50 adapter could be developed for it, like the many adapters for USB. Jun 21 21:34:23 yep. put your hd directly on the network :) Jun 21 21:34:54 The $90 Slug works but there is that unnecessaary ATA-USB translation slowing it down. Jun 21 21:35:31 You still need a file server to manage the vblades, because only one machine can talk to Jun 21 21:35:35 the vblade. Jun 21 21:36:19 yes. So you are trying to have the slug talk directly to the disk over eth? Jun 21 21:36:41 You have a bunch of blades configured into raid arrays, and then you run LVM on top of the raid. Jun 21 21:37:45 Curently you can have the slug serve the raid1 array to a file server where it can be part of a volume group. Jun 21 21:39:26 i see Jun 21 21:40:31 http://www.coraid.com/support/linux/ Jun 21 21:41:15 thx for th url. I will look at it after raid. One thing at a time :) Jun 21 21:41:19 http://sourceforge.net/projects/aoetools/ Jun 21 21:42:12 The slug only needs the vblade software, no drivers. Jun 21 21:42:56 yes, it is all done in userland. the driver is just the eth driver Jun 21 21:42:57 The drivers are already in 2.6.10 or so kernel. Jun 21 21:43:31 oh so there are drivers? oh yes, to make it look like a block dev to the kernel Jun 21 21:43:51 The tools work with the kernel to setup the server that is going to serve the block device provided by the blade. Jun 21 21:43:51 2.6.10? Using OpenSlug then? Jun 21 21:44:51 No on the linux server that is going to connect to the slug/blade to make it's block device available through nfs or samba. Jun 21 21:46:00 NBD allows a server to serve multiple devices to several clients. Jun 21 21:46:34 AOE only allows one client connection, so that client is used as the file server Jun 21 21:48:28 This server will be the client for dozens of blades, joining them into raid arrays. These arrays are then combined using LVM into one or many logical volumes. Jun 21 21:48:50 very flexible Jun 21 21:50:12 Yes, but requires a bunch of blades to accomplish anything. Jun 21 21:50:48 It is interesting to play with though, just to get a feel of how it works. Jun 21 21:51:23 Yep. Good skills to market later. Jun 21 21:51:39 Well I really have to get to bed! Catch you again later. Jun 21 21:51:55 good sleep. thx for your help again! Jun 21 21:52:05 I will put all of this into application now **** ENDING LOGGING AT Tue Jun 21 23:59:56 2005