ZFS ZFS questions

I know next to nothing about ZFS and the more I read about the more my head hurts so I thought I'd pose a few questions to the venerable people who read this forums.

How does import/export work? Can I, for example export an existing pool to a new device simply by creating a new pool on that device and can I export via SSH?
 
It looks like I need to use send and receive if I want to use SSH.

import/export is for pools that are local to each other.
 
If I have two ZFS devices both with a zpool name of zroot and I run zpool list should they both show up and how can I tell which one I have actually booted from?
 
I recommend to get you one, two or better more additional storage drives. Any not currently in use but functioning HDD/SSD will do, you may find such in your spare parts box in the attic, or get some for a few bucks at a second hand shop, or a garage sale.
Create some zpools with those, write some random data to it (e.g. cp your /home/) and simply do some experiments, like import, export, zfs send, snapshots, resilvering, even kill one drive within a mirror or raidz pool... - play with it!
Those practical experience you gather is worth more than hundreds pages of text.
ZFS(8) ZPOOL(8)
 
I recommend to get you one, two or better more additional storage drives. Any not currently in use but functioning HDD/SSD will do, you may find such in your spare parts box in the attic, or get some for a few bucks at a second hand shop, garage sale.
Create some zpools with those, write some random data to it (e.g. cp your /home/) and simply do some experiments, like import, export, zfs send, snapshots, resilvering, even kill one drive within a mirror or raidz pool... - play with it!
Those practical experience you gather is worth more than hundreds pages of text.
ZFS(8) ZPOOL(8)
I have a number of ZFS systems but they use ZROOT as a pool name. I didn't realise might have caused a problem until now.

If I have two devices connected is it possible to change the pool name of the system I haven't booted from?
 
I have just created a new 50GB parttion on a disk I booted from and created a zpool called ztest. I have another disk attached which has a bootable zfs system with a zpool called zroot.

How do I show that both pools exist?

If I run zfs list I only see ztest which I've just created.
 
Back
Top