20090202.ZFS Creación de Pool de discos

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

Creacion pool para discos de PNEWTOUR[editar]

  • Definir el pool y los discos a utilizar
Pool: pnewtour-dg
  • Seleccionar los discos disponibles
pnewtour-dg	sf15k_alm_4	5	P	P0	529960F		00	0	529960F00	400
pnewtour-dg	sf15k_alm_5	5	P	P0	5D5EBC7C	02	2	5D5EBC7C02	50
pnewtour-dg	sf15k_alm_5	5	P	P0	5D5EBC7C	01	1	5D5EBC7C01	50
pnewtour-dg	sf15k_alm_5	5	P	P0	5D5EBC7C	09	9	5D5EBC7C09	20
pnewtour-dg	sf15k_alm_5	5	P	P0	5D5EBC7C	03	3	5D5EBC7C03	50
pnewtour-dg	sf15k_alm_5	5	P	P0	5D5EBC7C	08	8	5D5EBC7C08	20
pnewtour-dg	sf15k_alm_4	5	P	P0	529960F		07	7	529960F07	50
pnewtour-dg	sf15k_alm_5	5	P	P0	5D5EBC7C	0C	12	5D5EBC7C0C	51,16
pnewtour-dg	sf15k_alm_5	5	P	P0	5D5EBC7C	0B	11	5D5EBC7C0B	50
pnewtour-dg	sf15k_alm_5	5	P	P0	5D5EBC7C	0A	10	5D5EBC7C0A	50
pnewtour-dg	sf15k_alm_3	5	P	P2	707D8378	08	9	707D837808	50
  • Verificar los discos a utilizar
# ls -la /dev/dsk/c*529960F00*s2  -> c5t600C0FF00000000007D3150529960F00d0
# ls -la /dev/dsk/c*5D5EBC7C01*s2 -> c5t600C0FF0000000000857995D5EBC7C01d0
# ls -la /dev/dsk/c*5D5EBC7C02*s2 -> c5t600C0FF0000000000857995D5EBC7C02d0
# ls -la /dev/dsk/c*5D5EBC7C03*s2 -> c5t600C0FF0000000000857995D5EBC7C03d0
# ls -la /dev/dsk/c*5D5EBC7C08*s2 -> c5t600C0FF0000000000857995D5EBC7C08d0
# ls -la /dev/dsk/c*5D5EBC7C09*s2 -> c5t600C0FF0000000000857995D5EBC7C09d0
# ls -la /dev/dsk/c*529960F07*s2  -> c5t600C0FF00000000007D3150529960F07d0
# ls -la /dev/dsk/c*5D5EBC7C0A*s2 -> c5t600C0FF0000000000857995D5EBC7C0Ad0
# ls -la /dev/dsk/c*5D5EBC7C0B*s2 -> c5t600C0FF0000000000857995D5EBC7C0Bd0
# ls -la /dev/dsk/c*5D5EBC7C0C*s2 -> c5t600C0FF0000000000857995D5EBC7C0Cd0
# ls -la /dev/dsk/c*707D837808*s2 -> c5t600C0FF00000000007E771707D837808d0
  • Crear un Pool nuevo
# zpool create -o canmount=noauto -m /oracle/pkg01 pnewtour-dg \
        c5t600C0FF00000000007D3150529960F00d0 c5t600C0FF0000000000857995D5EBC7C01d0 \ 
        c5t600C0FF0000000000857995D5EBC7C02d0 c5t600C0FF0000000000857995D5EBC7C03d0 \
        c5t600C0FF0000000000857995D5EBC7C08d0 c5t600C0FF0000000000857995D5EBC7C09d0 \
        c5t600C0FF0000000000857995D5EBC7C0Cd0 c5t600C0FF0000000000857995D5EBC7C0Bd0 \
        c5t600C0FF0000000000857995D5EBC7C0Ad0 c5t600C0FF00000000007D3150529960F07d0 \
        c5t600C0FF00000000007E771707D837808d0
  • Verificar el pool
# zpool list
  • Verificar el estado de los pooles
# zpool status
  • Listar FS
# zfs list
# zfs list -o type,used,available,referenced,mounted,quota,reservation,volsize,mountpoint,sharenfs,devices,canmount,compressratio
  • Verificar el filesystem
# df -h |grep pnewtour-dg
  • Definir como noautomount
# zfs set canmount=noauto pnewtour-dg	
O
# zfs set canmount=off pnewtour-dg	

Nota: Probar que se importa pero no se monta.