I like this.
“You don’t pay back your parents. You can’t. The debt you owe them gets collected by your children, who hand it down in turn. It’s a sort of entailment. “
I don’t know where it came from.
Google SearchBlog SearchPagesCategoriesArchives |
March 21, 2008I like this.“You don’t pay back your parents. You can’t. The debt you owe them gets collected by your children, who hand it down in turn. It’s a sort of entailment. “I don’t know where it came from. March 20, 2008ZFS Writeup.Here’s my ZFS write up. Here I’ve got 4×160GB Seagate drives. The first two are my OS Gmirror. I’m not going to fuck with those. I’ll be doing my testing with ad8 and ad10. [root@db ~]# dmesg |grep Seagate Here I create a mirror using the two 160GB disks. [root@db ~]# zpool create zfs mirror ad8 ad10 Here I confirm it looks good. [root@db ~]# df -h Here I create a couple file systems with various mount points. I’m giving Skip a 10GB quota so he doesn’t consume the entire pool. I reserve 100GB for porn. I don’t want to take any chances on running out of space on that mount point. [root@db ~]# zfs create -o quota=10G -o mountpoint=/usr/home/skip zfs/skip What is interesting is that the ‘zfs’ partition went from 147GB down to 47GB due to the 100GB porn reservation. The ’skip’ partition is listed as 10GB due to his quota. Now I’m going to create a partition for some music. [root@db ~]# zfs create -o mountpoint=/usr/local/music zfs/music I set that one up without any flags, so it get access to the entire non-reserved pool (47GB). Next I’m going to popluate the filesystems with a bunch of data. [root@db ~]# df -h Now, with the machine live, I am pulling out one of the 160GB drives and replacing it with a 500GB. [root@db ~]# zpool status At this point we see that the ZPOOL is irritated and recognizes that there is a problem. However, note that there are no data errors. This is of course to be expected by any RAID mirror. [root@db ~]# zpool replace zfs ad10 Done. So at this point, I’ve got a 160GB drive in a mirror along with a 500GB mirror. Of course it’s only usable up to the 160GB mark. Now, less than ten minutes later, I am pulling the remaining 160GB drive out and replacing it with a 500GB drive. [root@db ~]# zpool status At this point, I still have a 160gb mirror. It is made up of two 500GB drives. Two commands later, all that will change. [root@db ~]# zpool export zfs Unfortunately, the grow from a 160GB mirrored pool to a 500GB mirror DID require un-mounting the file systems. Additionally, shrinking a pool is not an option under FreeBSD at this point. I do believe that both of those things are going to change before long. I’ve seen a neat PDF talking about some of the benefits of ZFS @ http://mediacast.sun.com/users/JamesCMcPherson/media/ZFS_SOSUG17oct2005_preso.pdf Thanks! As an additional thought, I didn’t *HAVE* to unmount the file systems to swap out those drives. I only needed to in order to utilize the additional space. I could have just waited until the next reboot and it would have been available. One of the huge benefits to me would come in a situation where I’ve got a 1TB mirror with a bunch of data on it. Say, for a high traffic web server for example. In order to gain more space (prior to ZFS) I’d either need to migrate over to a new machine, or backup the data from the massive mirror, do the mirror rebuild using the bigger disks, and then get it all back. That can take a *VERY* long time. With ZFS I can eliminate the downtime of the copy back. Lastly, with ZFS, if I had the additional space for more disks (rather than just larger disks) I can add to the ZPOOL at any time and the space becomes usable immediately. March 16, 2008March 14, 2008gmirror – 1, 2, 3.gmirror is one of the ways in which you can setup software RAID under FreeBSD systems. It’s shit simple, but I don’t do it often enough to keep it fresh. I’m putting this here so I can refer back to it when I need it. db# dmesg |grep ad That was to see where my drives are. I booted from ad4. ad4 and ad6 are two of the same drive so they will be my mirror. Next, I need to get the system to allow me to muck with the drive that is currently in use. db# sysctl kern.geom.debugflags=16 After that I begin the real work. I’m going to load the gmirror driver, create the mirror and then add the second drive. db# gmirror load All that looks good, but I’d like this to function on a reboot. In order for that to happen, I need to tell the boot loader to get ready, and point fstab toward the gmirror device rather than either of the specific hard drives. db# echo geom_mirror_load=\”YES\” >> /boot/loader.conf Now, I check my work. db# cat /tmp/fstab Looks good. Let’s make it happen. db# mv /tmp/fstab /etc/fstab Now, for the moment of truth. db# reboot After logging in: db# df -h Sweet. That wasn’t hard, right? The following is JUST the steps I took without any output. sysctl kern.geom.debugflags=16 There you have it. Plain and simple. Next comes my ZFS games. March 13, 2008Sweet Jebus!That guy that tucks his shirt into his underwear followed me to my new job … Sweet Jesus … This guy is bat shit crazy! March 10, 2008Sweet jesus!Starting a new job today … There is a guy here who tucks his shirt into his underwear … It’s pretty fucking creepy. March 6, 2008Back on the bike.I got on the bike yesterday. Not a long ride, just enough to drop off some crackers for my mom and get gas. Was good just the same. I was listening to Ghosts while I did it. It was a good ride. I dig that shit. I need to do it more. March 5, 2008Reznor makes $750,000 even when the music is freeTrent Reznor released a new Nine Inch Nails record over the weekend and has already sold out his 2,500 deluxe editions at $300 a pop. This is what “competing with free” looks like. I am one of the 2,500. In fact, I my very well be 2 of the 2,500. That has yet to get sorted out. I need a new phone …I need a new phone … Requirements: Yeah … Somebody got something for me? Wow …I’m doing a poison control thing for pre-schoolers today … This one kid just keeps saying “I wanna touch him” … Over and over again … It is disturbing to say the least. |
FriendsMiscShoppingMeta |