Adding RedHat DVD as Repository

Create file:
/etc/yum.repos.d/rhel-dvd.repo

With the follow content:


[dvd]
name=Red Hat Enterprise Linux Installation DVD
baseurl=file:///mnt/dvd/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Create directory /mnt/dvd if not exist:

mkdir /mnt/dvd

Mount dvd :

mount /dev/dvd /mnt/dvd/

Thats all! now You're be able to install packages from dvd with yum command.

Tags: 

Minimal package install for X11 forwarding in Linux

Minimal package install for X11 forwarding in Linux

urw-fonts For X forwarding
xorg-x11-xauth For X forwarding

And X11Forwarding yes on file /etc/ssh/sshd_config

[root@server01 ~]# grep -i x11for /etc/ssh/sshd_config
X11Forwarding yes

Tags: 

AIX - Configure Storage and assign LUNs to AIX server Example.

Configure Storage and assign LUNs to AIX server (example).

Descover LUNs on server:

cfgmgr

To show new disks:

lspv

To show powerpath configuration:

powermt display dev=all

VG + LV + FILESYSTEM CREATION:

VG creation:

aix01:/#/usr/sbin/mkvg -S -y app01_vg -s256 hdiskpower1
0516-1254 /usr/sbin/mkvg: Changing the PVID in the ODM.
app01_vg
aix01:/#/usr/sbin/mkvg -S -y data_vg -s256 hdiskpower0
0516-1254 /usr/sbin/mkvg: Changing the PVID in the ODM.
data_vg
aix01:/#extendvg app01_vg hdiskpower2

Tags: 

AIX - Consultar WWN en AIX

Para consultar los WWN (World Wide Name) en un AIX:

server01:/#lsdev -C|grep fcs | awk '{print "lscfg -vpl "$1"|grep Net"}' | ksh
Network Address.............2300001B318E3471
Network Address.............2301001B31AE3471
Network Address.............2300001B3391B4B1
Network Address.............2301001B33B1B4B1

server02:/#lsdev -C|grep fcs | awk '{print "lscfg -vpl "$1"|grep Net"}' | ksh
Network Address.............2300001B31943421
Network Address.............2301001B33B43421
Network Address.............2300001B318844D1

Tags: 

Shell script - Cómo añadir algo al final de una línea determinada del texto.

Si queremos añadir algo al final de una determinada línea (la que tiene un cierto carácter determinado). Por ejemplo:

cat file.txt
CONVERT DATAFILE '/databasegmtmp/data_large107.dbf'
FROM PLATFORM 'AIX-Based Systems (64-bit)'
FORMAT '/oradata/databasegm/data_large107.dbf'

CONVERT DATAFILE '/databasegmtmp/data_large106.dbf'
FROM PLATFORM 'AIX-Based Systems (64-bit)'
FORMAT '/oradata/databasegm/data_large106.dbf'

CONVERT DATAFILE '/databasegmtmp/audit_small101.dbf'
FROM PLATFORM 'AIX-Based Systems (64-bit)'
FORMAT '/oradata/databasegm/tt_small101.dbf'

Tags: 

HPUX - Montar FS con CIO en paquetes de ServiceGuard

Los opciones de montaje a configurar en el fichero .cntl del paquete serían las siguientes:

Lo que es data, redo y archivelog:


LV[3]=/dev/vgSAPsn0/lvdata; FS[3]=/oracle/SAP; FS_MOUNT_OPT[3]=" -F vxfs -e -o cio,delaylog,nodatainlog"

LV[4]=/dev/vgSAPsn0/lvarch; FS[4]=/oracle/SAP/saparch; FS_MOUNT_OPT[4]=" -F vxfs -e -o cio,delaylog,nodatainlog"

Resto:


LV[0]=/dev/vgSAPsn0/lvusrsap; FS[0]=/usr/sap/SAP; FS_MOUNT_OPT[0]=" -F vxfs -e"

Tags: 

Linux - Ups! he eliminado una LUN!

"Las prisas no son buenas"

Hemos creado un VolumeGroup de la siguiente forma:

export LDISK1=/dev/mapper/TEST_DATA01
export LDISK2=/dev/mapper/TEST_RESTO01
export LDISK3=/dev/mapper/TEST_REDO01

export VGNAME=VgTEST01
export LVSICE1=9G
export LVSICE2=10G
export LVSICE3=4000M
export LVSICE4=1G
export LVSICE5=23G

export LVNAME1=lvdata
export LVNAME2=lvdbexec
export LVNAME3=lvredo
export LVNAME4=lvdump
export LVNAME5=lvarch

pvcreate $LDISK1 $LDISK2 $LDISK3
read a
vgcreate $VGNAME $LDISK1 $LDISK2 $LDISK3
read a
echo "Vgcreados: " ; vgdisplay -v $VGNAME
read a

Tags: 

AIX - LINUX : Linux NFS server - Aix NFS Client (vmount: Operation not permitted.)

Por necesidades hoy he tenido que exportar un filesystem por NFS con un linux (SLES) y montar este en un AIX y me he econtrado con el error: (vmount: Operation not permitted.)

Primero edito el fichero exports del linux para indicar el filesystem a exportar y sus parámetros:
vi /etc/exports

En este caso solo pongo una entrada:
/filesystem aix.server.com(rw,nohide,no_root_squash,sync)

Con esto ya puedo reiniciar o arrancar el NFS en linux:

/etc/init.d/nfsserver restart

Tags: 

Ubuntu - Upgrade de 11.04 a 11.10 Problemas: dbus Couldn't connect to system bus - networking waiting up to 60

Al actualizar Ubuntu de 11.04 a 11.10 si nos encontramos con el problema de que arranca sin conexión de red, dando el siguiente mensaje error:
"waiting up to 60 more seconds for the network configuration"
y:
Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused

Y tampoco arranca el entorno gráfico, la solución:

Tags: 

Oracle - HPUX - Crear fichero Pipe para export Oracle

Como crear un fichero de tipo pipe para luego ser usado en un export:

mknod /dev/BASEDATOS.pipe.dmp p

Tras esto ya podemos realizar el export:

exp userid=system/manager file=/dev/BASEDATOS.pipe.dmp full=yes log=exportBASEDATOS.log

Si no creamos el fichero tipo pipe, al realizar el export tendremos un problema ocupación en el filesystem 8-O

Páginas

Subscribe to Badorius RSS