Senin, 16 Desember 2019

How to extend logical volume disk on linux centos 7

  Tidak ada komentar
Check the disk size
[root@localhost ~]# 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
[root@localhost ~]#
Check the volume group size
[root@localhost ~]# 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
[root@localhost ~]#
Check the volume group vgdata size
[root@localhost ~]# vgdislpay vgdata
-bash: vgdislpay: command not found
[root@localhost ~]# lsvg vgdata
-bash: lsvg: command not found
[root@localhost ~]# 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

[root@localhost ~]#
Check the logical volume size
[root@localhost ~]# 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
[root@localhost ~]#
Extend the logical volume (data lv)
[root@localhost ~]# 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.
[root@localhost ~]#
Resize the disk / logical volume
[root@localhost ~]# 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.

[root@localhost ~]#
Check the disk size
[root@localhost ~]# 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
[root@localhost ~]#
List of pv, vg dan lv
[root@localhost ~]# 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
[root@localhost ~]# 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
[root@localhost ~]# pvs
  PV         VG     Fmt  Attr PSize     PFree
  /dev/sda2  centos lvm2 a--     48.00g    0
  /dev/sdb1  vgdata lvm2 a--  <1024.00g    0
[root@localhost ~]#st

Jumat, 06 Desember 2019

How to mount ntfs disk to linux debian proxmox

  Tidak ada komentar
Running following command line
root@VSERVER:~# ntfs-3g /dev/sdg1 /mnt/ntfs
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
root@VSERVER:~#
root@VSERVER:~# cd /mnt/ntfs/
root@VSERVER:/mnt/ntfs# ls
BackupPlus.ico  
root@VSERVER:/mnt/ntfs#
root@VSERVER:/mnt/ntfs# touch test

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
[root@localhost ~]# 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
[root@localhost ~]#
Allow selinux to httpd for read and write the directory
[root@localhost ~]# chcon -R -t httpd_sys_content_rw_t /var/www/html/myview/
[root@localhost ~]#
Restart the apache
[root@localhost ~]# service httpd restart
Redirecting to /bin/systemctl restart  httpd.service
[root@localhost ~]#







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
[myquser@localhost bin]$ ./mqsilist
./mqsilist: error while loading shared libraries: libImbCmdLib.so: cannot open shared object file: No such file or directory
[myquser@localhost bin]$        
Running mqsiprofile first
[myquser@localhost bin]$ . mqsiprofile

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

[myquser@localhost bin]$
[myquser@localhost bin]$ ./mqsilist
BIP1281I: No integration nodes have been defined on this machine.
BIP8071I: Successful command completion.
[myquser@localhost 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
[root@localhost tmp]# ls
11.0.0.6-ACE-LINUX64-DEVELOP.tar.gz  ks-script-RQtAaj  systemd-private-ec4a4be79d4e45cca9301818f7061119-chronyd.service-rrRVPL  yum.log
[root@localhost tmp]#
[root@localhost tmp]# tar -xzf 11.0.0.6-ACE-LINUX64-DEVELOP.tar.gz
[root@localhost 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
[root@localhost tmp]# cd ace-11.0.0.6/
[root@localhost ace-11.0.0.6]# ls
ace  common  extensions  ie02  license  readmes  server  swidtag  tools
[root@localhost ace-11.0.0.6]# cd ..
[root@localhost 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
[root@localhost tmp]#
create IBM folder on opt directory (if you want to share with other user)
[root@localhost tmp]# mkdir /opt/IBM
[root@localhost tmp]#
[root@localhost tmp]# mv ace-11.0.0.6/ /opt/IBM/
Change working directory to ibm ace 
[root@localhost tmp]# cd /opt/IBM/
[root@localhost IBM]# ls
ace-11.0.0.6
[root@localhost IBM]# pwd
/opt/IBM
[root@localhost IBM]# ls
ace-11.0.0.6
[root@localhost IBM]# cd ace-11.0.0.6/
[root@localhost ace-11.0.0.6]# ls
ace  common  extensions  ie02  license  readmes  server  swidtag  tools
[root@localhost ace-11.0.0.6]#
Run following command to install 

[root@localhost 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
[root@localhost ace-11.0.0.6]#

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

Run the mqsi profiles
[myquser@localhost bin]$ . mqsiprofile

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

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


[myquser@localhost 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.
[myquser@localhost bin]$