Amazon Ad

Featured Post

Tuesday, December 25, 2018

Some notes on making keyless SSH work and troubleshooting

1. In your home directory, make sure the .ssh directory has the following permissions:
0700/rwx------
If not, run:

chmod 700 .ssh

2. Inside the .ssh directory, all the public key files (*.pub) should have the following permissions:
0644/rw-r--r--
If not, run:

chmod 644 .ssh/*.pub

3. All other files in the .ssh directory should have the following permissions:
0600/rw-------
To change, run:

chmod 600 .ssh/

To debug a failed ssh session, run:
ssh -vvv

For example, in the following ssh -vvv output you can see that the public key was sent, but not accepted. The root cause was incorrect permissions in the destination's host .ssh/* files:

debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug1: Skipping ssh-dss key /Users/john/.ssh/id_dsa - not in PubkeyAcceptedKeyTypes
debug1: Will attempt key: /Users/john/.ssh/id_rsa RSA SHA256:Zjk3dXmAUc9bS01ItANovYD4usebPibGxM0r5JHtmP4
debug1: Will attempt key: /Users/john/.ssh/id_ecdsa ECDSA SHA256:U1Lkgb+30LAOIwE4OLgGuFffkYRW5WGW12YSOMb+ByI
debug1: Will attempt key: /Users/john/.ssh/id_ed25519
debug1: Will attempt key: /Users/john/.ssh/id_xmss
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/john/.ssh/id_rsa RSA SHA256:Zjk3dXmAUc9bS01ItANovYD4usebPibGxM0r5JHtmP4
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password

Sunday, December 23, 2018

Linux/MacOS - List files sorted by file size


ls -lartSh

How to format an NVMe drive

The following are concise instructions on how to format NVMe drives in Linux.

First, identify the format required:

nvme id-ns /dev/nvme1n1 | grep LBA
LBA Format  0 : Metadata Size: 0   bytes - Data Size: 512 bytes - Relative Performance: 0x1 Better 
LBA Format  1 : Metadata Size: 8   bytes - Data Size: 512 bytes - Relative Performance: 0x3 Degraded 
LBA Format  2 : Metadata Size: 0   bytes - Data Size: 4096 bytes - Relative Performance: 0 Best  (in use)
LBA Format  3 : Metadata Size: 8   bytes - Data Size: 4096 bytes - Relative Performance: 0x2 Good

Explanation


  • Each format has an id: 0, 1, 2, 3 in this example.
  • There are two data sector sizes - 512 bytes and 4K. Typically the 4K formats provide the best performance and endurance.
  • Metadata - some drives provide the capability to add a few bytes for additional metadata for each sector. This is typically used for T10/DIF CRC.

Format

nvme format /dev/nvme1n1 -l 0

where l represents the LBA format id as listed in nvme id-ns.

Identify NVMe Drive Attribute


[root@moon 14:27:11 john]# nvme id-ns -H /dev/nvme1n1
NVME Identify Namespace 1:
nsze    : 0xba4d9d6
ncap    : 0xba4d9d6
nuse    : 0xba4d9d6
nsfeat  : 0
  [2:2] : 0 Deallocated or Unwritten Logical Block error Not Supported
  [1:1] : 0 Namespace uses AWUN, AWUPF, and ACWU
  [0:0] : 0 Thin Provisioning Not Supported

nlbaf   : 3
flbas   : 0x3
  [4:4] : 0 Metadata Transferred in Separate Contiguous Buffer
  [3:0] : 0x3 Current LBA Format Selected

mc      : 0x3
  [1:1] : 0x1 Metadata Pointer Supported
  [0:0] : 0x1 Metadata as Part of Extended Data LBA Supported

dpc     : 0x1f
  [4:4] : 0x1 Protection Information Transferred as Last 8 Bytes of Metadata Supported
  [3:3] : 0x1 Protection Information Transferred as First 8 Bytes of Metadata Supported
  [2:2] : 0x1 Protection Information Type 3 Supported
  [1:1] : 0x1 Protection Information Type 2 Supported
  [0:0] : 0x1 Protection Information Type 1 Supported

dps     : 0
  [3:3] : 0 Protection Information is Transferred as Last 8 Bytes of Metadata
  [2:0] : 0 Protection Information Disabled

nmic    : 0x1
  [0:0] : 0x1 Namespace Multipath Capable

rescap  : 0x7f
  [6:6] : 0x1 Exclusive Access - All Registrants Supported
  [5:5] : 0x1 Write Exclusive - All Registrants Supported
  [4:4] : 0x1 Exclusive Access - Registrants Only Supported
  [3:3] : 0x1 Write Exclusive - Registrants Only Supported
  [2:2] : 0x1 Exclusive Access Supported
  [1:1] : 0x1 Write Exclusive Supported
  [0:0] : 0x1 Persist Through Power Loss Supported

fpi     : 0x80
  [7:7] : 0x1 Format Progress Indicator Supported
  [6:0] : 0 Format Progress Indicator (Remaining 0%)

dlfeat  : 0
  [4:4] : 0 Guard Field of Deallocated Logical Blocks is set to 0xFFFF
  [3:3] : 0 Deallocate Bit in the Write Zeroes Commmand is Not Supported
  [2:0] : 0 Bytes Read From a Deallocated Logical Block and its Metadata are Not Reported

nawun   : 0
nawupf  : 0
nacwu   : 0
nabsn   : 0
nabo    : 0
nabspf  : 0
noiob   : 0
nvmcap  : 800166076416
nvmsetid: 0
endgid  : 0
nguid   : 334843304bd021179843285800000004
eui64   : 023438ec7dbc1f9d
LBA Format  0 : Metadata Size: 0   bytes - Data Size: 512 bytes - Relative Performance: 0x1 Better 
LBA Format  1 : Metadata Size: 8   bytes - Data Size: 512 bytes - Relative Performance: 0x3 Degraded 
LBA Format  2 : Metadata Size: 0   bytes - Data Size: 4096 bytes - Relative Performance: 0 Best  (in use)
LBA Format  3 : Metadata Size: 8   bytes - Data Size: 4096 bytes - Relative Performance: 0x2 Good

Friday, December 21, 2018

How to list files with inode numbers?

Use:
ls -lai

How to find a file using its inode number


Use find -inum:

MacBook-Pro:test john$ sudo find / -inum 2
/
MacBook-Pro:test john$ stat /

16777220 2 drwxr-xr-x 31 root wheel 0 992 "Dec 21 21:09:54 2018" "Dec 20 18:20:36 2018" "Dec 20 18:20:36 2018" "Jan 19 13:05:34 2018" 4096 0 0x100000 /

How to find the number of inodes in NetApp?

Run:
df -i

Also in ONTAP Classic - run: maxfiles.

How to find the number of used inodes in MacOS

Run:
df -i

Review the iused (number of used inodes) and ifree (number of free inodes) columns.

For example:


MacBook-Pro:test john$ df -i
Filesystem                 512-blocks      Used Available Capacity     iused               ifree %iused  Mounted on
/dev/disk1s1                236363688 188549552  35981312    84%     1566306 9223372036853209501    0%   /
devfs                             446       446         0   100%         772                   0  100%   /dev
/dev/disk1s4                236363688  10486264  35981312    23%           6 9223372036854775801    0%   /private/var/vm
map -hosts                          0         0         0   100%           0                   0  100%   /net
map auto_home                       0         0         0   100%           0                   0  100%   /home
drivefs                      62914560  17491136  45423424    28% 18446744069414597893          4294967295 135917654504970528%   /Volumes/GoogleDrive
/Applications/WhatsApp.app  236363688 190972936  33558008    86%     1568482 9223372036853207325    0%   /private/var/folders/3m/21wz80ms2xjc3wh5kljn6z7w0000gn/T/AppTranslocation/83EAF769-7FB7-4710-AD83-DD825BA7E042

Citrix XenServer support for 4K sector size

Citrix XenServer does not support disks formatted with 4K sectors.

Thursday, December 20, 2018

sysadmin default password

Unisphere:
User: sysadmin
Password: sysadmin

nasadmin default password

User: nasadmin
Password: nasadmin

Isilon OneFS Default Password

Isilon OneFS

Old: Isilon default root password for the CLI/GUI: a
In OneFS 8.0.0 the default password is: password

What is Reduxio NoDup?

It is a unique, in-line, in-memory storage deduplication technology invented by Reduxio Systems:
https://www.reduxio.com/products/timeos/nodup-data-deduplication/

Wipe out NetApp Cluster

To wipe out a NetApp cluster use the "disk sanitize" feature:

system node run -node
options nodescope.reenabledoptions licensed_feature.disk_sanitization.enable

options licensed_feature.disk_sanitization.enable on
disk sanitize start

Additional commands: abort, status, release

Error: NAS_DB environment not defined


Problem
When trying to login to the EMC Celerra control station, the following error may be displayed:

Solution
The NAS_DB environment variable must be added to the nasadmin user profile. Add the following to ~nasadmin/.bash_profile:

export NAS_DB=/nas

Simple csh loop

foreach i (1 2 3 4 5 6 7 8 9 10)
   echo Loop iteration $i
end

Display the return code of a command


Use:
echo $?

[john@moon 15:14:28 work]$ echo $?
0
[john@moon 15:14:30 work]$ ls /z
ls: cannot access /z: No such file or directory
[john@moon 15:14:34 work]$ echo $?
2

Wednesday, December 19, 2018

Very Simple Local Web Server

Run a web server right from your browser:
https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb?hl=en

Delete an RPM that was already deleted from the file system


rpm -e --justdb

Tuesday, December 18, 2018

Useful Mellanox Infiniband Troubleshooting Commands


ibstat
ibdev2netdev 

Ibnetdiscover
ibdev2netdev
ibv_devices
ibv_devinfo
Ibutils/ibutils2/ibdiagnet - check for LLR retransmits
/opt/ibutils/bin

perfquery
saquery
sminfo
smparquery
smpdump
smpquery

dump_fts
Ibaddr
Ibcacheedit

Ibdiagpath
iblinkinfo
ibping
Ibportstate
Ibqueryerrors
Ibroute
Ibstat
ibstatus
ibswitches
ibsysstat
ibtopodiff
ibtracert
ibv_asyncwatch

Ibdump

Software Support Ticket - Troubleshooting Questions


Overview

The following can be used as a template for internal or external software support questionnaire.

Problem Statement

What is the complete description of the issue?
What is the assistance you request from us?

Troubleshooting Details

What is the exact wording of the error message?
When did this issue start happening?
What changed around that time?
What are the steps to reproduce this issue, if any?
Was there any troubleshooting already performed? Supply all data and logs already collected.
How long has this computer been in production?
Physical/Virtual Server:
Machine Name:
Operating System:
Service Pack:
Architecture:
Roles of the Server:

Monday, December 17, 2018

Pathname to OpenStack Cinder Volume Drivers


/usr/lib/python2.7/site-packages/cinder/volume/drivers

OpenStack Cinder Log Files


-rw-r--r--.  1 cinder cinder   9336 Jun  8 19:16 api.log
-rw-r--r--.  1 cinder cinder  38339 Jun  8 18:30 cinder-manage.log
-rw-r--r--.  1 cinder cinder 116557 Jun  8 19:18 scheduler.log
-rw-r--r--.  1 cinder cinder 124608 Jun  8 19:18 volume.log

OpenStack Cinder Quota Commands


cinder quota-update --volumes 1000 demo
cinder quota-update --snapshots 1000 demo
cinder quota-update --per-volume-gigabytes 100240 demo

iSCSI in SystemD


[root@rdo1 iscsi(keystone_admin)]# systemctl list-unit-files iscsi.service
UNIT FILE     STATE  
iscsi.service enabled

1 unit files listed.


[root@rdo1 iscsi(keystone_admin)]# systemctl list-unit-files multipathd.service
UNIT FILE          STATE  
multipathd.service enabled

1 unit files listed.

Restart OpenStack Cinder Services in Red Hat Linux / CentOS


systemctl stop openstack-cinder-api.service
systemctl stop openstack-cinder-scheduler.service
systemctl stop openstack-cinder-volume.service
systemctl stop openstack-cinder-backup.service

systemctl start openstack-cinder-api.service
systemctl start openstack-cinder-scheduler.service
systemctl start openstack-cinder-volume.service
systemctl start openstack-cinder-backup.service

systemctl enable openstack-cinder-api.service
systemctl enable openstack-cinder-scheduler.service
systemctl enable openstack-cinder-volume.service
systemctl enable openstack-cinder-backup.service

Some OpenStack Cinder Setup Notes


openstack-config --set /etc/cinder/cinder.conf DEFAULT volume_driver cinder.volume.drivers.lvm.LVMISCSIDriver
openstack-config --set /etc/cinder/cinder.conf DEFAULT default_volume_type TEST_VOLUME_TYPE
openstack-config --set /etc/cinder/cinder.conf DEFAULT enabled_backends TEST_VOLUME_TYPE
openstack-config --set /etc/cinder/cinder.conf TEST_VOLUME_TYPE san_ip 172.168.46.216
openstack-config --set /etc/cinder/cinder.conf TEST_VOLUME_TYPE volume_driver cinder.volume.drivers.test.tst_iscsi_driver.TestISCSIDriver
openstack-config --set /etc/cinder/cinder.conf TEST_VOLUME_TYPE volume_backend_name TEST_VOLUME_TYPE

Expanding a VMFS image using vmkfstools


[root@esx1:/vmfs/volumes/568b807b-fe56c6a8-3b07-b82a72e11868/vcenter6] vmkfstools vcenter6_2.vmdk -X 500G
Grow: 100% done.

Interesting iscsid.conf Optimization Settings


iscsid.startup = /usr/sbin/iscsid
node.session.err_timeo.lu_reset_timeout = 30
node.session.err_timeo.tgt_reset_timeout = 30
node.session.nr_sessions = 3
node.session.timeo.replacement_timeout = 5
node.startup = automatic

Update VMware ESXi using Software Profile


esxcli software sources profile list -d /vmfs/volumes/install/VMware/vSphere_6.0/6.0U3/update-from-esxi6.0-6.0_update03.zip 
esxcli software profile update -p ESXi-6.0.0-20170202001-standard -d /vmfs/volumes/install/VMware/vSphere_6.0/6.0U3/update-from-esxi6.0-6.0_update03.zip 
esxcli system shutdown reboot -r=r

Mounting an NFS Export in VMware ESXi using esxcli


esxcli storage filesystem mount -l "install"
esxcli storage filesystem mount -l toaster0
esxcli storage nfs add -H 172.85.9.1 -s /export1 -v install

Connect to iSCSI Target using Windows PowerShell


Connect-IscsiTarget -InitiatorPortalAddress 172.168.1.27 -IsMultipathEnabled $true -IsPersistent $true -TargetPortalAddress 172.18.226.11 -NodeAddress iqn.2010-9.com.nodo:bg6064h0073d000e

Useful fio Performance Benchmarks Commands


Note: Some of these commands require the use of the latest fio v3.8. Download and compile from here: https://github.com/axboe/fio.

Run fio on Windows

64K Sequential Write on E: drive

fio --ioengine=windowsaio --name=64ktest --randrepeat=0 --rw=write --runtime=900 --blocksize=64k --bsrange=64k-64k --bssplit=64k/100 --iodepth=128 --numjobs=12 --direct=1 --filesize=40000m --rwmixwrite=100 --rwmixread=0 --eta=always --directory="E\:\fio" --verify_fatal=1 --do_verify=0 --group_reporting --unit_base=8 --time_based=1 --thread

128K Sequential Write on E: drive


fio --ioengine=windowsaio --name=128ktest --randrepeat=0 --rw=write --runtime=900 --blocksize=128k --bsrange=128k-128k --bssplit=128k/100 --iodepth=128 --numjobs=12 --direct=1 --filesize=40000m --rwmixwrite=100 --rwmixread=0 --eta=always --directory="E\:\fio" --verify_fatal=1 --do_verify=0 --group_reporting --unit_base=8 --time_based=1 --thread

256K Sequential Write on E: drive

fio --ioengine=windowsaio --name=256ktest --randrepeat=0 --rw=write --runtime=900 --blocksize=256k --bsrange=256k-256k --bssplit=256k/100 --iodepth=128 --numjobs=12 --direct=1 --filesize=40000m --rwmixwrite=100 --rwmixread=0 --eta=always --directory="E\:\fio" --verify_fatal=1 --do_verify=0 --group_reporting --unit_base=8 --time_based=1 --thread

Run fio on Linux

4K Sequential Write on Mount Point /mnt/test1

fio --ioengine=libaio --name=rand4k --randrepeat=0 --rw=write --runtime=900 --blocksize=4k --bsrange=4k-4k --bssplit=4k/100 --iodepth=128 --numjobs=12 --direct=1 --filesize=40000m --rwmixwrite=100 --rwmixread=0 --eta=always --directory="/mnt/test1" --verify_fatal=1 --do_verify=0 --group_reporting --unit_base=8 --time_based=1 --thread

80% Read 20% Write 4K Random on File /mnt/test1/fio/fiofile.fio

fio --ioengine=libaio --name=rand4k8020 --randrepeat=1 --rw=readwrite --runtime=900 --blocksize=4k --bsrange=4k-4k --bssplit=4k/100 --iodepth=128 --numjobs=1 --direct=1 --filesize=1g --rwmixwrite=20 --rwmixread=80 --eta=always --filename=/mnt/test1/fio/fiofile.fio --do_verify=0 --group_reporting --time_based=1 --thread

Notes on Setting up Ceph (Kraken) on Ubuntu Server


Note: The following command dump is based on these instructions:

Add all nodes to DNS.

On all nodes:

wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add -
echo deb https://download.ceph.com/debian-kraken/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
sudo apt-get install ntp -y
sudo apt-get install openssh-server -y
sudo useradd -d /home/cephdeploy -m cephdeploy -s /bin/bash
sudo passwd cephdeploy
sudo echo "cephdeploy ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/cephdeploy
sudo chmod 0440 /etc/sudoers.d/cephdeploy
sudo apt-get update && sudo apt-get install ceph-deploy -y

On admin:

login as cephdeploy
ssh-keygen
ssh-copy-id cephdeploy@ceph112node1
ssh-copy-id cephdeploy@ceph112node2
ssh-copy-id cephdeploy@ceph112node3
ssh-copy-id cephdeploy@ceph112gw

Follow this document:

mkdir my-cluster
cd my-cluster
ceph-deploy new ceph112node1

Edit ~cephdeploy/my-cluster/ceph.conf:

Add to [global]:
osd pool default size = 2
osd_max_object_name_len = 256
osd_max_object_namespace_len = 64


ceph-deploy install ceph112admin ceph112node1 ceph112node2 ceph112node3 ceph112gw
ceph-deploy mon create-initial
ssh ceph112node2 sudo mkdir /var/local/osd0
ssh ceph112node2 sudo chown ceph:ceph /var/local/osd0
ssh ceph112node3 sudo mkdir /var/local/osd1
ssh ceph112node3 sudo chown ceph:ceph /var/local/osd1
ceph-deploy osd prepare ceph112node2:/var/local/osd0 ceph112node3:/var/local/osd1
ceph-deploy osd activate ceph112node2:/var/local/osd0 ceph112node3:/var/local/osd1
ceph-deploy admin ceph112admin ceph112node1 ceph112node2 ceph112node3 ceph112gw
sudo chmod +r /etc/ceph/ceph.client.admin.keyring
ceph health

Adding an OSD

ssh ceph112node1 sudo mkdir /var/local/osd2
ssh ceph112node1 sudo chown ceph:ceph /var/local/osd2
ceph-deploy osd prepare ceph112node1:/var/local/osd2
ceph-deploy osd activate ceph112node1:/var/local/osd2
ceph -w

ADD A METADATA SERVER

ceph-deploy mds create ceph112node1

ADD AN RGW INSTANCE

ceph-deploy rgw create ceph112node1

ADDING MONITORS

ceph-deploy mon add ceph112node2
ceph-deploy mon add ceph112node3
ceph quorum_status --format json-pretty

Enable SSL:

[client.radosgw.ceph112node1]
rgw_frontends = civetweb port=443s ssl_certificate=/etc/ceph/private/keyandcert.pem

ceph-deploy --overwrite-conf config push ceph112admin ceph112node1 ceph112node2 ceph112node3 ceph112gw
sudo service radosgw restart id=rgw.ceph112node1
sudo service radosgw restart id=radosgw.ceph112node1


/var/log/ceph/ceph-client.radosgw.ceph112node1.log


openssl req -subj '/CN=ceph112node1/O=John Doe/C=US' -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout server.key -out server.crt

Resetting the configuration:

ceph-deploy purge ceph112admin ceph112node1 ceph112node2 ceph112node3 ceph112gw
ceph-deploy purgedata ceph112admin ceph112node1 ceph112node2 ceph112node3 ceph112gw
ceph-deploy forgetkeys
ssh ceph112node2 sudo rm -rf /var/local/osd0
ssh ceph112node3 sudo rm -rf /var/local/osd1

Dell EMC Isilon OneFS Default Username and Password

Dell EMC Isilon OneFS

Old: Isilon default root password for the CLI/GUI: a
In OneFS 8.0.0 the default password is: password

Display Last Records from a Microsoft SQL Server Database


/****** Display Last 5 Records in MS SQL Database  ******/

SELECT TOP 5 [ID]
      ,[ts]
      ,[quote]
      ,[author]
      ,[category]
  FROM [DB1].[dbo].[quotes]
  order by ts desc

Useful WireShark Filters


Find iSCSI traffic between two IP addresses:
iscsi && ((ip.addr==110.47.46.100 || ip.addr==110.17.45.168))


Find all iSCSI writes:

scsi_sbc.sa == 0x10

Create XenServer on raw device (non-LVM)


xe sr-create name-label=test1 shared=false device-config:device=/dev/disk/by-id/scsi-37g5198f0003a000000000000000001e9 type=ext content-type=user

Useful iSCSI Commands


iscsiadm --mode discovery -t st -p 10.46.216.11
iscsiadm -m node -l
iscsiadm -m session
multipath -ll

How to boot CentOS v7.x to single user mode


  • Press e
  • In the line that starts with linux16, modify ro to rw init=/sysroot/bin/sh
  • CTRL-X
  • chroot /sysroot/
  • reboot -f




For more information:
https://www.tecmint.com/boot-into-single-user-mode-in-centos-7/

List of partitions of an NVMe drive


[root@moon john]# parted /dev/nvme0n1
GNU Parted 3.1
Using /dev/nvme0n1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Model: NVMe Device (nvme)
Disk /dev/nvme0n1: 2255MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                                  Flags
 1      135kB   101.4MB  11.1MB               root

(parted) q

Sunday, December 16, 2018

How to reset a Microsoft Windows Server Cluster Services node

To reset a Microsoft Windows Server node to a fresh state with no cluster information, open a Command Prompt window and run the following command:
                              
cluster node /forcecleanup

For example:

C:\>cluster node win1 /forcecleanup
Attempting to clean up node 'win1' ...                              Clean up successfully completed.

Note: You may need to install the cluster command line utilities:

Install-WindowsFeature -name RSAT-Clustering-CmdInterface

How to clone a DevStack environment to a specific OpenStack release

By default, DevStack installs the very latest, still unreleased version of OpenStack. However, using the following command it is possible to force it to clone a certain OpenStack release. This is very useful for users wishing to use devstack for real use and not just testing, or to test a specific release.

Capture network traffic with tcpdump

tcpdump -s 0 -i any -w /path/to/capture/file.cap

-s 0 means capture the entire Ethernet frame - which is very important for most network captures. If not captured in full, it will be hard to analyze the protocol traffic being captured.

To analyze, use the most common, free network capture analyzer - Wireshark.

Dell EMC Unity Default Login/Password

Dell EMC Unity

Control Station (CS):
Login: root
Password: nasadmin

User: nasadmin
Password: nasadmin

Unisphere:
User: sysadmin
Password: sysadmin

Check the status and disable the firewall in CentOS/RHEL v7.x

To check if the firewall is disabled, run iptables --list - the output should show all chains with empty lists - exactly like the following output:


[root@nvme80 20:13:40 eyal]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


Check if the firewalld service is running:

systemctl status firewalld


Disable the firewalld service:

systemctl stop firewalld
systemctl disable firewalld

How to force an fsck of the boot partition


Run mount to identify the device name for the boot partition (/):


[root@moon 13:29:31 eyal]# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=32523472k,nr_inodes=8130868,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
/dev/mapper/centos-root on / type ext4 (rw,relatime,data=ordered)

Check the frequency of the fsck of the boot partition:

[root@moon 13:29:36 john]# sudo tune2fs -l /dev/mapper/centos-root | grep "Maximum mount count"
Maximum mount count:      1

Check the last time the boot partition was fsck-ed:


[root@moon 13:29:36 john]# sudo tune2fs -l /dev/mapper/centos-root | grep "Last checked"
Last checked:             Tue May 15 16:40:51 2018

Change the fsck frequency to every reboot:

[root@moon 13:29:36 john]# sudo tune2fs -c 1 /dev/mapper/centos-root

Reboot:

[root@moon 13:29:36 john]# sudo reboot

Optional: Change the frequency back to what it was prior.

How to remotely power on a server using IPMI


ipmitool -H 212.15.54.82 -v -U ADMIN -P ADMIN chassis power on

How to remotely find the server’s vendor, model name etc.?


Using the dmidecode utility:

[john@moon 10:25:45 ~]$ sudo dmidecode -s system-manufacturer
Supermicro
[john@moon 10:25:47 ~]$ sudo dmidecode -s system-product-name
SYS-2028TP-DNCR
[john@moon 10:25:55 ~]$ sudo dmidecode -s system-version
0123456789
[john@moon 10:26:01 ~]$ sudo dmidecode -s baseboard-product-name
X10DRT-P

Wednesday, December 12, 2018

Default Storage Vendors Passwords

Dell EMC Unity
CLI/GUI - admin, Password123#
CLI/GUI - service, service

Dell EMC XtremIO

XtremIO Management Server (XMS) - xmsadmin, 123456 (before v2.4), Xtrem10 (v2.4 and higher)
XtremIO Management Secure Upload - xmsupload, xmsupload
XtremIO Management Command Line Interface (XMCLI) - tech, 123456 (before v2.4), X10Tech! (v2.4 and higher)
XtremIO Management Command Line Interface (XMCLI) - admin, 123456 (before v2.4), Xtrem10 (v2.4 and higher)
XtremIO Graphical User Interface (XtremIO GUI) - tech, 123456 (before v2.4), X10Tech! (v2.4 and higher)
XtremIO Graphical User Interface (XtremIO GUI) - admin, 123456 (before v2.4), Xtrem10 (v2.4 and higher)
XtremIO Easy Installation Wizard (on storage controllers) - xinstall, xiofast1
XtremIO Easy Installation Wizard (on XMS) - xinstall, xiofast1
BIOS for storage controllers and XMS - emcbios, emcbios

HPE 3PAR

Super-user - 3paradm, 3pardata

IBM Storwize V3700, V7000

GUI/CLI - superuser, passw0rd

How to reload the NVMe modules?

In some cases, the NVMe drives are not identified correctly and the module must be restarted. This may happen if a drive is reformatted.
To reload the NVMe modules:

rmmod nvme
rmmod nvme_core
modprobe nvme

Monday, December 03, 2018