Код: Выделить всё
zfs unmount -a
Код: Выделить всё
zfs unmount -a
Код: Выделить всё
#zfs unmount -a
Код: Выделить всё
#zpool set cachefile='' zroot
Код: Выделить всё
#zfs set mountpoint=legacy zroot/ROOT/default
#zfs set mountpoint=/usr zroot/usr
Код: Выделить всё
# zfs get mountpoint
Код: Выделить всё
сp /tmp/zpool.cache /mnt/boot/zfs
Код: Выделить всё
zfs send -vR zroot@25032015| ssh 192.168.1.1 zfs receive -vFd zroot2
Код: Выделить всё
zfs set mountpoint=/ zroot
Код: Выделить всё
zpool set bootfs=zroot zroot
Код: Выделить всё
zfs get mountpoint
NAME PROPERTY VALUE SOURCE
zroot mountpoint / local
zroot/tmp mountpoint /tmp inherited from zroot
zroot/usr mountpoint /usr inherited from zroot
zroot/usr/home mountpoint /usr/home inherited from zroot
zroot/usr/local mountpoint /usr/local inherited from zroot
zroot/usr/obj mountpoint /usr/obj inherited from zroot
zroot/usr/ports mountpoint /usr/ports inherited from zroot
zroot/usr/ports/distfiles mountpoint /usr/ports/distfiles inherited from zroot
Код: Выделить всё
altroot=/mnt
Код: Выделить всё
altroot
Alternate root directory. If set, this directory is prepended to any
mount points within the pool. This can be used when examining an
unknown pool where the mount points cannot be trusted, or in an
alternate boot environment, where the typical paths are not valid.
altroot is not a persistent property. It is valid only while the sys?
tem is up. Setting altroot defaults to using cachefile=none, though
this may be overridden using an explicit setting.
zpool import -f myboot zrootromaxa писал(а):Товарищи, помогите, осилил только ту часть, где мне нужно загрузиться с лив cd.
Подключил к серверу новый диск, создал вместо zroot myboot... пусть будет так
send/receive. Загрузчик прописал, отключил старый диск, зашел с лив сд. Тут я не понял - как примонтировать новый пул в /mnt?
Все что я нарыл - это zpool import -f myboot
Тогда автоматом файловая монтируется до первого ребута.
Как мне замонтировать его?
Отправлено спустя 47 минут 24 секунды:
Тоже не меняются маунтпоинты. Ну и диск не загружается
телепаты в отпускеromaxa писал(а):А как загрузиться потом с нее? Я когда импортирую его, он подминтируется в корень, но при этом перестает работать Zfs zpool и т.д. internal error filed to initialize zfs library
Код: Выделить всё
zpool import myboot
zfs set mountpoint=/tmp/myboot myboot
cd /tmp
zpool export myboot && zpool import myboot
cp /tmp/zpool.cache /tmp/myboot/boot/zfs/zpool.cache
zfs unmount -a
zfs set mountpoint=legacy myboot
reboot