5 Aralık 2021 Pazar

Windows / Windows Server 2008 R2 boots into system recovery options

Windows Server 2008 R2 boot sorununda aşağıdaki adımları uygulayabiliriz.

  • Put the Windows Server 2008 R2 installation disc into the disc drive, and then start the computer.
  • Press a key when the message indicating "Press any key to boot from CD or DVD …". appears.
  • Select a language, a time, a currency, and a keyboard or another input method, and then click Next.
  • Click Repair your computer.
  • Click the operating system that you want to repair, and then click Next.
  • In the System Recovery Options dialog box, click Command Prompt.
  • BOOTREC /FIXMBR, and then press ENTER. 
  • BOOTREC /FIXBOOT, and then press ENTER.
  • Bootrec /RebuildBcd
  • x:\sources\recovery\StartRep.exe

28 Ekim 2021 Perşembe

NetBackup / EMC DataDomain Configuration over FC

NetBackup ile EMC DataDomain FC entegrasyonu öncesinde OST plugin kurulumu yapıyoruz.

EMC DataDomain ile NetBackup arasında fiber bağlantıları yapıyoruz. 

SAN SW üzerinde alias zone tanımlarını yapıyoruz.

EMC DataDomain üzerinde fiber tanımlarını acces grup ayarlarınıyapıyoruz.


EMC DataDomain üzerinde fc ismini kontrol etmek için aşağıdaki komutu çalıştırabiliriz.

sysadmin@dd1# ddboost fc dfc-server-name show
DDBoost dfc-server-name: dd1
Configure clients to use "DFC-dd1" for DDBoost FC.

13 Ekim 2021 Çarşamba

Active Directory / Get-ADPrincipalGroupMembership

Active Directory'de bir kullanıcının üyeliklerini export almak için aşağıdaki komutu kullanabiliriz.

Get-ADPrincipalGroupMembership username| Select Name | Export-CSV -path C:\UserMembers.csv -NoTypeInformation

8 Ekim 2021 Cuma

NetBackup / testpassphrase

NetBackup passphrase parolasını admincmd altında aşağıdaki şekilde kontrol edebiliriz.

\admincmd>nbhostidentity -testpassphrase -infile C:\NB_Catalog\1633681347_FULL.drpkg

Specify the passphrase that is associated with the disaster recovery package.

Passphrase: **********

The specified passphrase is valid for the disaster recovery package - C:\NB_Catalog\1633681347_FULL.drpkg.

Command is successfully carried out.

1 Ekim 2021 Cuma

NetBackup / Rredirect the Accelerator track log to a different location

When performing an Accelerator enabled backup, track logs are created on the NetBackup client systems.

These track logs can be found at the following locations:

Windows: install_path\NetBackup\track

Under this directory, there will be a number of directories created that correspond to the master server name, storage server name, policy name, client name, and backup selections

Redirect the new backups to the new destination

1. Launch the registry editor by clicking Start > Run and then type in regedit

2. Use the tree control on the left hand side to navigate to the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Veritas\NetBackup\CurrentVersion\Paths

3. Add a new registry entry:

a. Right click on Paths.

b. Select New > String Value.

c. Change New Value to TRACK_JOURNAL_PATH

d. Right click on TRACK_JOURNAL_PATH and select Modify...

e. Enter E:${_ps}track in the Value data: field.

Note: Be very careful to use the path separator variable '${_ps}' for each backslash (\) character in the path.

f. Select OK to save the change to the registry

https://www.veritas.com/content/support/en_US/article.100038114

15 Eylül 2021 Çarşamba

EMC DD / user password aging

EMC DataDomain lokal kullanıcı parolasını never expire yapmak.

sysadmin@datadomain# user password aging show

User       Password       Minimum Days     Maximum Days     Warn Days       Disable Days   Status

           Last Changed   Between Change   Between Change   Before Expire   After Expire

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

ddboost    Sep 10, 2021   0                90                  7               never          enabled

sysadmin   Jun 11, 2021   0                99999999       7               never          enabled

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

sysadmin@datadomain# user password aging set ddboost max-days-between-change 99999999

User "ddboost's" password aging information has been updated.

sysadmin@datadomain# user password aging show

User       Password       Minimum Days     Maximum Days     Warn Days       Disable Days   Status

           Last Changed   Between Change   Between Change   Before Expire   After Expire

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

ddboost    Sep 10, 2021   0               99999999         7               never          enabled

sysadmin   Jun 11, 2021   0                99999999         7               never          enabled

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

https://www.dell.com/support/kbdoc/tr-tr/000057030/ddboost-user-shows-locked-status?lang=en


9 Eylül 2021 Perşembe

NetBackup / vxupdate

Use the nbrepo command line to add packages to the repository

Download the files with the desired NetBackup client version (nbclient_version) and operating system (operatingsystem). The files to dowload will be named in the following format:

vxupdate_nbclient_version_operatingsystem_platform.sja

Once downloaded, place this in a directory on the master server, for example:
/tmp
C:\temp

The packages can then be added to the repository with the command:

Windows master:
<install_path>\Veritas\NetBackup\bin\admincmd\nbrepo.exe -a C:\temp\vxupdate_nbclient_version_operatingsystem_platform.sja

UNIX/Linux master:
# /usr/openv/netbackup/bin/admincmd/nbrepo -a /tmp/vxupdate_nbclient_version_operatingsystem_platform.sja

Use the following command to confirm the package has been added to the repository:
Windows master:  <install>\Veritas\NetBackup\bin\admincmd\nbrepo -l

UNIX/Linux master:  /usr/openv/netbackup/bin/admincmd/nbrepo -l

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

C:\Program Files\Veritas\NetBackup\bin\admincmd>nbrepo.exe -a C:\temp\vxupdate_nb_9.1.0.1_windows_x64.sja
Adding package to the repository. This may take a few minutes...
Successfully added deployment package ID: 1 to the repository.

C:\Program Files\Veritas\NetBackup\bin\admincmd>nbrepo.exe -l
ID Type          Version OS          File Name
-- ------------- ------- ----------- -----------------------------------
1  server+client 9.1.0.1 windows_x64 vxupdate_nb_9.1.0.1_windows_x64.sja



3 Eylül 2021 Cuma

NetBackup / SLP

How to get details of all SLP versions?

(for UNIX) /usr/openv/netbackup/bin/admincmd
(for Windows)  \Netbackup\bin\admincmd

nbstl -L -all_versions

How to display one specific SLP's versions ( where SLP3 below is the name of the SLP )

nbstl SLP3 -L -all_versions

How to delete one specific version of SLP's ( where SLP3 below is the name of the SLP, 3 is version )

nbstl SLP3 -delete -version 3

23 Haziran 2021 Çarşamba

3PAR / Arızalı Disk Değişimi

HP 3PAR storage üzerinde disk arızası yaşandığında, aşağıdaki adımları takip edebiliriz.
  • showalert  komutu ile loglar incelenip arızalı disk tespiti yapılmalıdır.  Arızalı diskin üzerinde turuncu led yanıyor olur.
  • showpd -degraded -failed komutu ile ilgili diskleri tespit edebiliriz.

3PAR01 cli% showpd -degraded -failed
                           --Size(MB)-- ----Ports----
Id CagePos Type RPM State    Total Free A      B      Capacity(GB)
17 0:17:0  FC    10 failed 1142784    0 -----  -----          1200
------------------------------------------------------------------
 1 total                   1142784    0
3PAR01 cli%

3PAR01 cli% servicemag status
Cage 0, magazine 17:
The magazine was successfully brought offline by a servicemag start command.
The command completed at Mon Jun 14 05:29:45 2021.
servicemag start -wait -pdid 17 -- Succeeded
3PAR01 cli%
  • servicemag status komutu ile arızalı diskin üzerindeki dataların diğer disklere aktarılmış olduğunun kontrolü yapılmalıdır.  Komut çıktısının son satırında “servicemag start 0 9  -- successfull” ibaresini görmeliyiz. Sonrasında disk değişimi yapabiliriz. Değişim sonrasında datalar yeni diske taşınmaya başlayacak.
  • Disk değişiminden 5 dakika sonra sürecin takibini yapabilmek için  servicemag status komutu çalıştırabiliriz. Komut çıktısının son satırında “servicemag resume 0 9  -- in progress” ibaresini görmeliyiz. 
  • Süreç tamamlandığında, servicemag status komutu çalıştırdığımızda herhangi bir çıktı vermeyecektir.

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

14 Nisan 2021 Çarşamba

MS-SQL / Rename a computer that hosts a stand-alone instance of SQL Server

For a renamed computer that hosts a default instance of SQL Server, run the following procedures:

EXEC sp_dropserver '<old_name>';  
GO  
EXEC sp_addserver '<new_name>', local;  
GO

Restart the instance of SQL Server.

For a renamed computer that hosts a named instance of SQL Server, run the following procedures:

EXEC sp_dropserver '<old_name\instancename>';  
GO  
EXEC sp_addserver '<new_name\instancename>', local;  
GO

Restart the instance of SQL Server.

After the Renaming - Verify renaming operation

Select information from either @@SERVERNAME or sys.servers. The @@SERVERNAME function will return the new name, and the sys.servers table will show the new name. The following example shows the use of @@SERVERNAME.

SELECT @@SERVERNAME AS 'Server Name';  

6 Nisan 2021 Salı

SafeNet / Replicate Token

SafeNet üzerinde slot bilgisini başka bir slota kopyalamak için aşağıdaki komutu kullanabiliriz. 

C:\Program Files (x86)\SafeNet\Protect Toolkit 5\Protect Toolkit C SDK\bin>ctkmu rt -s 17 -d 117

ProtectToolkit C Key Management Utility 5.0.0

Copyright (c) Safenet, Inc. 2009-2014

Enter user PIN for slot 17:

Replicate slot 17 to slot 117: SUCCESS

2 Nisan 2021 Cuma

Linux / Ubuntu 20.10 netplan apply

Ubuntu Server 20.10 versiyonunda /etc/netplan altindaki diger dosyalardan da ip aliyor, tek bir dosya olmasi daha uygun gözüküyor.

sudo vi  /etc/netplan/00-installer-config.yaml

# This is the network config written by 'subiquity'

network:

  ethernets:

    ens160:

      addresses:

      - 192.168.x.28/24

      gateway4: 192.168.x.1

      nameservers:

        addresses:

        - 192.168.x.109

        - 192.168.x.152

        - 192.168.x.134

        search:

        - domain.com.tr

  version: 2

sudo netplan apply

root@ubuntu20:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 20.10

Release:        20.10

Codename:       groovy

17 Mart 2021 Çarşamba

Linux / Read-only file system

Linux sistem üzerinde input/output hataları sonrasında boot problemi oluşabilir.

Bu durumda kurulum medyası ile Rescue Mode erişim yapılarak / bağlı olduğu disk bolümünde fsck yapılabilir.

Örnek:  fsck /dev/vg0/lv0

servername:/boot # ls
ls: cannot open directory '.': Input/output error

servername:/boot # cat /et-bash: cannot create temp file for here-document: Input/output error
-bash: cannot create temp file for here-document: Input/output error                                                      
servername:/ # cat /etc/os-bash: cannot create temp file for here-document: Read-only file system
-bash: cannot create temp file for here-document: Read-only file system
-bash: cannot create temp file for here-document: Read-only file system
-bash: cannot create temp file for here-document: Read-only file system

12 Mart 2021 Cuma

Linux / sudo yetkili kullanıcılar

Aşağıdaki komut ile sudo yetkili gruplar kontrol edilebilir.

[root@servername ~]# grep -v "#" /etc/sudoers |grep "ALL="
root    ALL=(ALL)       ALL
%wheel  ALL=(ALL)       ALL

Aşağıdaki komutlar ile de grup üyeleri kontrol edilebilir.

[root@servername ~]# grep "root:" /etc/group
root:x:0:root
[root@servername ~]# grep "wheel:" /etc/group
wheel:x:10:

9 Mart 2021 Salı

Hitachi / Remote Ops Service Processor Agent Version D.6

Hitachi Remote Operations (önceki adı ile Hi-Track, kısaca HRO) yazılımı aktif kontratı bulunan sistemlerin sağlık durumlarının düzenli olarak raporlanmasını ve bir arıza durumunda otomatik olarak çağrı kaydı oluşturulmasını sağlayan bir servistir.

Yeni versiyona geçişte önceki versiyondan tüm ayarlar korunduğu için bir değişiklik ya da düzenleme yapılmasına gerek bulunmuyor, sistem eski versiyonu silerek yenisini aynı ayarlar ile kuruyor.

Download:
Support Portal’e login olduktan sonra Answers / Downloads /  Software Download / Remote Ops (Hi-Track)  seçip ekranın en altındaki menüden Remote Ops Agent seçip D6 ISO download ediyoruz.

ISO’yu SVP üzerine kopyalayıp extract ettikten sonra kurulum uygulamasını çalıştırdığımızda eski versiyonu uninstall edip yenisini kuruyor.

 





4 Mart 2021 Perşembe

Linux / SUSE 15 SP2 upgrade

The easiest upgrade path is consecutively installing all service packs. 
For the SUSE Linux Enterprise 15 product line (GA and the subsequent service packs) it is also supported to skip one service pack when upgrading. 
For example, upgrading from SLE 15 GA to 15 SP2 or from SLE 15 SP1 to 15 SP3 is supported.




24 Şubat 2021 Çarşamba

NetBackup / bptestbpcd

NetBackup master sunucu ile client bağlatı durumunu kontrol etmek için admincmd altında aşağıdaki komutu çalıştırabilirz.

 Program Files\Veritas\NetBackup\bin\admincmd>bptestbpcd.exe -client client-name -debug -verbose

3 Şubat 2021 Çarşamba

NetBackup / Registering authorized locations used by a NetBackup database script-based policy

Status Code: (5449) The script is not approved for execution.

To add an authorized location

  1. Open a command prompt on the client.
  2. Use nbsetconfig to enter values for an authorized location. The client privileged user must run these commands.
On UNIX, to update the bp.conf file:
# /usr/openv/netbackup/bin/nbsetconfig
nbsetconfig>DB_SCRIPT_PATH = /Oracle/scripts
nbsetconfig>DB_SCRIPT_PATH = /db/Oracle/scripts/full_backup.sh
nbsetconfig>
<ctrl-D>
 
On Windows, to update the registry with a new "String Value" Registry entry:
C:\Program Files\Veritas\NetBackup\bin>nbsetconfig
nbsetconfig>DB_SCRIPT_PATH=c:\db_scripts
nbsetconfig>DB_SCRIPT_PATH=e:\oracle\fullbackup\full_rman.sh
nbsetconfig>
<Ctrl+Z> and ENTER


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