Crear un punto de restauración

Page last edited hace 2117 días 3 horas
De Solaris-ES
Saltar a: navegación, buscar

Listar los BE del sistema[editar]

# beadm list
  BE          Active Mountpoint Space Policy Created          
  --          ------ ---------- ----- ------ -------          
  solaris     NR     /          2.61G static 2012-05-26 11:09 
  solaris-alt -      -          56.0K static 2012-05-26 14:23

Creamos un nuevo BE Boot Environment[editar]

# beadm create initial
# beadm list
  BE          Active Mountpoint Space Policy Created          
  --          ------ ---------- ----- ------ -------          
  solaris     NR     /          2.61G static 2012-05-26 11:09 
  solaris-alt -      -          56.0K static 2012-05-26 14:23
  initial     -      -          1.30M  static 2012-05-26 19:48

Activamos un BE[editar]

# beadm activate initial
# beadm list
  BE          Active Mountpoint Space Policy Created          
  --          ------ ---------- ----- ------ -------          
  initial     R      -          2.60G static 2012-05-26 19:48 <- ACTIVO
  solaris     N      /          43.0K static 2012-05-26 11:09 
  solaris-alt -      -          56.0K static 2012-05-26 14:23 
Nota: Tenemos que reiniciar para que lo utilice

Destruimos un BE[editar]

# beadm destroy initial
  Are you sure you want to destroy initial?  This action cannot be undone(y/[n]): y
# beadm list
  BE          Active Mountpoint Space Policy Created          
  --          ------ ---------- ----- ------ -------          
  solaris     NR     /          2.61G static 2012-05-26 11:09 
  solaris-alt -      -          56.0K static 2012-05-26 14:23

Montamos y desmontamos un BE alternativo (recuperación de archivos!)[editar]

# beadm mount solaris-alt /solaris-alt
# beadm list
  BE          Active Mountpoint   Space Policy Created          
  --          ------ ----------   ----- ------ -------          
  solaris     NR     /            2.62G static 2012-05-26 11:09 
  solaris-alt -      /solaris-alt 56.0K static 2012-05-26 14:23
# ls -la /solaris-alt
# beadm umount solaris-alt

Renombramos un BR por otro[editar]

# beadm rename solaris-alt solaris-alt2


Generamos un backup via Snapshot[editar]

# beadm create solaris@backup


Listamos todos los snapshots[editar]

# beadm list -a solaris
  BE/Dataset/Snapshot                           Active Mountpoint Space   Policy Created          
  -------------------                           ------ ---------- -----   ------ -------          
  solaris
     rpool/ROOT/solaris                         NR     /          2.27G   static 2012-05-26 11:09 
     rpool/ROOT/solaris/var                     -      /var       326.46M static 2012-05-26 11:09 
     rpool/ROOT/solaris/var@2012-05-26-12:23:19 -      -          36.0K   static 2012-05-26 14:23 
     rpool/ROOT/solaris/var@backup              -      -          36.0K   static 2012-05-26 14:23 
     rpool/ROOT/solaris/var@install             -      -          1.36M   static 2012-05-26 11:13 
     rpool/ROOT/solaris@2012-05-26-12:23:19     -      -          0       static 2012-05-26 14:23 
     rpool/ROOT/solaris@backup                  -      -          0       static 2012-05-26 14:23 
     rpool/ROOT/solaris@install                 -      -          7.62M   static 2012-05-26 11:13

Creamos un nuevo BE a partir de un Snapshot[editar]

# beadm create -e solaris@backup solaris-2

Destruimos el Snapshot generado[editar]

# beadm destroy solaris@backup
Are you sure you want to destroy solaris@backup?  This action cannot be undone(y/[n]): y