Recreating missing virtual disk (VMDK) Descriptor File Vmware
Recreating missing virtual disk (VMDK) Descriptor File Problem- You just noticed that virtual machine’s VMDK files are missing and lost somehow. The reason, not able to start VM and when you try to add existing HDD – existing VMDK and -flat. VMDK files are not available to attach with Virtual Machine too. Solution – We …
Recreating missing virtual disk (VMDK) Descriptor File Vmware Read More »
USING CURL TO TROUBLESHOOT
To use curl to test basic network connectivity, you need to know several things: The remote server name or IP address. The protocol for the service to be tested (HTTP, FTP, SMTP, etc.) The port number for the network application you want to test. To open a connection to a remote server, open a terminal …
passwd: Authentication token manipulation error | RHEL 6
authentication token manipulation error is common error we use to get frequently. The problem described as below- Getting passwd: Authentication token manipulation error on RHEL6 Machine. [root@ip-linuxbox~]# passwd user1Changing password for user user1.New password:Retype new password:passwd: Authentication token manipulation error [root@ip-linuxbox~]# passwd -u user1 [Tried to unlock the account password.] Unlocking password for user user1.passwd: …
passwd: Authentication token manipulation error | RHEL 6 Read More »
File System shows 100% occupied but du tells different and still has Unused Spaces.
We have faced an issue as below mentioned – found /oracle mount-point showing 100% as Used. But getting different size values for folders under /oracle mount-point, when we executed du -gs . bash-4.4# df -gFilesystem GB blocks Free %Used Iused %Iused Mounted on/dev/hd4 4.00 1.39 66% 20686 6% //dev/hd2 4.00 1.02 75% 45679 16% /usr/dev/hd9var …
File System shows 100% occupied but du tells different and still has Unused Spaces. Read More »
How to Find Server Public IP Address in Linux Terminal
root@test:/var/log/nginx# wget -qO – icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx# wget -qO- http://ipecho.net/plain | xargs echowww.xxx.yyy.zzzroot@test:/var/log/nginx# wget -qO – icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx# curl icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx#
sed to play with data or parsing your text
To select all the lines starting from STARTING_PATTERN up to blank line ^$ and then delete those lines. # sed ‘/STARTING_PATTERN/,/^$/d’ filename To edit files in place, use -i option. # sed -i ‘/STARTING_PATTER/,/^$/d’ filename Insert multiple lines into a file after specified pattern. # sed ‘/cdef/r add.txt’ input.txt # sed ‘/cdef/r add.txt’ input.txt input.txt:abcdaccdcdeflineweb …
Usefull Linux Commands for SAN LUN allocation in RHEL
ls -l /dev/disk/by-* | grep lun-31 ls -l /dev/disk/by-* | grep lun-33 ls -l /dev/disk/by-* | grep lun-20 ls -l /dev/disk/by-* | grep lun-10 cat /sys/class/fc_transport/*/node_name grep 50060160bee045be /sys/class/fc_transport/*/node_name lsscsi ./inq.LinuxAMD64 -clariion multipath -ll df -h cat /etc/fstsb cat /etc/fstab multipath -ll | grep mpathg ls -ltr /data* ls -ls /data* ls -ld /data* df …
Usefull Linux Commands for SAN LUN allocation in RHEL Read More »
Check and list luns attached to HBA in RHEL6
This article will show you the mapping from physical HBA card to luns, I use SAN as example below, in general, it’s also applys to any other devices whichever use sysfs, for example direct sas connect. [root@RHEL6 scsi_host]# lspci | grep Fibre 05:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03) …