20110818 ZFS Creacion filesystems prex86

Page last edited hace 2208 días 8 horas
De Solaris-ES
Saltar a: navegación, buscar
  • Creacion del mirror
root@prex86 # zpool create -f oracle c0t0d0s4 c0t1d0s4

root@prex86 # zpool status
  pool: oracle
 state: ONLINE
 scrub: none requested
config:

        NAME          STATE     READ WRITE CKSUM
        oracle        ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            c0t0d0s4  ONLINE       0     0     0
            c0t1d0s4  ONLINE       0     0     0
  • Deshabilitar la cache de zfs al ser filesystem para bases de datos oracle
root@prex86 # zfs set primarycache=none oracle
root@prex86 # zfs set secondarycache=none oracle
  • Desmontar el sistema de ficheros y desasignar el punto de montaje
root@prex86 # zfs umount oracle
root@prex86 # zfs set mountpoint=none oracle
  • Crear un filesystem ZFS para cada base de datos
root@prex86 # zfs create oracle/dorappw
root@prex86 # zfs create oracle/dhoteles
root@prex86 # zfs create oracle/dgsis
root@prex86 # zfs create oracle/dprtlemp
root@prex86 # zfs create oracle/porappw
root@prex86 # zfs create oracle/photeles
root@prex86 # zfs create oracle/pgsis
root@prex86 # zfs create oracle/pprtlemp
root@prex86 # zfs create oracle/poratubi
root@prex86 # zfs create oracle/redmine
root@prex86 # zfs create oracle/pheos
  • Asignar los puntos de montaje a cada filesystem
root@prex86 # zfs set mountpoint=/doracle/pkg54 oracle/dorappw
root@prex86 # zfs set mountpoint=/doracle/pkg35 oracle/dhoteles
root@prex86 # zfs set mountpoint=/doracle/pkg18 oracle/dgsis
root@prex86 # zfs set mountpoint=/doracle/pkg20 oracle/dprtlemp
root@prex86 # zfs set mountpoint=/oracle/pkg54 oracle/porappw  
root@prex86 # zfs set mountpoint=/oracle/pkg35 oracle/photeles
root@prex86 # zfs set mountpoint=/oracle/pkg18 oracle/pgsis
root@prex86 # zfs set mountpoint=/oracle/pkg20 oracle/pprtlemp
root@prex86 # zfs set mountpoint=/oracle/pkg57 oracle/poratubi
root@prex86 # zfs set mountpoint=/mysql/pkg66 oracle/redmine
root@prex86 # zfs set mountpoint=/postgresql/pkg46 oracle/pheos
  • Asignar cuotas de crecimiento máximo
root@prex86 # zfs set quota=30GB oracle/dorappw
root@prex86 # zfs set quota=20GB oracle/dhoteles
root@prex86 # zfs set quota=75GB oracle/dgsis
root@prex86 # zfs set quota=35GB oracle/dprtlemp
root@prex86 # zfs set quota=190GB oracle/porappw
root@prex86 # zfs set quota=55GB oracle/photeles
root@prex86 # zfs set quota=90GB oracle/pgsis
root@prex86 # zfs set quota=75GB oracle/pprtlemp
root@prex86 # zfs set quota=85GB oracle/poratubi
root@prex86 # zfs set quota=6GB oracle/redmine
root@prex86 # zfs set quota=85GB oracle/pheos