HOWTO: Install FreeBSD 9.0 RELEASE (Root on UFS + ZFS, RAID1)

gkontos said:
Ok, would like to elaborate?

I think I did in my post above. You are right though - several other ZFS properties can be set, but it's far from being the only reason. And that's why it caught my eye.
 
Thanks. Should I use amd64? Most of my computers are quadcore amd CPUs. But I used i386 just in case. I have one Intel CPU but it is used for windows.

What is the advantages for using amd64? i386 still works for amd CPU fine.

Zach

kpa said:
You won't find lib32.txz on i386 install disk, it's amd64 only.
 
This is very nice, thank you so much!

Question - and this might be a little dense - but is there a write-up anywhere that describes use cases for ZFS and regular maintenance, etc? I am about to be setting up a new server, and would very much like to accurately determine if ZFS/RAID1 is the right set up for me. I'm just a little fuzzy on *what* that gives me exactly. Thanks!
 
I am using the amd64 9.0 release today. I still get the same error as yesterday after kldload geom_mbr.ko
Code:
g_dev_taste: make_dev_p() failed (gp->name=ada0s1, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada0s1a, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada0s1b, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada0s1d, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada0s1e, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada0s1f, error=17)
 
Strange, I cannot gpart ada0 (operation not permitted), nor can I gpart ada1 (File exists). If I try to zero ada1, it says operation not permitted!

I have ada0 (ad6, SATA, 1TB) and ada1 (ad8, SATA, 1 TB).

On an AMD Phenom 9650 CPU with 4 GB memory. Booted with FreeBSD AMD64 9.0 Release (DVD) in Live CD mode.
 
What is the result of gpart show? If it already shows something, then you can delete the existing settings with the following commands:
Code:
# gpart destroy -F ada0
# gpart destroy -F ada1

And then start from the beginning.

P.S. Sorry, was in a business trip for the whole week.
 
RusDyr said:
I never can understand why do you need create such a numbers of [zfs] partitions like /usr/ports, /usr/obj/, /usr/ports/distfiles and so on. It's excessive, doesn't neccesary for quick installation and obviusly can be done later.
This zfs partitioning way is in almost all howtos. Does anybody think the sense of it?

In my guide /usr is sitting on UFS filesystem. If I need /usr/ports to be located on ZFS partition, then I have to do these steps. Yes, they can be done later... But why to postpone it to a later stage?
 
vand777, thanks.

gpart shows my partitions I made yesterday following your instructions but with 9.0-RC3. I get
Code:
gpart: Device busy
when I tried to do it for ada0. I am using a different machine but the same two HDDs now. Thought there might be something wrong with my MB. So far it seems similar. I burned a i386 9.0_release also and will try that also today.
 
vand777, thanks. Now I destroyed both ada0 and ada1 successfully. Last time ada1 was not connected properly (power cable messup). But the geom_mbr error came back. It does not seem to affect things though. I am trying to create partitions now.
 
When I tried to do
Code:
gpart backup $disk0 | gpart restore -F $disk1

I got:

Code:
gpart: geom 'ada1': Operation not permitted

This seems to be the same error as yesterday (different boot disk, different machine, but the same two drives). It is possible the two drives are different brands (but same cylinders etc) and this caused the error? Freebsd FreeBSD 8.1 did not have a problem with gmirror with two different drives.
 
I am giving up on AMD64. Got another error with
Code:
gmirror label root ${disk0}p2
I omitted disk1 since it won't allow me anything. The error I got was
Code:
gmirror: Can't store metadata on ada0p2: Operation not permitted

Strangely, gpart show says ada1 now is gone (I destroyed it once), but now gpart wont find it.
 
I started from scratch using the i386 disk (DVD). Still got the same error when I tried to
Code:
gmirror label root ${disk0}p2 ${disk1}p2

I got:
Code:
gmirror: Can't store metadata on ada0p2: Operaton not permitted.

I am about to give up zfs on 9.0.
 
The errors (which happened from p2 to p5) did not seem to affect other things, but now after finishing my network does not work. Yesterday the i386 9.0 RC3 worked fine with network, rc.conf/hosts/resolv.conf files under /etc all looked fine.
 
It appears the MB's ethernet card is gone while I was installing it. Put another PCI card in, not working. Another one, still not working. Having bad luck today.
 
I figured out (finally!) that freebsd FreeBSD did not like my wireless router (the wired outlets worked fine with Win, but not with freebsd FreeBSD) -- I figured out because last time a working disk did not have network either. Today I moved the machine to a netgear switch and now network is working...(but Freebsd FreeBSD 9.0 did not see fxp0 but 8.0 saw it).

How do I turn on gmirror? Right now gmirror shows only the 8 gig partition as the master.

gmirror list

Code:
   Sectorsize: 512
   Mode: r0w0e0
Consumers:
1. Name: ada1p5
   Mediasize: 8589934592 (8.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 1770742616
gpart show
Code:
=>        34  1953525101  ada0  GPT  (931G)
          34          94     1  freebsd-boot  (47k)
         128     2097152     2  freebsd-ufs  (1.0G)
     2097280     8388608     3  freebsd-swap  (4.0G)
    10485888     2097152     4  freebsd-ufs  (1.0G)
    12583040    16777216     5  freebsd-ufs  (8.0G)
    29360256  1924164879     6  freebsd-zfs  (917G)

=>        34  1953525101  ada1  GPT  (931G)
          34          94     1  freebsd-boot  (47k)
         128     2097152     2  freebsd-ufs  (1.0G)
     2097280     8388608     3  freebsd-swap  (4.0G)
    10485888     2097152     4  freebsd-ufs  (1.0G)
    12583040    16777216     5  freebsd-ufs  (8.0G)
    29360256  1924164879     6  freebsd-zfs  (917G)
 
I also got these messages in dmesg:

Code:
GEOM_MIRROR: Device mirror/root launched (1/1).
GEOM_MIRROR: Device mirror/swap launched (1/1).
GEOM_MIRROR: Device mirror/pkg launched (1/1).
GEOM_MIRROR: Device mirror/usr launched (1/1).
GEOM_MIRROR: Device root already configured.
GEOM_MIRROR: Device swap already configured.
GEOM_MIRROR: Device pkg already configured.
GEOM_MIRROR: Device mirror/urs launched (1/1).
GEOM_MIRROR: Device root already configured.
GEOM_MIRROR: Device swap already configured.
GEOM_MIRROR: Device pkg already configured.
 
Back
Top