Skip to main content

Posts

HOW TO CREATE VNIC OVER INTERFACES SOLARIS 11.X

HOW TO CREATE VNIC OVER INTERFACES SOLARIS 11.X     1.- The first that you need to know is what interfaces is available   #dladm show-phys LINK              MEDIA      STATE      SPEED  DUPLEX    DEVICE net0              Ethernet    up        0      unknown   vnet0  2.- You will need to plumb the interface, in previous solaris release you can use "ifconfig net0 plumb" , however in Solaris 11.X, we will need to use the command ipadm #ipadm create-ip net0 3.- Now you need to assign ip address to the net0 and add the Default GW  #ipadm create-addr -T static -a 10.1.1.3/24 net0/ipv4 #route -p add default 10.1.1.1 4.-Finally you can create VNIC's or Virtual Interfaces with the aliases  #ipadm create-addr -T static -a 10.1.1.4/24 net0/prote #ipadm create-addr -T static -a 10.1.1.5/24 net0/prder #ipadm create-addr -T static -a 10.1.1.6/24 net0/prder1 NAME              CLASS/TYPE STATE        UNDER      AD

HOW TO CONFIGURE ACTIVE/BACKUP BONDING IN RED HAT

HOW TO CONFIGURE ACTIVE/BACKUP   BONDING IN RED HAT You will need identify the interfaces that you need to configure on the server and confirm with Networking the configuration for those port. In our case I will configure the interfaces em4 and em5 in bonding, with a bond0 and after that I will configurate a bond0.23 refering the VLAN 23 over the bonding (bond0) The configuration for the interfaces is the following: #vi/etc/sysconfig/network-scripts/ifcfg-em4 DEVICE=em4 MASTER=bond0 SLAVE=yes TYPE=Ethernet ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=static #vi /etc/sysconfig/network-scripts/ifcfg-em5 DEVICE=em5 TYPE=Ethernet MASTER=bond0 ONBOOT=yes SLAVE=yes NM_CONTROLLED=no BOOTPROTO=static After defining the configuration in the interfaces, I will need to define the bonding #vi /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 TYPE=Ethernet ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=static BONDING_OPTS="mode=1 miimon=50 primary=em4" The BONDING_OPTS, define

HOW TO DISABLE SELINUX REDHAT

HOW TO DISABLE SELINUX REDHAT 1.-Log as root into the server #vi /etc/selinux/config 2.-Edit the following line as below SELINUX = disabled 3.-Reboot the system #init 6 4.-Verify the new SELINUX configuration #getenforce disabled

How to install multilibs Red Hat i686 and x86_x64

HOW TO INSTALL MULTILIBS RED HAT  1.- After installing the OS you will need to have access to Internet if you do not have a internal repository. You will need to add the following line in red  on the /etc/yum.conf (Edit) # cat /etc/yum.conf [main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=3 proxy=http://191.128.1.110:8080 proxy_username=spoon proxy_password=spooner #MULTILIBS multilib_policy=all On other hand if you have a proxy in order to have connection to internet, you can add the lines in Blue in the file above. proxy=http://191.128.1.110:8080 proxy_username=spoon proxy_password=spooner Finally you can add the packages that you need in i686 and x64_x86 #yum search openmotif Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, refresh-packagekit, security, subscription-manager, tmprepo, verify, versionlock [Errn

How to make a database full export

How to make a database full export. expdp user/password FULL=y DIRECTORY=data_pump_dir DUMPFILE=full%U.dmp FILESIZE=30G LOGFILE=myfullexp.log This will generate full01.dmp, full02.dmp, full03.dmp files and so on. data_pump_dir= This can be obtained and modified from dba_directories tables. FILESIZE=Is the size for each dump file. This is useful for big files.

How to mount a CIFS Solaris / Linux

Use the mount command in order to mount #mount -t cifs -o username=canio // 10.1.1.1/cantus /mnt Edit the fstab or vfstab for the Operating System //IP_SERVER/Resource_to_share    /mountpoint    cifs   noauto,users,username=XXXXXX, workgroup=XXXXX,password=XXXXX   0   0 Example with Linux panel:/panel# more /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point>   <type>  <options>       <dump>  <pass> proc            /proc           proc    defaults        0       0 /dev/sda5       /               ext3    defaults,errors=remount-ro 0       1 /dev/sda1       /boot           ext3    defaults        0       2 /dev/sda7       /tmp            ext3    defaults        0       2 /dev/sda8       /usr            ext3    defaults        0       2 /dev/sda6       /var            ext3    defaults        0       2 /dev/sda2       none            swap    sw              0       0 /dev/hda        /media/

LUN re-scans Linux Red Hat RHEL

 LUN re-scans  RHEL 1.- Validate the fc_host that you are using for the disks on the server # ls /sys/class/fc_host host0 host1  2.-Execute the command in both fc_host in order to scan them. #echo "1" > /sys/class/fc_host/ host0 /issue_lip #echo "- - -" > /sys/class/scsi_host/ host0 /scan #echo "1" > /sys/class/fc_host/ host1 /issue_lip #echo "- - -" > /sys/class/scsi_host/ host1 /scan 3.-Validate that you have the new disks on the server # fdisk -l