- Joined
- 5 Dec 2001
- Messages
- 6,498
This is what I used to create my zpool and zfs systems:
Which created the following:
Works perfectly, mount points even stuck around after a reboot.
The machine it is running on is a 32 bit machine, so it is slow, but plenty fast for what I need it to do. Creating a file from /dev/zero is about 86 MB/sec, and ZFS dynamically stripes it across the drives, so for a 10 GB file, 2.5 GB will end up on each drive. I am happy with how easy it was to set up. I knew ahead of time the performance was not going to be the greatest, but ZFS is already showing one thing I love. I can dynamically add drives, and ALL of my zfs file systems can hold more data. That is absolutely awesome.
Code:
zpool create tank ad2 ad3 ad4 ad6
zfs create tank/media
zfs create tank/archive
zfs set mountpoint=/usr/media tank/media
zfs set mountpoint=/usr/archive tank/archive
Which created the following:
Code:
keyhole# zpool status
pool: tank
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
ad2 ONLINE 0 0 0
ad3 ONLINE 0 0 0
ad4 ONLINE 0 0 0
ad6 ONLINE 0 0 0
errors: No known data errors
keyhole# zfs list
NAME USED AVAIL REFER MOUNTPOINT
tank 85.5G 282G 18K /tank
tank/archive 33.3G 282G 33.3G /usr/archive
tank/media 52.2G 282G 52.2G /usr/media
keyhole# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 248M 162M 66M 71% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1e 496M 24K 456M 0% /tmp
/dev/ad0s1f 27G 11G 14G 43% /usr
/dev/ad0s1d 1.9G 90M 1.7G 5% /var
/dev/mirror/home 36G 25G 8.0G 76% /usr/home
tank 282G 0B 282G 0% /tank
tank/media 334G 52G 282G 16% /usr/media
tank/archive 315G 33G 282G 11% /usr/archive
Works perfectly, mount points even stuck around after a reboot.
The machine it is running on is a 32 bit machine, so it is slow, but plenty fast for what I need it to do. Creating a file from /dev/zero is about 86 MB/sec, and ZFS dynamically stripes it across the drives, so for a 10 GB file, 2.5 GB will end up on each drive. I am happy with how easy it was to set up. I knew ahead of time the performance was not going to be the greatest, but ZFS is already showing one thing I love. I can dynamically add drives, and ALL of my zfs file systems can hold more data. That is absolutely awesome.
Last edited: