Skip to main content

Posts

Showing posts from August, 2018

HOW TO ADD A LINE WITH ANSIBLE WITH TAB SPACE IN A FILE

-bash-4.2# vi add_line_syslog.yml --- - name: script in order to add in the server list below with TAB spaces a Line in the SYSLOG CONF   hosts: oraking   tasks:     - name: Add a Line  in /etc/syslog.conf in order to delivery that information to another server       lineinfile:         path: /etc/syslog.conf         line: " *.err;auth.notice;auth.info;local0.info \t\t @10.10.10.200 "         insertbefore: ' \*.alert;kern.err;daemon.err '     - name: Restart system-log       command: /usr/sbin/svcadm restart svc:/system/system-log:default

How to add or Increase a File System in Red Hat

1) Verify Multipath Devices in order to know the last one  [root@unixaddiction ~]# multipath -ll mpathd (360060e80139cfc0050209cfc00000994) dm-3 HITACHI,OPEN-V size=650G features='1 queue_if_no_path' hwhandler='0' wp=rw `-+- policy='round-robin 0' prio=1 status=active   |- 11:0:0:2 sdd 8:48  active ready running   `- 12:0:0:2 sdi 8:128 active ready running mpathc (360060e80139cfc0050209cfc00000993) dm-4 HITACHI,OPEN-V size=500G features='1 queue_if_no_path' hwhandler='0' wp=rw `-+- policy='round-robin 0' prio=1 status=active   |- 11:0:0:1 sdc 8:32  active ready running   `- 12:0:0:1 sdh 8:112 active ready running mpathb (360060e80139cfc0050209cfc00000992) dm-6 HITACHI,OPEN-V size=400G features='1 queue_if_no_path' hwhandler='0' wp=rw `-+- policy='round-robin 0' prio=1 status=active   |- 11:0:0:0 sdb 8:16  active ready running   `- 12:0:0:0 sdg 8:96  active ready running mpathi (360060e80139cfc005