26 Mayıs 2021 Çarşamba

OpsCenter / OpsCenter Tuning Status


OpsCenter Tuning Status kısmından şuanki memory ayarlarını ve önerilen değerleri kontrol edebiliriz. INSTALL_PATH\OpsCenter\server\db\conf\server.conf  dosyasını düzenleyerek istenilen ayarları tanımlayabiliriz.

Varsayılan ayarlar aşağıdaki gibi:
-n OPSCENTER_<HOST_NAME> -x tcpip(LocalOnly=YES;BROADCASTLISTENER=0;DOBROADCAST=NO;ME=127.0.0.1;ServerPort=13786) -gd DBA -gk DBA -gl DBA -gp 4096 -ti 0 -c 256M -ch 1024M -cl 256M -zl -os 1M -m  -o "<INSTALL_PATH>\OpsCenter\server\db\log\server.log"

Örnek olarak, initial ve minumum değerinin 1G ve maximum değerinin 7G olması için aşağıdaki şekilde düzenleme yaptık:

-n OPSCENTER_<HOST_NAME> -x tcpip(LocalOnly=YES;BROADCASTLISTENER=0;DOBROADCAST=NO;ME=127.0.0.1;ServerPort=13786) -gd DBA -gk DBA -gl DBA -gp 4096 -ti 0 -c 1G -ch 7G -cl 1G -zl -os 1M -m  -o "<INSTALL_PATH>\OpsCenter\server\db\log\server.log"

-c 256M indicates the initial memory that is reserved for caching database pages and other server information. The default value is 256 MB.

-cl 256M indicates the minimum cache size, as a limit to automatic cache resizing. The default minimum cache size is 256 MB.

-ch 1024M indicates the maximum cache size, as a limit to automatic cache growth. The default maximum cache size is1024 MB.


https://www.veritas.com/content/support/en_US/doc/91541840-127431414-0/v92697731-127431414

23 Mayıs 2021 Pazar

Linux / Change ip address in RHEL 6.1

ifconfig ile aktif kart kontrole edilip, ilgili kart üzerindeki konfig değiştirilerek network servisi restart edilir.

[root@server ~]# ifconfig

bond0        Link encap:Ethernet  HWaddr 80:RT:BA:82:44:4A

                 inet addr:192.168.11.24  Bcast:192.168.2.255  Mask:255.255.255.0

/etc/sysconfig/network-scripts/ifcfg-eth0

/etc/sysconfig/network-scripts/ifcfg-bond0

[root@server ~]# vi /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0

IPADDR=192.168.11.25

NETMASK=255.255.255.0

GATEWAY=192.168.2.1

ONBOOT=yes

BOOTPROTO=none

USERCTL=no

NM_CONTROLLED=no

TYPE=Bond

BONDING_MASTER=yes

BONDING_OPTS="mode=4 miimon=100 lacp_rate=1"

service network restart

17 Mayıs 2021 Pazartesi

Linux / Ubuntu update

Ubuntu update için aşağıdaki komutları kullanabiliriz.

root@ubuntuserver:~$ sudo apt update

Hit:1 http://tr.archive.ubuntu.com/ubuntu focal InRelease

Hit:2 http://tr.archive.ubuntu.com/ubuntu focal-updates InRelease

Hit:3 http://tr.archive.ubuntu.com/ubuntu focal-backports InRelease

Hit:4 http://tr.archive.ubuntu.com/ubuntu focal-security InRelease

Reading package lists... Done

Building dependency tree

Reading state information... Done

All packages are up to date.

root@ubuntuserver:~$ apt list --upgradable

Listing... Done


Upgrade edilebilecek paketlerin olması durumunda aşağıdaki komut ile yapılabilir.

root@ubuntuserver:~$sudo apt upgrade

11 Mayıs 2021 Salı

Linux / NFS

Linux sistemler üzerinde nfs tanımları için aşağıdaki adımları uygulayabiliriz.

SLES 15 SP2 de NFS Client kurulu geliyor, yast2 uygulaması ile NFS client ayarları yapılabilir.


systemctl status nfs-server.service

systemctl reload nfs-server.service


nfsserver:~ # rpm -qa |grep nfs

nfs-client-2.1.1-10.10.1.x86_64

yast2-nfs-client-4.2.8-1.13.noarch

nfs-kernel-server-2.1.1-10.4.1.x86_64

nfsidmap-0.26-3.3.1.x86_64

yast2-nfs-server-4.2.4-1.68.noarch

libnfs8-1.11.0-1.28.x86_64

yast2-nfs-common-4.2.4-1.68.noarch

rpm -Uhv nfs-kernel-server-2.1.1-6.10.2.x86_64.rpm

rpm -Uhv yast2-nfs-server-4.0.1-3.3.1.noarch.rpm


nfsserver:~ # cat /etc/exports

#NFS SERVER

/sapmnt         1.1.1.101(rw,root_squash,sync,no_subtree_check) 1.1.1.102(rw,root_squash,sync,no_subtree_check) 1.1.1.103(rw,root_squash,sync,no_subtree_check) 1.1.1.104(rw,root_squash,sync,no_subtree_check) 1.1.1.105(rw,root_squash,sync,no_subtree_check)

/usr/sap/trans  1.1.1.101(rw,root_squash,sync,no_subtree_check) 1.1.1.102(rw,root_squash,sync,no_subtree_check) 1.1.1.103(rw,root_squash,sync,no_subtree_check) 1.1.1.104(rw,root_squash,sync,no_subtree_check) 1.1.1.105(rw,root_squash,sync,no_subtree_check)


app1:/ # df -h -T |grep nfs

1.1.1.123:/sapmnt            nfs4      200G   13G  188G   7% /sapmnt

1.1.1.123:/usr/sap/trans     nfs4      250G  288M  250G   1% /usr/sap/trans


app1:/usr/sap/trans # ls

ls: cannot open directory '.': Permission denied


Bu hatanın çözümü için NFS server üzerindeki klasörde yetkilendirme yapıldı

---------------------------------------------------------

nfsserver:/ # ls -ld /usr/sap/trans

drwxrwx--x 13 root sapsys 147 Mar 17 14:10 /usr/sap/trans


nfsserver:/ # chmod o+rw /usr/sap/trans


nfsserver:/ # ls -ld /usr/sap/trans

drwxrwxrwx 13 root sapsys 147 Mar 17 14:10 /usr/sap/trans

-----------------------------------------------------------

app1:/usr/sap/trans # cat /etc/fstab

/dev/vg-swap/lv-swap           swap            swap  defaults  0  0

/dev/vg-system/lv-root         /               ext4  defaults  0  1

/dev/vg-usrsap/lv-usrsap       /usr/sap        xfs   defaults  0  0

UUID=A3C1-7B78                 /boot/efi       vfat  defaults  0  2


#NFS CLIENT

1.1.1.123:/usr/sap/trans  /usr/sap/trans  nfs   defaults  0  0

1.1.1.123:/sapmnt         /sapmnt         nfs   defaults  0  0

10 Mayıs 2021 Pazartesi

Linux / ISCSI disk mount

ISCSI ile login olunarak diskin mount edilmesi için aşağıdaki komutları çalıştırabiliriz.

iscsiadm -m node -l
mount /dev/dg_fd28fc2b7dc06/lv_f8dc0b3c09ad4 /app_data

Windows Server IIS üzerinden hizmet veren bir FTP servisine erişmek istediğimizde;  Internet Explorer, FileZilla vb. uygulamalar ile erişim ...