Senin, 16 Desember 2019

How to extend logical volume disk on linux centos 7

  Tidak ada komentar
Check the disk size
[[email protected] ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 3.9G     0  3.9G   0% /dev
tmpfs                    3.9G     0  3.9G   0% /dev/shm
tmpfs                    3.9G   17M  3.9G   1% /run
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mapper/centos-root   43G  1.6G   42G   4% /
/dev/sda1               1014M  157M  858M  16% /boot
/dev/mapper/vgdata-data  886G  669G  174G  80% /data
tmpfs                    783M     0  783M   0% /run/user/0
[[email protected] ~]#
Check the volume group size
[[email protected] ~]# vgs
  VG     #PV #LV #SN Attr   VSize     VFree
  centos   1   2   0 wz--n-    48.00g       0
  vgdata   1   1   0 wz--n- <1024.00g <124.00g
[[email protected] ~]#
Check the volume group vgdata size
[[email protected] ~]# vgdislpay vgdata
-bash: vgdislpay: command not found
[[email protected] ~]# lsvg vgdata
-bash: lsvg: command not found
[[email protected] ~]# vgdisplay vgdata
  --- Volume group ---
  VG Name               vgdata
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <1024.00 GiB
  PE Size               4.00 MiB
  Total PE              262143
  Alloc PE / Size       230400 / 900.00 GiB
  Free  PE / Size       31743 / <124.00 GiB
  VG UUID               bqYika-posk-M0Af-A4N1-qJyZ-DLJR-GqndQ5

[[email protected]lhost ~]#
Check the logical volume size
[[email protected] ~]# lvs
  LV   VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root centos -wi-ao----  43.00g
  swap centos -wi-ao----   5.00g
  data vgdata -wi-ao---- 900.00g
[[email protected] ~]#
Extend the logical volume (data lv)
[[email protected] ~]# lvextend -l +31743 /dev/vgdata/data
  Size of logical volume vgdata/data changed from 900.00 GiB (230400 extents) to <1024.00 GiB (262143 extents).
  Logical volume vgdata/data successfully resized.
[[email protected] ~]#
Resize the disk / logical volume
[[email protected] ~]# resize2fs /dev/vgdata/data
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/vgdata/data is mounted on /data; on-line resizing required
old_desc_blocks = 113, new_desc_blocks = 128
The filesystem on /dev/vgdata/data is now 268434432 blocks long.

[[email protected] ~]#
Check the disk size
[[email protected] ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 3.9G     0  3.9G   0% /dev
tmpfs                    3.9G     0  3.9G   0% /dev/shm
tmpfs                    3.9G   17M  3.9G   1% /run
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mapper/centos-root   43G  1.6G   42G   4% /
/dev/sda1               1014M  157M  858M  16% /boot
/dev/mapper/vgdata-data 1008G  669G  291G  70% /data
tmpfs                    783M     0  783M   0% /run/user/0
[[email protected] ~]#
List of pv, vg dan lv
[[email protected] ~]# vgs
  VG     #PV #LV #SN Attr   VSize     VFree
  centos   1   2   0 wz--n-    48.00g    0
  vgdata   1   1   0 wz--n- <1024.00g    0
[[email protected] ~]# lvs
  LV   VG     Attr       LSize     Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root centos -wi-ao----    43.00g
  swap centos -wi-ao----     5.00g
  data vgdata -wi-ao---- <1024.00g
[[email protected] ~]# pvs
  PV         VG     Fmt  Attr PSize     PFree
  /dev/sda2  centos lvm2 a--     48.00g    0
  /dev/sdb1  vgdata lvm2 a--  <1024.00g    0
[[email protected] ~]#st

Jumat, 06 Desember 2019

Selasa, 03 Desember 2019

How to solved The directory is not writable by the Web process: /var/www/html/

  Tidak ada komentar
How to solved The directory is not writable by the Web process: /var/www/html/myview/frontend/web/assets

Check the selinux status
[[email protected] ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
[[email protected] ~]#
Allow selinux to httpd for read and write the directory
[[email protected] ~]# chcon -R -t httpd_sys_content_rw_t /var/www/html/myview/
[[email protected] ~]#
Restart the apache
[[email protected] ~]# service httpd restart
Redirecting to /bin/systemctl restart  httpd.service
[[email protected] ~]#







Senin, 02 Desember 2019

How to solved error while loading shared libraries: libImbCmdLib.so: cannot open shared object file: No such file or directory

  Tidak ada komentar
How to solved  error while loading shared libraries: libImbCmdLib.so: cannot open shared object file: No such file or directory
[[email protected] bin]$ ./mqsilist
./mqsilist: error while loading shared libraries: libImbCmdLib.so: cannot open shared object file: No such file or directory
[[email protected] bin]$        
Running mqsiprofile first
[[email protected] bin]$ . mqsiprofile

MQSI 11.0.0.6
/opt/IBM/ace-11.0.0.6/server

[[email protected] bin]$
[[email protected] bin]$ ./mqsilist
BIP1281I: No integration nodes have been defined on this machine.
BIP8071I: Successful command completion.
[[email protected] bin]$

Minggu, 01 Desember 2019

How to install IBM App Connect Enterprise on Linux Centos 7

  Tidak ada komentar
Download the IBM Ace on linux directory
[[email protected] tmp]# ls
11.0.0.6-ACE-LINUX64-DEVELOP.tar.gz  ks-script-RQtAaj  systemd-private-ec4a4be79d4e45cca9301818f7061119-chronyd.service-rrRVPL  yum.log
[[email protected] tmp]#
[[email protected] tmp]# tar -xzf 11.0.0.6-ACE-LINUX64-DEVELOP.tar.gz
[[email protected] tmp]# ls
11.0.0.6-ACE-LINUX64-DEVELOP.tar.gz  ks-script-RQtAaj                                                         yum.log
ace-11.0.0.6                         systemd-private-ec4a4be79d4e45cca9301818f7061119-chronyd.service-rrRVPL
[[email protected] tmp]# cd ace-11.0.0.6/
[[email protected] ace-11.0.0.6]# ls
ace  common  extensions  ie02  license  readmes  server  swidtag  tools
[[email protected] ace-11.0.0.6]# cd ..
[[email protected] tmp]# ls
11.0.0.6-ACE-LINUX64-DEVELOP.tar.gz  ks-script-RQtAaj                                                         yum.log
ace-11.0.0.6                         systemd-private-ec4a4be79d4e45cca9301818f7061119-chronyd.service-rrRVPL
[[email protected] tmp]#
create IBM folder on opt directory (if you want to share with other user)
[[email protected] tmp]# mkdir /opt/IBM
[[email protected] tmp]#
[[email protected] tmp]# mv ace-11.0.0.6/ /opt/IBM/
Change working directory to ibm ace 
[[email protected] tmp]# cd /opt/IBM/
[[email protected] IBM]# ls
ace-11.0.0.6
[[email protected] IBM]# pwd
/opt/IBM
[[email protected] IBM]# ls
ace-11.0.0.6
[[email protected] IBM]# cd ace-11.0.0.6/
[[email protected] ace-11.0.0.6]# ls
ace  common  extensions  ie02  license  readmes  server  swidtag  tools
[[email protected] ace-11.0.0.6]#
Run following command to install 

[[email protected] ace-11.0.0.6]# ./ace make registry global accept license
International License Agreement for Non-Warranted Programs

Part 1 - General Terms

BY DOWNLOADING, INSTALLING, COPYING, ACCESSING, CLICKING ON
AN "ACCEPT" BUTTON, OR OTHERWISE USING THE PROGRAM,
LICENSEE AGREES TO THE TERMS OF THIS AGREEMENT. IF YOU ARE
ACCEPTING THESE TERMS ON BEHALF OF LICENSEE, YOU REPRESENT
AND WARRANT THAT YOU HAVE FULL AUTHORITY TO BIND LICENSEE
TO THESE TERMS. IF YOU DO NOT AGREE TO THESE TERMS,

* DO NOT DOWNLOAD, INSTALL, COPY, ACCESS, CLICK ON AN
"ACCEPT" BUTTON, OR USE THE PROGRAM; AND

* PROMPTLY RETURN THE UNUSED MEDIA AND DOCUMENTATION TO THE

Press Enter to continue viewing the license agreement, or
enter "1" to accept the agreement, "2" to decline it, "3"
to print it, "4" to read non-IBM terms, or "99" to go back
to the previous screen.
1
License accepted
Group 'mqbrkrs' will be created
[[email protected] ace-11.0.0.6]#

Check the mqbrkrs group and add user to that group
[[email protected] ace-11.0.0.6]# cat /etc/group | grep mqbrkrs
mqbrkrs:x:1001:
[[email protected] ace-11.0.0.6]#
[[email protected] ace-11.0.0.6]# usermod -aG mqbrkrs myquser
[[email protected] ace-11.0.0.6]#

Run the mqsi profiles
[[email protected] bin]$ . mqsiprofile

MQSI 11.0.0.6
/opt/IBM/ace-11.0.0.6/server

[[email protected] bin]$
Check the mqsi list
[[email protected] bin]$ . mqsiprofiles
[[email protected] bin]$ ./mqsilist
BIP1281I: No integration nodes have been defined on this machine.
BIP8071I: Successful command completion.
[[email protected] bin]$
Check the mqsi version


[[email protected] bin]$ ./mqsiservice -v
BIPmsgs  en_US
  Console CCSID=1208, ICU CCSID=1208
  Default codepage=UTF-8, in ascii=UTF-8
  JAVA console codepage name=UTF-8

BIP8996I: Version:    11006
BIP8997I: Product:    IBM App Connect Enterprise
BIP8998I: Code Level: S000-L191002.16138
BIP8999I: Build Type: Production, 64 bit, amd64_linux_2

BIP8974I: Component: DFDL-C, Build ID: 20190218-2330, Version: 1.1.2.0 (1.1.2.0), Platform: linux_x86 64-bit, Type: production

BIP8071I: Successful command completion.
[[email protected] bin]$