- Thread Starter
- #26
Then use FreeBSD technologies: graid, gconcat, zfs
If you want to use Linux technologies, use Linux.
Honestly I don't like the or / or choices.
Then use FreeBSD technologies: graid, gconcat, zfs
If you want to use Linux technologies, use Linux.
Well... try this:Nope. I love FreeBSD![]()
zpool add mypool XXX.
gpart create -s GPT ada1
gpart create -s GPT ada2
gpart add -l ssd1 -t freebsd-zfs ada1
gpart add -l ssd2 -t freebsd-zfs ada2
zpool create myzpool /dev/gpt/ssd1 /dev/gpt/ssd2
zfs create myzpool/myzfs
Neither of those operating systems support ZFS.what about if I reformat the Openbsd and the Dragonflybsd ssd disks using ZFS ?
for a in 0 1; do truncate -s 4G file$a; mdconfig -t vnode - f file$a; done
/dev/md[01]
to play with! You can even do hexdump on them to see what changes. Choose a smaller size for that though. Second, experiment as you read the man page. Try out various sub commands. Quickly making sense of a manpage is a skill that will come in handy over and over again. You won’t find tutorials for everything, nor are most tutorials all that good.Just install it on one disk then simple add the other disk to the zpool (piece of cake).
=> 40 976773088 ada0 GPT (466G)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 984 - free - (492K)
534528 4194304 3 freebsd-swap (2.0G)
4728832 972044288 4 freebsd-zfs (464G)
976773120 8 - free - (4.0K)
mario@marietto:/usr/home/marietto # zpool import
pool: zroot
id: 17047367030737245538
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
zroot ONLINE
ada0p4 ONLINE
mario@marietto:/usr/home/marietto # zpool import -fR /mnt/zroot zroot
mario@marietto:/usr/home/marietto # cd /mnt/zroot
mario@marietto:/mnt/zroot # ls
tmp usr var zroot
mario@marietto:/mnt # zpool import -fR /mnt/ada0p4 ada0p4
cannot import 'ada0p4': no such pool available
… I want to mount the partition /dev/ada0p4 …
The reason why people don't read manuals are manyfold, the most important though are these:Don't tell me to read the handbook. Give me a less detailed reading. The handbook is too much filled of informations. I never go there because I don't want to be overhelmed by informations. I want to learn only some concepts at a time. I do not find it at all respectful to tell someone to read such a considerable amount of information. It is also a trivial advice. Ask yourself why people ask the questions then. If they find easy and useful to read the manual they would it and then there would be no more forums.
Sorry, but no. That's not how this works. You clearly do not understand how computers and operating systems work, have not put in the effort to learn, and boast about how you do not want to learn. This isn't how this forum works.Don't tell me to read the handbook. Give me a less detailed reading.
… canmount …
canmount
off
for the ZFS file system that has mountpoint
/usraugust
is the pool that contains my installation of FreeBSD: % zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
Transcend 464G 214G 250G - - 28% 46% 1.00x ONLINE -
august 912G 655G 257G - - 34% 71% 1.00x ONLINE -
% zfs get canmount | grep off
august/tmp canmount off received
august/usr canmount off local
august/var canmount off local
% zfs get canmount,mountpoint august/usr august/usr/home
NAME PROPERTY VALUE SOURCE
august/usr canmount off local
august/usr mountpoint /usr local
august/usr/home canmount on default
august/usr/home mountpoint /usr/home inherited from august/usr
%
zfs mount august/usr
. The installation of FreeBSD does not require this particular mount. canmount
off
for august/tmp
because I prefer tmpfs(5), not ZFS, for my /tmp.Then just read the chapter you are interested in. Even there it is fine just to read a few sections of a chapter that apply to a certain issue or topic.Don't tell me to read the handbook. Give me a less detailed reading. The handbook is too much filled of informations. I never go there because I don't want to be overhelmed by informations. I want to learn only some concepts at a time.
The reason why people don't read manuals are manyfold, the most important though are these:
1. there are different ways to learn stuff, and each individual has its own preference. For some reading works great, for others seeing it - so videos, for third repeating instructions, so mimicking the way somebody does. That's totally normal.
2. Most people nowadays are just lazy, and why reading a manual when asking questions somewhere leads much faster to the desired answer?
Sorry, but no. That's not how this works. You clearly do not understand how computers and operating systems work, have not put in the effort to learn, and boast about how you do not want to learn. This isn't how this forum works.
You don't have to use the handbook, there are dozens of other resources for learning ZFS; the best alternative to the handbook for what's directly relevant to FreeBSD is zfsconcepts(7) and zpoolconcepts(7). It would be OK to ask for clarification after you read any of the abundant resources available and still have questions, but it is not OK to refuse to use the resources in the first place.