0% found this document useful (0 votes)
29 views

Deepak_Linux_GCp Azure

Uploaded by

manogara05
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Deepak_Linux_GCp Azure

Uploaded by

manogara05
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

GCP Commands

Saturday, July 8, 2023 3:59 PM

To list out the disk in GCP server gcloud compute disks resize <name_of_the_disk> --size=50GB --zone=<zone>
To see zone, status etc sudo gcloud compute instances list | grep -i vlgdbf79 (in dlm-lts01)
To list all GCP instances sudo gcloud compute instances list
To list specific GCP instances sudo gcloud compute instances list | grep -i <servername>
To list two servers info at one time sudo gcloud compute instances list | egrep -i '<servername1> | <servername2>'
To start a instance sudo gcloud compute instances start <servername>
To stop a instances sudo gcloud compute instances stop <servername>
To list disks sudo gcloud compute disks list | grep -i <servername>
To detach a disk sudo gcloud compute instances detach-disk <servername> --disk= <diskname>
To attach a disk sudo gcloud compute instances attach-disk <servername> --disk= <diskname>
To attach disk as boot disk sudo gcloud compute instances attach-disk <servername> --disk= <diskname> --boot
To know about detailed Information sudo gcloud compute instance describes <servername>
To check machine images sudo gcloud compute machine-images list | grep -i <server_name >
To check snapshot sudo gcloud compute snapshots list | grep -i <disk_name >
For Zone Migration
gcloud beta compute instances detach-disk vlgdbnd3 --disk vlgdbnd3-20220328074715 --
zone=europe-west5-c

gcloud beta compute instances attach-disk vlgdbod3 --disk=vlgdbod3 --zone=europe-west5-a

mount /dev/sdc3 /mnt


To resize the disk gcloud compute disks resize DISK_NAME--size DISK_SIZE

If need to zone specified (--zone=<name of the zone)

To see tags of a server sudo gcloud compute instances list --format="table(name,status,tags.list())" | grep -i
<server_name>

Linux Page 1
Commands
Thursday, July 20, 2023 6:55 PM

To kill Zombie process ps axo stat,ppid,pid,comm | grep -w defunct | awk '{ print $2}' | xargs kill -9
To check the port is open netstat -tulpn | grep LISTEN | grep :80
To check open deleted file lsof -nP | grep '(deleted)' | awk '{print $2}' |wc -l
To delete open deleted file lsof -nP | grep '(deleted)' | awk '{print $2}' | xargs kill -9
To copy the file cp vlgdbc54.tar /tmp/bak_vlgdbc54.tar
To unzip the file tar -xvf vlgdbc54.tar - unzip
To know about pid,ppid ps -eo pmem,comm,pid,ppid |sort -nr |head
To know running services Systemctl
To know about failed services Systemctl | grep failed
To know file size which is consuming high find / -mount -xdev -size +100000000c -exec ls -lh {} \;
To find Application related files are cat /var/log/messages | grep -i 'Delete ABAP session' | wc -l
consuming high
To check process and PID ps -ef | grep -i '/home/nagios/checkscripts/check_sm_filesystems.pl' | grep nagios | wc -l
To kill the process and its related process ps -ef | grep -i '/home/nagios/checkscripts/check_sm_filesystems.pl' | grep nagios | awk '{print $2}' |
xargs kill -9
To list file immutable lsattr <filename>
To make a file immutable chattr +i(small letter) <filename>

For recursively, chattr +i(small letter) -RV <filename>


To remove a file immutable chattr -i(small letter) <filename>
To see a list of all of the active units that systemctl list-units
systemd knows about systemctl list-units --all
systemctl list-units --all --state=inactive
systemctl list-units --type=service
To see every available unit file within the systemctl list-unit-files
systemd paths, including those that systemd
has not attempted to load, you can use the
list-unit-files command
To check zombie process ps aux | egrep "Z|defunct"
To check file size using du du -a -h /var/log | sort -h -r

Linux Page 2
UNIX/LINUX ADMIN PAGE
Monday, July 10, 2023 10:32 AM

Unix admin
access

Linux Page 3
Mount Old Boot Disk
Tuesday, July 11, 2023 11:20 AM

Reference : 2380090965

Linux Page 4
SAMBA
Tuesday, July 25, 2023 2:35 PM

Samba-Issues after patching-weekend - Fast workaround:

12.5:
- works with latest version 4.15.13+git.621.c8ae836ff82-3.85.1
--> nsswitch.conf with records for winbind
--> windbind must run
--> increased range for GLOBAL to 1000000 - 2000000
--> files/directories are created with correct owner (UID)

15.4:
- works with latest version 4.15.13+git.636.53d93c5b9d6-150400.3.23.1
--> nsswitch.conf with records for winbind
--> windbind must run
--> files/directories are created with correct owner (UID)

15.2:
- works with latest version 4.11.14+git.386.cc81f3dca2-150200.4.47.1
--> nsswitch.conf with records for winbind
--> windbind must run
--> increased range for GLOBAL to 1000000 - 2000000
--> files/directories are created with correct owner (UID)

But we will still crosscheck until we take this changes live.

Linux Page 5
To Delete Exports in Server
Thursday, July 27, 2023 10:25 AM

Step1: Step2:

Check in /etc/exports. Make a copy of export file in notepad and make sure to
Uncomment it from destination server
Whether the requested mount is present in that.

To delete it , make uncomment of the line.

Step3:

Unmount the folder, by using the command in destination folder

umount -l <mount point>


Quick Note
L - lazy mount

Uncomment in Export file


Uncomment in destination server
Unmount in destination server

Linux Page 6
Backup Hung Issue
Monday, July 31, 2023 1:09 PM

Hello Colleagues,
Reference: 2380110387

SID : BIQ
Host name : lddbbiq.wdf.sap.corp
BAckup client: vlgdbbiq

As per the Nagios Perfdata SWAP and CPU consumption is high.

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

CPU: 96
1 day (99% collected) - avg 2% / max 62%
3 days (100% collected) - avg 2% / max 85%
30 days (100% collected) - avg 3% / max 100%
90 days (100% collected) - avg 3% / max 100%
Total RAM: 1411 GB
1 day (95% collected) - avg 73% / max 75%
3 days (98% collected) - avg 73% / max 92%
30 days (100% collected) - avg 91% / max 97%
90 days (100% collected) - avg 88% / max 97%
Total SWAP: 5 GB
1 day (95% collected) - avg 17% / max 18%
3 days (98% collected) - avg 18% / max 54%
30 days (100% collected) - avg 0% / max 54%
90 days (100% collected) - avg 0% / max 0%

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

Load average also high.

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

vlgdbbiq:~ # uptime
07:19:40 up 16 days 9:53, 1 user, load average: 24.63, 23.82, 23.45

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

Upon checking memory consumption is due to SID related processes.

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

vlgdbbiq:~
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6585 biqadm 20 0 1.011t 1.004t 0.017t S 272.9 72.89 17202:06 hdbindexserver
4938 biqadm 20 0 29.961g 0.015t 817088 S 2.970 1.094 117:42.64 hdbnameserver
11843 biqadm 20 0 26.216g 7.950g 262396 S 1.650 0.563 58:31.09 hdbdiserver

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

Linux Page 7
Kindly check from your end and clear unwanted process.

If memory is not cleared, server reboot is required, kindly stop all the applications and revert the ticket to us with
approval for reboot

Downtime : 1 hour.

Linux Page 8
User Management
Monday, July 31, 2023 1:11 PM

When switching as root user, it is pointed towards DB server.

Step -1:

In that need to compare the present /etc/passwd with backup passwd file which is present in the
Path /sapmnt/dlm/services/gcp/sm_osbackups/servername

Step -2:

Here backup file will be present as tar file and to open this file need to unzip to /tmp directory.

To copy the file - cp vlgdbc54.tar /tmp/bak_vlgdbc54.tar

To unnzip the file - tar -xvf vlgdbc54.tar - unzip

cat etc/passwd | grep -i sapc6e - copy the user o/p


vi /etc/passwd - paste that copied user
pwconv - after making changes in passwd file we should run this cmd to refresh the passwd file
cat /etc/passwd | grep -i sapc6e

Linux Page 9
SWAP Memory Resize
Wednesday, August 2, 2023 11:43 AM

Mail subject: SWAP extension activity - S4 HANA Cloud systems Wiki: SWAP Extension to 30 GB - DLM Knowledge Management - Wiki@SAP (int.sap)

Mail subject: FW: SWAP Size extension / Reduction Please follow below steps for reducing /increasing swap.

COE Approval required & better to perform in DT

Turn Off / Inactivate the SWAP


swapoff /root/swapfile
Remove the existing SWAP file
rm -f /root/swapfile
Create swap file with required size

Formula for count – 1024*required MB


bs=block size (fixed )-1024

Example -Required 2GB swap file then


2GB*1024 = 2048MB
2048*1024 = 2097152 →Count value

Just change count value in below command & execute

dd if=/dev/zero of=/root/swapfile bs=1024 count= 2097152

Now create swap file & assign permissions


mkswap /root/swapfile
chmod 600 /root/swapfile
Turn On / Activiate the SWAP file
swapon /root/swapfile

Hi colleagues,

this is regarding reported DLM Change https://support.wdf.sap.corp/sap/support/message/2270020281


for extending SWAP size to 30GB.
Per DLM standard the swap size is only 5 GB and the server Bootdisk is 20 GB.

To change this the following steps are needed:

1.) Run vmcontrol on a DLM adminhost (eg. dlm-lts01 or dlm-lts02) and choose Disks ->
EXTEND/UPSIZE and provide the server name.

Linux Page 10
2.) Select the Bootdisk which should be 20 GB

3.) When asked for the new Bootdisk size take the current size 20 GB (15 GB + 5 GB swapfile) and add
25 GB to it resulting in eg. 45 GB Bootdisk size for the server visible on above screenshot.

4.) If finished connect via rcssh to the remote server and have a look via dmesg command if disk size
has changed.

vlgsprob16:~ # dmesg|tail -5
[6772610.107846] RPC: fragment too large: 612067950
[6772615.216840] RPC: fragment too large: 612067950
[7206643.291281] sd 0:0:1:0: [sda] 94371840 512-byte logical blocks: (48.3 GB/45.0 GiB)
[7206643.291283] sd 0:0:1:0: [sda] 4096-byte physical blocks
[7206643.291464] sda: detected capacity change from 21474836480 to 48318382080

5.) Get the disk device of the root filesystem / via command: grep ' / ' /proc/mounts
vlgsprob16:~ # grep ' / ' /proc/mounts
/dev/sda1 / xfs rw,relatime,attr2,inode64,noquota 0 0

6.) Extend the partition on the disk via command growpart -v /dev/<disk> <partition>:
vlgsprob16:~ # growpart -v /dev/sda 1
update-partition set to true
resizing 1 on /dev/sda using resize_sfdisk_dos
94371840 sectors of 512. total size=48318382080 bytes
## sfdisk --unit=S --dump /dev/sda
label: dos

Linux Page 11
label: dos
label-id: 0x3b4ca871
device: /dev/sda
unit: sectors

/dev/sda1 : start= 2048, size= 41940959, type=83, bootable


padding 33 sectors for gpt secondary header
max_end=94371807 tot=94371840 pt_end=41943007 pt_start=2048 pt_size=41940959
resize of /dev/sda returned 0.
CHANGED: partition=1 start=2048 old: size=41940959 end=41943007 new: size=94369759,end=
94371807

7.) Extend the root filesystem / via command xfs_growfs -d /:


vlgsprob16:~ # xfs_growfs -d /

meta-data=/dev/sda1 isize=512 agcount=9, agsize=655296 blks


= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1 spinodes=0 rmapbt=0
= reflink=0
data = bsize=4096 blocks=5242619, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 5242619 to 11796219

8.) Disable and delete the 5 GB swapfile and create the new 30 GB swapfile:
swapoff /root/swapfile
rm -f /root/swapfile
dd if=/dev/zero of=/root/swapfile bs=1024 count=31457280
mkswap /root/swapfile
chmod 600 /root/swapfile
swapon /root/swapfile

vlgsprob16:~ # swapoff /root/swapfile


vlgsprob16:~ # rm -f /root/swapfile
vlgsprob16:~ # dd if=/dev/zero of=/root/swapfile bs=1024 count=31457280
31457280+0 records in
31457280+0 records out
32212254720 bytes (32 GB, 30 GiB) copied, 70.1113 s, 459 MB/s

9.) Check if the new swapfile is working fine via command swapon -s:
vlgsprob16:~ # swapon -s
Filename Type Size Used Priority
/root/swapfile file 31457276 0 -1

Linux Page 12
Networker Installation
Thursday, August 24, 2023 11:24 AM

Hello Colleagues,

When checked the servers vlgcifdz and vlgdbfdz is a DMZ servers. Also in DMZ server nfs and automounts are not accessible

As it is a DMZ server, Kindly install lgto packages from your end.

Note: Backup team will do networker installation on DMZ server

Linux Page 13
Accessing Physical server
Thursday, August 24, 2023 12:22 PM

c5367262@dlm-lts01:~> telnet hs0004crons


telnet: hs0004crons: Name or service not known
hs0004crons: Unknown host
c5367262@dlm-lts01:~> telnet hs0004cons
Trying 10.67.145.234...
Connected to hs0004cons.
Escape character is '^]'.

*************************************************************************
This is a private system.
Do not attempt to login unless you are an authorized user.
Any authorized or unauthorized access or use may be monitored and can
result in criminal or civil prosecution under applicable law.
*************************************************************************

MP login: root
MP password: ********

Hewlett-Packard Integrity Integrated Lights-Out 2

(c) Copyright Hewlett-Packard Company 1999-2007. All Rights Reserved.

MP Host Name: hs0004cons

Revision F.02.17

*************************************************************************
Your Certificate is expired.
Use the SO command to generate a new certificate.
*************************************************************************

MP MAIN MENU:

CO: Console
VFP: Virtual Front Panel
CM: Command Menu
SMCLP: Server Management Command Line Protocol
CL: Console Log
SL: Show Event Logs
HE: Main Help Menu
X: Exit Connection

[hs0004cons] MP> CM

Linux Page 14
(Use Ctrl-B to return to MP main menu.)

[hs0004cons] MP:CM> PC

PC

Current System Power State: On

Power Control Menu:


C - Power Cycle
ON - Power On
OFF - Power Off
G - Graceful Shutdown

Enter menu item or [Q] to Quit: C


C

System will be power cycled.

You must shut down the OS manually before this command is executed.
Failure to do this can cause problems when the OS is restarted.
Confirm? (Y/[N]): Y
Y

-> System is being powered off.

-> Please wait 30 seconds for power supplies to power down completely.
System Power will be turned on in 30 seconds.

Linux Page 15
Filesystem Check
Thursday, August 24, 2023 12:40 PM

1. power off the server


2. detach boot disk from the server and attach to any other server which have same zone as os version
(for attach go to gcp click on additional disk then search for the boot disk name which we want to attach
and click save)
3. run fsck on the server which we attached boot disk
4. once fsck done detach the boot disk (follow the same procedure from GCP as we attached)
5. attach to the server which we powered off
6. power on the server
7. run zypper ref ( we should not get any error)
8. create one test directory under root.

Linux Page 16
Mount sharing between 2 servers
Thursday, August 24, 2023 12:44 PM

[7/11 1:13 PM] Krishnan, Sahayaajitha (external - Service)

Mount sharing between two servers.


GCP Local NFS share.
Ex: Kindly share the mount /sapmnt/ME1 in server ldcsme1 to server lddbme1.
=============
**Steps to do at source server side.**
1. Login to the server.
2. check for the mentioned mount.
3. To share the file between servers we have to make entry in exports file.
cat /etc/exports
vi /etc/exports

mountname target server ip (permissions)


EX:/sapmnt/ME1 10.177.33.120(rw,sync,no_root_squash,no_subtree_check)
:wq!

get the target server ip through nslookup.


nslookup lddbme1
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: lddbme1.wdf.sap.corp
Address: 10.177.33.120
lddbme1.wdf.sap.corp canonical name = vlcdbme1.wdf.sap.corp.
exportfs - a -v cmnd in source server (by this even after reboot permissions wll be retained)
4. rcnfsserver restart.
5. rcnfsserver status. ------> for confirmation.

**Steps to do at destination server.**


1. Login to db server.
2. nslookup lddbme1.
3.have to make entry in fstab.
cat /etc/fstab
vi /etc/fstab
sourceserver:mount mountname permissions
EX:vlccsme1:/sapmnt/ME1 /sapmnt/ME1 nfs defaults 1 2
:wq!
4.rcnfs restart
5.rcnfs status.
mkdir -p /sapmnt/ME1
mount -a
for O/P:
df -hT mount
vlcdbme1:~ # df -hT /sapmnt/ME1
Filesystem Type Size Used Avail Use% Mounted on
vlccsme1:/sapmnt/ME1 nfs4 40G 1.2G 38G 3% /sapmnt/ME1
vlcdbme1:~ #
================================================

Linux Page 17
Extension for Migration - COE
Thursday, August 24, 2023 12:47 PM

vlgciecf:/sapmnt/dlm/services/gcp/migration_new/gen_storage #

Reference:

https://support.wdf.sap.corp/sap/support/message/2380087183

Linux Page 18
BB and MacAfee Installation
Thursday, August 24, 2023 12:48 PM

[7/12 11:22 AM] Krishnan, Sahayaajitha (external - Service)

REF : https://support.wdf.sap.corp/sap/support/message/2270037733

1. First check which BB install on this server


# cat /opt/bowbridge/mcafee/EngineDetails |head -2

1. # /sapmnt/av/bowbridge ----------> to move BB directory

1. #ls

1. ./deinstall_bb.sh-----> to uninstall the oldest version

1. Cd latest --------> if they ask lastest version

1. If current needed do # cd 3113_B853

1. # ./bb_installer.sh -u=cg6adm -g=sapsys


2.

[7/12 11:22 AM] Krishnan, Sahayaajitha (external - Service)

Steps:
1. Login to server
2. cd /sapmnt/av/mcafee/ENS
3. Run this Script: ./mcafee_ENS_installer.sh
4.

Linux Page 19
Mail Subjects
Tuesday, August 29, 2023 11:04 AM

RE: DLM Cloud start - Failed to start Setup Virtual Console.

Linux Page 20
Nagios Self-Healing
Tuesday, August 29, 2023 11:40 AM

Sudo -i -u Ref: 2370079684


Cd automation
To detach boot disk

Linux Page 21
BDE
Tuesday, August 29, 2023 12:24 PM

Chroot:

First attach boot disk to other server (same zone, different SID - to avoid UUID issue)

Mount the disk on mnt like as below /dev/sdX varies check & run --
Note : we have umount in reverse order check last step

vlgcisoa:~ # mount /dev/sdd3 /mnt


vlgcisoa:~ # mount /dev/sdd2 /mnt/boot/efi
vlgcisoa:~ # mount -t proc none /mnt/proc
vlgcisoa:~ # mount -t sysfs none /mnt/sys
vlgcisoa:~ # mount --bind /dev /mnt/dev
vlgcisoa:~ # chroot /mnt

WARNING: hostnames differ! Setting hostname to configured name vlgdbuty!

vlgdbuty:/ # systemctl status wicked.service

Failed to connect to bus: No such file or directory


vlgdbuty:/ # systemctl list-unit-files | grep wicked
Configuration file /usr/lib/systemd/system/networker.service is marked executable. Please remove executable
permission bits. Proceeding anyway.
Configuration file /usr/lib/systemd/system/nsrps.service is marked executable. Please remove executable permission
bits. Proceeding anyway.
wicked.service disabled
wickedd-auto4.service disabled
wickedd-dhcp4.service disabled
wickedd-dhcp6.service disabled
wickedd-nanny.service disabled
[email protected] static
wickedd.service indirect
vlgdbuty:/ # systemctl enable wicked.service
vlgdbuty:/ # systemctl list-unit-files | grep wicked
Configuration file /usr/lib/systemd/system/networker.service is marked executable. Please remove executable
permission bits. Proceeding anyway.
Configuration file /usr/lib/systemd/system/nsrps.service is marked executable. Please remove executable permission
bits. Proceeding anyway.
wicked.service enabled

Now umount the disk via below steps


vlgcisoa:~ # umount /mnt/dev
vlgcisoa:~ # umount /mnt/sys
vlgcisoa:~ # umount /mnt/proc
vlgcisoa:~ # umount /mnt/boot/efi
vlgcisoa:~ # umount /mnt

Linux Page 22
To detach a boot disk

Step-1:

List out the names and number of disk present by using gcloud command

Step-2:

Check which boot disk is used by server in GCP console.

Login to the server and check current version of the server and cross check with SISM.

Step-3:

To detach, first check in fstab entries whether it is mounted on /mnt, use df command to check which it is mounted.

Umount <mount name>.

If it is not mounted in /mnt,

Check it once again whether any action is performed on boot disk which is yet to removed.

To detach, ask for downtime and remove the unused disk and reboot the server.

Linux Page 23
Tech Team Handled tickets
Tuesday, September 5, 2023 4:27 PM

Requests handled by TECH ODC

Below requests are handled by Tech ODC. If you received these requests please route the ticket’s to
Tech ODC.

1. BDE for E2E Servers


2. System Parking / Unparking
3. RAM Resize (<625GB & <96 CPU’s)
4. Copying or moving or deleting or compressing of SID related files
5. Downtime co-ordination with system owners for E2E Servers
6. SWAP extension in E2E servers
7. New E2E server deployments
8. Modifications in SID related SISM objects
9. FS / Data backup/restore related tasks.

Linux Page 24
rcscp command usage
Wednesday, September 6, 2023 3:22 PM

Dear Colleagues,

As we aware auto mounts(Eg : autodelete30days etc.) will not accessible from EOL Servers (vlv***) , GCP
DMZ servers
To copy files from auto mounts to server (or) vice-versa rcscp command will help us.

Usage of rcscp command

Copying files from automounts to server


• Login to dlm-lts01 / 02
• Syntax – rcscp <auto mount path> root@<servername>:/<folder name>
• Eg : - Copying a file from autodelete30days folder to server vlgspnitintest4 under /tmp
rcscp /sapmnt/dlm_export/autodelete30days/c5330715/test1 root@vlgspnitintest4:/tmp/

Copying files from server to auto mounts


• Login to dlm-lts01/02
• Syntax – rcscp root@<server name>:/<path_of_file> <automount_to_where_file_need to be
copy>

• Eg :- Copying a file from server vlgspnitintest4 to autodelete30days folder


rcscp root@vlgspnitintest4:/tmp/test1 /sapmnt/dlm_export/autodelete30days/c5330715/

Linux Page 25
Vmcreate
Wednesday, September 6, 2023 3:35 PM

c5367262@dlm-lts01:~> vmcreate

Welcome to DLM Instance Creation Script


=======================================

>> Choose instance deployment provider [1 - 3]


1. Google Cloud Platform - gcp
2. Converged Cloud - ccloud
3. Microsoft Azure - az
Enter choice: 1
Provider: gcp

>> Choose domain from below [1-2] (Default: devsys.net.sap)


Choose 'devsys.net.sap' unless wdf.sap.corp is really required
1. devsys.net.sap
2. wdf.sap.corp
Enter choice [Default: 1]: 1
Your choice is 1. devsys.net.sap

>> Choose the type of instance to be created [1 - 10]


1. Central Instance (CI & CS)
2. Central Services Server (CS)
3. Application Instance (PAS / AAS)
4. Database Instance (DB)
5. SAPSYSTEM (1 VM - CI & DB)
6. SAPSYSTEM1 (2 VM - 1 CI & CS, 1 DB)
7. SAPSYSTEM2 (3 VMs - 1 DB, 1 CS, 1 PAS)
8. Cloud Connector (CC)
9. Server Provisioning (SP)
10. Rsync Migration
Enter choice: 9
Instance Type: SP

Zone selected: europe-west3-c

Fetching Image list..

>> Choose image type from below [1-9] (Default: suse-15-sp4-sap-20230830-1)


1. suse-12-sp5-sap-20230901-2
2. suse-15-sp3-sap-20230830-1
3. suse-15-sp4-sap-20230830-1
4. windows-2012-r2-dlm-byol
5. windows-2016-dlm-byol
6. windows-2019-dlm-byol
7. rhel-86-20230901-2
8. debian-11-20230901-2
9. ubuntu-2004-20230901-2

Linux Page 26
9. ubuntu-2004-20230901-2
Enter choice [Default: 3] - 3
Image choice is 3. suse-15-sp4-sap-20230830-1

>>Enter the RAM / CPU choice for SP system


Enter the CPU (please enter an even number) [max. 96 for custom]: 10
Enter the RAM (GB) [max. 624 for custom]: 32
Machine Type: n2-custom-10-32768

>> Enter the Billing Label for the host (Eg: io_xxxxxxx, cc_xxxxxx, wbs_xxxxx) - io_7301460
Billing Label validated

>> Enter the disk size to be created in GB (Eg: '30') - 40

> Enter the Mount point for the additional disk added ( Default - /data ) -
Choosing default mount point - data

>> Enter the Server Responsibles: User ID (IXXXXXX) / DL (Starting with DL).
Separate multiple value by comma (Eg:- IXXXXXX,DL_ACI_DLM_SERVICES_SM_ALL) - I353660
The user(s) I353660 will be added as Service Owner in SISM

>> Do you want File System Backup to be set in SISM? (YES/NO; Default - NO) -
FS Backup - Default is taken, No FS Backup will be set in SISM

====================================================================================

A SP Instance will be created in the Zone europe-west3-c.


Machine Type: n2-custom-10-32768 Disk Size: 40

The Host Name generated by the random host name generator is vlgsp2b3b0

Press Enter if you wish to continue with the random characters '2b3b0' in the Host Name
OR To change it,
Enter the alphanumeric characters of length 5(ideal) or max. 10 to be appended in the Host Name:
vlgspmvgci

The host name vlgspmvgci will be used!

1. Hostname and IP Address creation


The HOSTNAME and IP reserved in GCP are : 10.239.129.66
The hostname vlgspmvgci and IP 10.239.129.66 reserved successfully at Designate
The hostname vlgspmvgci.devsys.net.sap and IP 10.239.129.66 reserved successfully at Designate

2. Disk creation
Disk vlgspmvgci-data01 of size 40GB created successfully in the zone europe-west3-c!

Linux Page 27
3. Instance creation will happen in the zone europe-west3-c in subnet sap-dev-11
Instance created successfully

NAME NETWORK_IP STATUS

vlgspmvgci 10.239.129.66 RUNNING

4. Attaching disks to instances


Disk vlgspmvgci-data01 of size 40 GB attached successfully to vlgspmvgci.
Disk vlgspmvgci-data01 set to Auto-Delete on instance:vlgspmvgci deletion

---------------------------------------------------------------
Proceeding with ping test for the host vlgspmvgci.devsys.net.sap...
Ping test successful!
Checking if SSH up on host...
SSH test successful!
---------------------------------------------------------------

5. SISM Creation
SISM entry creation successful for the host vlgspmvgci.devsys.net.sap

6. Self-healing Call
Self-Healing call for GCP...
Self-Healing call for OS Configuration...
Self-Healing call for Sec Config...
Self-Healing call for OS Patching...
Self-Healing call for User Control Check...
Self-Healing call for GCP...
Self-healing call for Filesystem Check...
All Self-healing calls are completed!

Configuring the File System...


Created File System data on the host.

Configuring users with sudo access


User/s: I353660 provided with sudo access

7. Server Quality Check


QA Result: OK

8. Server Reboot

---------------------------------------------------------------
Proceeding with ping test for the host vlgspmvgci.devsys.net.sap...
Ping test successful!

Linux Page 28
Ping test successful!
Checking if SSH up on host...
SSH test successful!
---------------------------------------------------------------

Self-Healing call for Virus Scanner...


Final Server Validation

---------------------------------------------------------------
Proceeding with ping test for the host vlgspmvgci.devsys.net.sap...
Ping test successful!
Checking if SSH up on host...
SSH test successful!
---------------------------------------------------------------

Completed Successfully

Linux Page 29
Network issues
Saturday, September 9, 2023 1:17 PM

RE: OJE & OJQ: please solve Network issues

Linux Page 30
Compression utilities
Wednesday, September 13, 2023 4:28 PM

Linux Page 31
RAM and CPU resize
Wednesday, September 20, 2023 9:29 PM

Thanks & Regards,


Santhosh Adaveni
External
Server Management,DLM Services
TCS. ITPL_Victor,Whitefield,Banagalore,INDIA
M +91 7981824316, E [email protected]

From: Santhoshkumar, Adaveni (external - Service)


Sent: Tuesday, May 30, 2023 6:22 AM
To: Navaneedhakrishnan, Balaji <[email protected]>; P R, Daivik <[email protected]>; Paul, Bijo
<[email protected]>; DL ACI_DLM_SERVICES_SM_All (External) <[email protected]>
Cc: Palanisamy, Prabakaran (external - Service) <[email protected]>
Subject: RE: DLM Cloud VM Resource Resize Failure - vlgcipp3

Hello Colleagues,

We have selected the correct node at console level and started the server.

Before :

After:

Now the server is up and running fine.

+++++++++++++++++++++++++++++++++++++
vlgcipp3:~ # uptime
02:48:41 up 2:02, 1 user, load average: 0.00, 0.00, 0.00
vlgcipp3:~ # date
Tue May 30 02:48:43 CEST 2023
vlgcipp3:~ #
+++++++++++++++++++++++++++++++++++++

Respective ticket has updated and reverted to tech team.


Thanks & Regards,
Santhosh Adaveni
External
Server Management,DLM Services
TCS. ITPL_Victor,Whitefield,Banagalore,INDIA
M +91 7981824316, E [email protected]

From: Santhoshkumar, Adaveni (external - Service) <[email protected]>


Sent: Tuesday, May 30, 2023 3:09 AM
To: A M, Lavanya (external - Service) <[email protected]>; DL ACI_DLM_SERVICES_SM_All (External)
<[email protected]>
Cc: A M, Lavanya (external - Service) <[email protected]>; DL 4R TCS DLM ODC BASIS (External) <DL_
[email protected]>
Subject: RE: DLM Cloud VM Resource Resize Failure - vlgcipp3

Hello Colleagues,

We are checking on this.


Thanks & Regards,
Santhosh Adaveni
External
Server Management,DLM Services
TCS. ITPL_Victor,Whitefield,Banagalore,INDIA
M +91 7981824316, E [email protected]

Linux Page 32
From: A M, Lavanya (external - Service) <[email protected]>
Sent: Tuesday, May 30, 2023 2:49 AM
To: [email protected]; DL ACI_DLM_SERVICES_SM_All (External)
<[email protected]>
Cc: A M, Lavanya (external - Service) <[email protected]>; DL 4R TCS DLM ODC BASIS (External) <DL_
[email protected]>
Subject: RE: DLM Cloud VM Resource Resize Failure - vlgcipp3

Hello Colleagues,

Kindly check and assist us on below error.

Ticket has been update and moved to our queue.


Reg : https://support.wdf.sap.corp/sap/support/message/2380048471

Thanks and Regards


Lavanya A M
External
On behalf of SAP SE

AI – Development Landscape Management


Intelligent Enterprise Services
M: +91 8217548933
E : [email protected]
Tata Consultancy Services
International Tech Park
Victor Building, Whitefield Road
Bangalore 560066, India

From: [email protected] <[email protected]>


Sent: Tuesday, May 30, 2023 2:47 AM
To: DL ACI_DLM_SERVICES_SM_All (External) <[email protected]>
Cc: A M, Lavanya (external - Service) <[email protected]>; DL 4R TCS DLM ODC BASIS (External) <DL_
[email protected]>
Subject: DLM Cloud VM Resource Resize Failure - vlgcipp3

vlgcipp3

MESSAGE: GCP VM Resource Resized But Start Failed! SM team will have this checked!

Starting instance(s) vlgcipp3... .....failed. ERROR: (gcloud.compute.instances.start) Instance could


not be scheduled due to no matching node with property compatibility. Explanation: The matching
node group(s) do not match the intance's machine family type. Potential fix: - Please consider
changing the instance's Machine Family Type to match that of the selected node group. - Please
consider selecting another node groups that match the instance's Machine Family Type.

Regards,
DLM SM TEAM

Linux Page 33
DLM SM TEAM

Thanks & Regards,


Santhosh Adaveni
External
Server Management,DLM Services
TCS. ITPL_Victor,Whitefield,Banagalore,INDIA
M +91 7981824316, E [email protected]

From: Santhoshkumar, Adaveni (external - Service)


Sent: Tuesday, April 18, 2023 6:29 AM
To: Revanth, Venkat (external - Service) <[email protected]>
Subject: FW: DLM Cloud VM Resource Resize Failure - vlgdbcwj

Thanks & Regards,


Santhosh Adaveni
External
Server Management,DLM Services
TCS. ITPL_Victor,Whitefield,Banagalore,INDIA
M +91 7981824316, E [email protected]

From: Chaudhari, Mohit (external - Service) <[email protected]>


Sent: Wednesday, September 7, 2022 4:07 PM
To: Navaneedhakrishnan, Balaji <[email protected]>; Paul, Bijo
<[email protected]>; Abbas, Arasu Mohideen (external - Service) <[email protected]>;
Palanisamy, Prabakaran (external - Service) <[email protected]>; DL DLM Services SM
ODC (External) <[email protected]>
Cc: DL DLM Services SM COE <[email protected]>
Subject: RE: DLM Cloud VM Resource Resize Failure - vlgdbcwj

Thank you Balaji, for the error, documented in wiki

Thanks
Mohit Chaudhari
External
On behalf of SAP SE

Server Management
DLM Services

Linux Page 34
DLM Services
Email -:[email protected]
Mob: +919769533713
Tata Consultancy Services
Victor Building, ITPL
Whitefield, Bangalore 560066

From: Navaneedhakrishnan, Balaji <[email protected]>


Sent: Wednesday, September 7, 2022 3:48 PM
To: Paul, Bijo <[email protected]>; Abbas, Arasu Mohideen (external - Service)
<[email protected]>; Palanisamy, Prabakaran (external - Service) <prabakaran.palanisamy01
@sap.com>; DL DLM Services SM ODC (External) <[email protected]>
Cc: DL DLM Services SM COE <[email protected]>
Subject: RE: DLM Cloud VM Resource Resize Failure - vlgdbcwj

Hi Bijo,

Thank you for the assistance!

@ODC colleagues,

The error/solution has been documented for future references.

https://wiki.one.int.sap/wiki/display/DLM/Cloud+Resource+Resize+Script
sole-tenant resize errors
Regards,
Balaji

From: Paul, Bijo <[email protected]>


Sent: 06 September 2022 10:50
To: Abbas, Arasu Mohideen (external - Service) <[email protected]>; DL DLM Services SM COE <DL_
[email protected]>
Cc: DL DLM Services SM ODC (External) <[email protected]>;
Palanisamy, Prabakaran (external - Service) <[email protected]>
Subject: Re: DLM Cloud VM Resource Resize Failure - vlgdbcwj

Hi Colleagues,

Vlgdbcwj is up now with the Old Boot disk.


Issue was that after resizing, the machine type was selected as N2-highmem-64 which doesn’t have a
matching Sole Tenant Node Group in our Project.
• In these situations, check if a matching node group is available ( In GCP UI -> Power off the server,
Edit, Go to Sole tenancy , Click Browse and select the matching Node group in the zone ).
dlm-general-<zone> -> This is for all N1 machines upto 96 CPU & 624 GB
dlm-<megamem/ultramem/highmem>-<zone> -> This is for Higher machine types

• If no matching node group, change the machine type to a matching node group’s machine type or
select the old machine type to bring up the VM to check with us.

Regards,
Bijo

From: Abbas, Arasu Mohideen (external - Service) <[email protected]>

Date: Tuesday, 6 September 2022 at 6:10 AM

To: DL DLM Services SM COE <[email protected]>

Cc: DL DLM Services SM ODC (External) <[email protected]>,


Palanisamy, Prabakaran (external - Service) <[email protected]>

Subject: RE: DLM Cloud VM Resource Resize Failure - vlgdbcwj

Hello Colleagues,

We require your assistance for the below issue, As we tried to resize the memory while doing Resize we
face matching node issue.
We try to change the machine type and start the server but no luck.

At last we tried BDE also, BDE also not completed.

Request you to check below issue and assist us.

Server Status ::

Linux Page 35
BCP ::

https://support.wdf.sap.corp/sap/support/message/2270111362

Best Regards,
Arasu Mohideen
External
On behalf of SAP SE
Server Management
DLM Services
T -: +91 80 61390590
+91-81975 24685
Email: [email protected]
Tata Consultancy Services
Victor Building, ITPL
Whitefield, Bangalore 560066
India

From: [email protected] <DLM_cloud_VM_Resize@dlm-


lts01.wdf.sap.corp>
Sent: Tuesday, September 6, 2022 4:03 AM
To: DL ACI_DLM_SERVICES_SM_All (External) <[email protected]>
Cc: Abbas, Arasu Mohideen (external - Service) <[email protected]>; DL 4R TCS DLM ODC
BASIS (External) <[email protected]>
Subject: DLM Cloud VM Resource Resize Failure - vlgdbcwj

Linux Page 36
vlgdbcwj

MESSAGE: GCP VM Resource Resized But Start Failed! SM team will have this checked!

Starting instance(s) vlgdbcwj... ......failed. ERROR: (gcloud.compute.instances.start)


Instance could not be scheduled due to no matching node with property compatibility.
Explanation: The matching node group(s) do not match the intance's machine family
type. Potential fix: - Please consider changing the instance's Machine Family Type to
match that of the selected node group. - Please consider selecting another node groups
that match the instance's Machine Family Type.

Regards,
DLM SM TEAM

Linux Page 37
Sudo Access users in DMZ zone
Thursday, September 28, 2023 8:08 PM

in /etc/sudoers.d/sudoers, make the below entry

<user_id> ALL=(root) NOPASSWD: /bin/su - x5badm

also add his user id in /home/whitelistssh_users

keep file permission 440

user should be there in the server locally

Add user and set password for the user and give it to them manually

In case of temporary user inform COE to delete the access after specific time by automation jobs.

Linux Page 38
Rhel upgrade
Tuesday, October 3, 2023 6:46 PM

Points to remember:

✓ Ask for downtime and check whether the ticket is change request.

✓ Take snapshot for both OS and data disk.

✓ First search for a reference server which contains the required OS version

✓ List out repolist and check difference between current and reference server.

✓ If repos are not matching, take a backup of current repos in main server and copy all the repos
from reference server

✓ Run - yum reploist to load the newly copied repolist

✓ To update run yum update

✓ Next reboot the server to reflect the changes.

✓ To check current OS versions - cat /etc/os-release.

Reference : https://support.wdf.sap.corp/sap/support/message/2370107570

Linux Page 39

You might also like