ehowton: (Default)

When I first set up my FreeNAS server, I had no idea what I was doing. At all. This was my proverbial toe in the water of storage. I read over all the documentation beforehand, sure, but that didn't mean I knew what I was doing.

The phenomenon surrounding FreeNAS is its use of Solaris' ZFS filesystem, a hearty, replicated aggregate of both filesystem and volume manager, underneath a FreeBSD front-end. By default ZFS requires a lot of resources, which is why I put it on my beefiest box, which just so happened to be the only box I had which contained a RAID controller which could be bypassed to allow FreeNAS to carve the raw disks directly. Or so I thought. Spoiler alert, it doesn't.

So unbeknownst to me for nearly a year, my FreeNAS instance carved its volume management from the server's RAID array. Surely this would have gone unnoticed indefinitely, excepting a single drive failure. ZFS handles drive failures with aplomb - disable the drive in the NAS GUI, hot swap and rebuild. However, because FreeNAS couldn't see the individual drive (remember, it only sees the entire array), I couldn't disable it. No problem for a hot-swap RAID array though, right? Or was it?


I posted the conundrum to the local FreeNAS forums and the reply I received was, "Well, it might work, it might not." Awkwardly enough, that was my own conclusion as well prior to posting the question. Regardless, I backed up the entire array to my UNRAID server, and for good measure powered-down the FreeNAS server before replacing the failed disk. Everything booted and the hardware RAID starting rebuilding, unbeknownst to FreeNAS, and someday (not today) I'll look at migrating away from my initial architectural failure.



◾ Tags:
ehowton: (Caprica)



2005-2020



Back in the early days of LJ I'd created a BSD avatar for those few, painful times I ran FreeBSD. Wasn't really a fan, preferring instead the burgeoning liunx. One of the few ways to keep personalized avatars from resetting to the default in LJ is to keep the same name as the one it is replacing, then simply adding a comma deliminated keyword for search purposes. But I digress. My keyword-named "BSD" avatar was replaced with my O/S of choice back then of early ubuntu, and my avatar was a play on those ridiculous naked people gracing the wallpaper screen with the ubuntu logo prominently displayed somewhere on them. I wanted to make one better than the wallpapers, so turned to one of the nude models I was familiar with back in 06, and popped the logo the only place that made sense given both the logo, and the constraints of a 100x100 pixel avatar. Some time later, I thought it might look better as a tattoo, and updated it before using the same model when I switched operating systems to suse, then deciding several years later I'd done a slipshod job on the "tattoo" and made it more realistic, which is the one I use to this day.

Having gotten back into BSD, I decided I finally needed a BSD avatar to differentiate between the two given my rash of technical posts, especially since I already have one for Sun Microsystems, HP/UX, and SGI. I run a lot more OpenBSD these days than FreeBSD (though my SAN, FreeNAS is FreeBSD based), but "Puffy" the bloated OpenBSD logo is considerably less sexy than the new Anton K. Gural logo (not the Lasseter (of Pixar fame) daemon). Which I hued pink to match the hair of the new girl I found online and who's origin I cannot ascertain to give credit.

Admittedly, its been awhile since I've played with LJ avatars, but given two of my favorite subjects, still a hell of a lot of fun :)



◾ Tags:
ehowton: (truck)
To install OpenBSD on a softraid mirror:

Boot from CD then drop to a shell (s)

# sysctl hw.disknames

(sd0 for SCSI devices, wd0 for IDE devices)

# cd /dev/
# sh MAKEDEV sd0 (or wd0)
# sh MAKEDEV sd1 (or wd1)

# fdisk -iy sd0 (or wd0)
# fdisk -iy sd1 (or wd1)


# disklabel -E wd0

Label editor (enter '?' for help at any prompt)
[s,w]d0> a <-- select partition a
partition [a]
offset: [64]
size: [16771796]
FS type: [4.2BSD] raid <-- enter fs type raid
> q
Write new label?: [y]

# disklabel [s,w]d0 > dumplabel
# disklabel -R [s,w]d1 dumplabel

# bioctl -c 1 -l [s,w]d0a,[s,w]d1a softraid0
<-- -c 1 for RAID1, -c 0 for RAID0
sd0 at scsibus1 targ 1 lun 0: SCSI2 0/direct fixed
sd0: 10236MB, 512 bytes/sector, 20964233 sectors
softraid0: SR RAID 1 volume attached as (sd0 for IDE devices, sd2 for SCSI devices)

# bioctl -h sd[0,2] <-- for status

CTRL-D to exit ^D

Then (I)nstall to your new RAID device [s,w]d0!

TO REPLACE A FAILED DRIVE:

Insert new disk
vopenbsd# bioctl -h sd0                                                                                                         
Volume      Status               Size Device  
softraid0 0 Degraded             8.0G sd0     RAID1 
          0 Online               8.0G 0:0.0   noencl 
          1 Offline                0B 0:1.0   noencl <>

# sysctl hw.disknames

# cd /dev/

# sh MAKEDEV sd2

# fdisk -iy sd2

# disklabel sd1 > dumplabel
# disklabel -R sd2 dumplabel


bioctl -R /dev/sd2a sd0
softraid0: rebuild of sd0 started on wd0a
vopenbsd# bioctl -h sd0                                                                                                         
Volume      Status               Size Device  
softraid0 0 Degraded             8.0G sd0     RAID1 
          0 Online               8.0G 0:0.0   noencl 
          1 Rebuild              8.0G 0:1.0   noencl 




Thanks to Claud Computing
◾ Tags:
ehowton: (Default)


I'm 36 today. For my birthday, I built myself a FreeBSD box from my old gaming box. Installed Big Sister, but that turned out to be a huge pain in the ass, so I compiled Big Brother instead. The devil you know.... I stared at the Big Sister config page for an hour. I got Big Brother up and running in 4 minutes flat, including compile time. http://paris.darkvoyager.com/bb it's even got xirr on it, but Tony didn't want the client running. Stayed indoors all day listening to music and drinking Gin & Tonic. It's nearly 1700 and I'm thinking about sleeping. The wireless internet here has been stable all weekend. The manager ordered some newer WAP's for the closet which serves this hallway. I'm guessing that will also upgrade their 'g' from 54 to 108Mbps. It matters not to me, all my boxes are running off one of Tony's old 100/base hubs. And yes, there are collisions. I packed my switch away somewhere else I'd be using that.

I've heard of SecureBSD. This is my idea of SecureDARWIN:



So I got Big Sister to come up anyway. Sorta. Anyone who clicks the link above, depending on where I am in the project, will either get one page or the other. This ain't an exact science here people. I'm getting very sleepy...

Rod was at work all weekend working on his servers. Poor bastard.
◾ Tags:
ehowton: (Default)
The ADC is on I-30 and 360. My client location is on I-20 and I35W. I've been taking I30 to I35W to I-20. That's quick and efficient. However, here lately, I've been traveling 360 to I-20 and coming straight across. There's less traffic, and it seems quicker. But less traffic means less radar clutter to get lost in as I traverse all 3 lanes at 85mph. Its a lot like pod racing. There's 4 lanes on I20, fewer vehicles, hence I drive slower. Slower but at a more consistent speed. Further evaluation needs to be done to determine the quickest route.

Fixed my SB100 problem. Apparently the Symbios SCSI interface card could not simultaneously send LVD and SE data across both the VHCDI ports, so I added a Qlogic SCSI interface card and attached the LVD array to that and the SE DLT's to the Symbios. Problem solved. Now I'm working a samba issue on a Red Hat box. I think this is the first time I've ever logged into Red Hat. This client loves them some Red Hat on vmware. Someone apparently installed samba, but not swat, on this box, and it appears to be a install-time option. So I'm downloading a Red Hat RPM of samba. Yes, I know swat is a crutch for the smb.conf file, but these people have samba installed on every unix box here, cross mounted to every windows desktop. Someday I'm going to create ONE samba server and ONE nfs server. But not today.

I was supposed to get a dual P4 3.0GHz *MB cache workstation to replace my aging laptop. Today the boss asks me to justify the purchase. I told him, "Forget it. You had offered it and I jumped on it." It looks like the Dell laptop POS stays. I had wanted the increased speed and memory configuration to run a varity of operating systems, possibly with a base OS of FreeBSD, but I don't need this drama in my life.

Tony crapped out on the couch last night while I watched White Chicks. I haven't laughed that much in a long time. Odd, the spell checker recognizes "Free BSD" and "Free-BSD" (which are both incorrect) but not "FreeBSD" which I believe is the correct spelling. Heh, it also suggests 'vaporware' as a replacement for 'vmware'. Funny.

August 2025

S M T W T F S
     12
345678 9
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Expand Cut Tags

No cut tags