Main Menu

Search

Showing posts with label partition. Show all posts
Showing posts with label partition. Show all posts

INFINIBAND: smpartition command to abort the changes done to partitions on IB Switch (How To Doc)

Below smpartition abort command can be used to abort any changes made to the partition.
smpartition abort
For making changes to partitions we first run "smpartition start", make changes to partitions using smpartition commands and then finally commit the changes using "smpartition commit" command. If for some reason if changes made to partitions has to be aborted, above "smpartition abort" command can be executed instead of "smpartition commit" command


Products to which Article Applies
Infiniband Switches


Article Author: Tarun Boyella

INFINIBAND: How to create VLAN on IB Switch?

Below command can be executed to create VLAN on IB Switch.
createvlan <Connector Port> -VLAN <VLAN ID> -PKEY <Partition Key> 
For e.g. if you want to create VLAN 370 which on Connector Port 0A-ETH-1 and Partition Key 8007, your command will look as follows:
createvlan 0A-ETH-1 -VLAN 370 -PKEY 0x0007  
Products to which Article Applies
Infiniband Switches

Article Author: Tarun Boyella

INFINIBAND: smpartition commands to add Port GUIDs to Partitions on IB Switches (How To Doc)

Below is the smpartition command sequences to add Port GUIDs to specific Partition key on IB switches.
smpartition start 
smpartition add -pkey <pkey> -port <GUID 1> <GUID 2> <GUID 3> ..... <GUID N> -m <membership> 
smpartition commit
<membership> in above smpartition add command can be full, both or limited.

 For e.g. if you want to add 0x0010eZZZZ1ca0271 0x0010eZZZZ1ca0272 GUIDs to partition key 8008 as both membership your commands will look as follows:
smpartition start 
smpartition add -pkey 0x0008 -port  0x0010eZZZZ1ca0271 0x0010eZZZZ1ca0272 -m both 
smpartition commit 
Products to which Article Applies
Infiniband Switches

Additional Reference
http://docs.oracle.com/cd/E36256_01/html/E36258/z400000a1907717.html


Article Author: Tarun Boyella

INFINIBAND: Information on Limited, Full and Both Memberships for Infiniband (IB) Partitions

Full vs Limited IB partition members

An IB port can either be a full member or limited member of a partition. The difference is simple. All full members within a partition can see and communicate to each other as well as limited members in the same partition. However, the limited members cannot see and communicate to other limited members in same partition but they can see and communicate with full members.

To illustrate better lets take example where A & B have full membership to partition and C & D have limited membership to partition. So below will be the behavior.

  • So A & B (full members) can communicate with each other and to C & D (limited members).
  • C & D (limited members) cannot communicate with each other (as they both are limited members). But C & D (limited) members can communicate to A & B (full members).

Special case membership - 'BOTH'

When we deal with virtual machines in Linux (XEN or OVS), there may be a scenario where some VM IB ports need to be limited and some as full which are all running on same Dom0 Hypervisor. In these scenarios there is special membership called BOTH where Port GUIDs of Dom0 Hypervisor can be added as BOTH member to partition. With Port GUIDs of Dom0 added as BOTH membership to partition VM's membership running on Dom0 can either be full or limited. VM membership to a partition whether it is full or limited is defined in vm.cfg file. BOTH membership is commonly seen in Exalogic deployments.



Products to which Article Applies

OVS Deployments using Infiniband, Exalogic

INFINIBAND: How To Add Node/Host Port GUIDs To A Particular Partition On Infiniband (IB) Switches? ("smpartition" Command)

Follow below steps to follow on Infiniband Switch running SM Master to add Node/host port GUIDs to a particular partition.

1. Login to the IB Switch running SM master as root user. "getmaster" command can be used to identify which IB Switch is running the SM master.

2. Start the SM partition using below command.

smpartition start

3. Add the Node/Host Port GUIDs to a partition using below command.
# smpartition add -pkey <PKey> -port <Port GUID1> <Port GUID2> ... <Port GUIDN> -m <membership>

For e.g. if you want to add port GUIDs 0010e0000164e371 and 0010e0000164e372 as full members to partition key 8008, your command looks as follows:

# smpartition add -pkey 0x0008 -port 0x0010e0000164e371 0x0010e0000164e372 -m full

NOTE: We have to use 0x0008 for 8008 partition (as per new IB firmware version standards from 2.1.5 & above) and for GUIDs we have to append 0x at the beginning.

4. Now commit the partition so that the new partition key addition changes are committed using below command.

smpartition commit

5. Now run below smpartition command and check if newly created partition is seen.

smpartition list active


Products to which Article Applies

Infiniband Switches

Additional Reference

https://docs.oracle.com/cd/E26698_01/html/E26434/z40004162037218.html#scrolltoc
 

INFINIBAND: How To Check Subnet Manager (SM) Partition Version On Infiniband (IB) Switches? ("smpartition" Command)

Below smpartition command can be used to check the SM partition version on the IB Switches.
smpartition list active no-page | grep version

Below is example output of above command showing partition version on IB Switch.
# smpartition list active no-page | grep ver
#! version_number : 190

NOTE: SM partition version should be same on the all the IB Switches on which SM is enabled.


Products to which Article Applies

Infiniband Switches

Additional Reference

https://docs.oracle.com/cd/E26698_01/html/E26434/z40000081987669.html
 

INFINIBAND: How To Create VNIC on Infiniband (IB) Switches? ("createvnic" Command)

Below is the command to create VNICs on Infiniband (IB) Switches.
createvnic <connector port> -GUID <GUID> -mac <MAC address> -vlan <VLAN ID> -pkey <partition key>

Lets assume the Node for which you want to create has GUID 0xabcde76232ac4df8 and HW address as 00:14:4f:f8:e3:27, and you want to create VNIC on connector port 0A-ETH-1 and partition key 8007, then your createvnic command will look as follows:
createvnic 0A-ETH-1 -GUID ab:cd:e7:62:32:ac:4d:f8 -mac 00:14:4f:f8:e3:27 -vlan 314 -pkey 0x0007

In above command for specifying the GUID 0xabcde76232ac4df8, you want to remove 0x at the beginning after every 2 characters you have to put ":". Please note 8007 partition key has to be specified as 0007 in createvnic command. Because in latest firmware versions of Infiniband after firmware version 2.1.5 & later the first number 8 of partition key is replaced with 0.

Products to which Article Applies

Infiniband Switches


Additional References

https://docs.oracle.com/cd/E26699_01/html/E26706/z40000401971679.html

LINUX: "df" Command To Find FileSystem / Partition To Which Directory or File Belongs (How To Doc)

Below "df" Command can be used to find the FileSystem / Partition to which directory or file belongs.
df -HT <filename or directory>

For e.g. if you run above df command on /testshare/file-test.out file as follows and lets assume /testshare/file-test.out is file in NFS share.
df -HT /testshare/file-test.out

You will see output as follows which indicates that file-test.out belongs to testshare which is NFS mount.

# df -HT /testshare/file-test.out

Filesystem    Type     Size   Used  Avail Use% Mounted on
10.10.10.5:/export/common/test
               nfs     1.1T   593G   480G  56% /testshare

For e.g. if you run df command on /tmp, you will see output as follows as /tmp is local filesystem.

# df -HT /tmp
Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/sda2      ext3  8.4G  4.3G  3.6G  55% /



Products to which Article Applies

All Linux Operating Systems

LINUX: fdisk Command To Check the Size of Partitions / Volumes/ Disks (How To Doc)

Below fdisk command can be used to check the size of all the partitions, volumes, disks on Linux Machine.
fdisk -l

Below is example snippet of above command.

Disk /dev/xvdb: 107.4 GB, 107374182400 bytes
64 heads, 32 sectors/track, 102400 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

    Device Boot      Start         End      Blocks   Id  System
/dev/xvdb1               2      102400   104856576   83  Linux

Disk /dev/mapper/VolGroup00-LogVol01: 34.4 GB, 34359738368 bytes
255 heads, 63 sectors/track, 4177 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/VolGroup00-LogVol00: 33.8 GB, 33831256064 bytes
255 heads, 63 sectors/track, 4113 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

If you want to check the size of specific partition, volume below command can be used.

fdisk -s <name>

Below is example.
fdisk -s /dev/mapper/VolGroup00-LogVol00

Below is example snippet of above command.
# fdisk -s /dev/mapper/VolGroup00-LogVol00
33038336

Products to which Article Applies


All Linux Operating Systems

 

Additional Reference

 

https://www.tecmint.com/fdisk-commands-to-manage-linux-disk-partitions/