![]() |
|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
||||
![]()
OK, so I've been playing around with VirtualBox to try and work this out. For hours. By way of project log, I'll add in additional info/experiences here (based on what I *think* works, if anyone sees something off, please chime in). I created five disk images (10% equivalents) to replicate my setup above, attached the four 'data' disks to a separate virtual SATA controller in the FreeBSD environment within VirtualBox. I then run:
Code:
freebsd-test# egrep 'ad[0-9]|cd[0-9]' /var/run/dmesg.boot acpi_acad0: <AC Adapter> on acpi0 ad0: 10240MB <VBOX HARDDISK 1.0> at ata0-master UDMA33 acd0: DVDROM <VBOX CD-ROM/1.0> at ata1-master UDMA33 ad4: 1024MB <VBOX HARDDISK 1.0> at ata2-master SATA300 ad6: 1024MB <VBOX HARDDISK 1.0> at ata3-master SATA300 ad8: 750MB <VBOX HARDDISK 1.0> at ata4-master SATA300 ad10: 750MB <VBOX HARDDISK 1.0> at ata5-master SATA300 Trying to mount root from ufs:/dev/ad0s1a Code:
freebsd-test# zpool create tank mirror ad4 ad6 mirror ad8 ad10 freebsd-test# zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT tank 1.72G 75K 1.72G 0% ONLINE - Code:
freebsd-test# zpool status tank pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror ONLINE 0 0 0 ad4 ONLINE 0 0 0 ad6 ONLINE 0 0 0 mirror ONLINE 0 0 0 ad8 ONLINE 0 0 0 ad10 ONLINE 0 0 0 errors: No known data errors |
|
||||
![]()
About six months ago I applied the ZFS config I described above to the actual hardware, running FreeBSD 8.1. Current usage is:
Code:
Filesystem Size Used Avail Capacity Mounted on /dev/ad1s1a 3.9G 266M 3.3G 7% / devfs 1.0K 1.0K 0B 100% /dev /dev/ad1s1d 9.7G 12K 8.9G 0% /tmp /dev/ad1s1e 58G 410M 53G 1% /usr /dev/ad1s1f 150G 116G 22G 84% /var tank 689G 22K 689G 0% /tank tank/Backups 689G 18K 689G 0% /tank/Backups tank/MyStuff 690G 1.1G 689G 0% /tank/MyStuff tank/Warehouse 1.6T 909G 689G 57% /tank/Warehouse Next steps are to setup some automated monitoring of the health of the zpool etc and mail the results out to me nightly. |
|
||||
![]() Quote:
Code:
# zpool create mypoolname mirror disk01 disk02 mirror disk03 disk04 Once the pool is setup, then you create your various filesystems using the zfs command. |
|
||||
![]() Quote:
The only time data is read from the log device is during the boot process, to check for data that has not yet been written out to the pool. Note: ZFS versions prior to v19 could not import a pool with a dead/missing log device, nor could they remove a log device, so you MUST use a mirrored log device in FreeBSD 7.x/8.x (which only have ZFSv15). If you add a single log device to a ZFSv15 pool, and that log device dies, your pool will be unimportable. All the data is there, but you can no longer access it. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
STORAGE: benchmarks results (diskinfo) | vermaden | FreeBSD General | 53 | 28th November 2010 06:06 PM |
Hardware Choosing the Right Solid State Drive for Your Storage Network | J65nko | News | 0 | 6th March 2010 06:04 PM |
Western Digital 4K sectored hard disks | J65nko | News | 0 | 16th February 2010 12:38 AM |
I can't make FreeBSD floppy/boot image disks under Windows with fdimage | Turquoise88 | FreeBSD Installation and Upgrading | 4 | 12th November 2008 08:39 PM |
*BSD support for solid state disks? | JMJ_coder | General Hardware | 3 | 27th June 2008 11:21 PM |