btw: sorry for my little too hasty share of the
zpool command. Sometimes I share partial commands but I'm obviously not being clear enough about it. Happens when I post without taking the time for it.
is the FreeBSD CD = Rescue CD?
Yeah, force of habit on my end. Basically any boot environment which provides some kind of live system will do. I usually rely on the
disc1 ISO image. You can use that to install FreeBSD but also as a live cd / rescue environment.
I loaded rgeinstallation and then single user mode but # zpool list
returned nothing
Not sure I follow. You booted with a live cd on the host which contains the pool you wish want to rename?
Then this is logical;
zpool list
only lists currently active / known pools. Try
zpool import
instead, that should list all available pools. After that you can perform the actual import / rename.
(edit)
Basically... what I'd do is...
# zpool import -fR /mnt zroot zback
, this should import (and rename) your new ZFS pool as
zback and then mount it under
/mnt. From there on you should be able to access
/mnt/boot in order to apply the required changes to
loader.conf.
Then the (this time verified) command:
# zpool set bootfs=zback zback
.
Finally I'd bootstrap the HD again, assuming you plan to boot from this pool. Be sure to use the images in
/mnt/boot and not /boot. Because there is no guarantee that your rescue environment will be the same as your installed environment.
Something in the likes of (
warning: this is just an example!):
# gpart bootcode -b /mnt/boot/pmbr -p /mnt/boot/gptzfsboot -i 1 ada0
. You obviously would need to exchange the value of
-i and the device for you own environment.