zpool create -f -o failmode=continue -R /a -m legacy -o cachefile=/etc/zfs/zpool.cache rpool c0d0s0
## Restoreamos del nfs que habiamos montado.
cat /mnt/psun5000-ldm/rpool.zfs | zfs receive -Fdu rpool
## Montamos el / de lo restoreado. Primero lo listo para saber el nombre de lo que tengo que montar.
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 16.5G 61.7G 106K /a/rpool
rpool@archive 0 - 106K -
rpool/ROOT 16.5G 61.7G 31K legacy
rpool/ROOT@archive 0 - 31K -
rpool/ROOT/s10s_u11wos_24a 16.5G 61.7G 6.45G /a
rpool/ROOT/s10s_u11wos_24a@ archive 0 - 6.45G -
rpool/ROOT/s10s_u11wos_24a/var 10.1G 61.7G 10.1G /a/var
rpool/ROOT/s10s_u11wos_24a/ var@archive 0 - 10.1G -
rpool/export 561K 61.7G 38K /a/export
rpool/export@archive 0 - 38K -
rpool/export/home 523K 61.7G 523K /a/export/home
rpool/export/home@archive 0 - 523K -
zfs mount rpool/ROOT/s10s_u11wos_24a
### un df para ver que este montado
# df -h
Filesystem size used avail capacity Mounted on
/ramdisk-root:a 212M 187M 3.6M 99% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 29G 344K 29G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
swap 29G 1.1M 29G 1% /tmp
/tmp/dev 29G 1.1M 29G 1% /dev
fd 0K 0K 0K 0% /dev/fd
/devices/virtual-devices@100/ channel-devices@200/disk@106:a
2.2G 2.2G 0K 100% /cdrom
df: cannot statvfs /platform/sun4v/lib/libc_psr. so.1: Operation not applicable
df: cannot statvfs /platform/sun4v/lib/sparcv9/ libc_psr.so.1: Operation not applicable
swap 29G 8K 29G 1% /tmp/root/var/run
10.11.33.114:/BACKUPS
1.8T 1.6T 173G 91% /mnt
rpool/ROOT/s10s_u11wos_24a
78G 6.5G 62G 10% /a
## Queda montado en /a entro y modifico hostname, ip, vfstab, shadow y/o lo que necesite.
Creditos : Documento realizado por mi colega Nicolas Morono @nicomorono
No hay comentarios:
Publicar un comentario