Reset HBA port in Oracle Solaris

If the devices not immediately available in fabric zones in a storage area network you can reinitialize the link to the devices by using the luxadm -e forcelip command. The following command can be used to list HBA devices: [root @ unixonline] / # luxadm -e port /devices/pci@1c,600000/QLGC,qlc@1/fp@0,0:devctl CONNECTED /devices/pci@1c,600000/QLGC,qlc@1,1/fp@0,0:devctl CONNECTED The following command can … Read more

Reset HBA port in Linux

There are several commands available that allow you to reset one or more interconnects in Linux, issue_lip is one and the most recommended command. The following command can be used to find HBA device name.(in this example host1,host2): [root@unixonline ~]# systool -c fc_host -v|egrep “Device =|node_name|port_state|speed” Class Device = “host1” node_name = “0x20000032fff8dce3” port_state = … Read more

Monitoring Swap Usage for Each Process With the top Command

To monitor which process is using swap, you can use the top command:Log in to Advanced shell (bash).Type the following command to enter the top utility: # top [root@unixonline]# top top – 01:10:24 up 230 days, 9:05, 9 users, load average: 0.00, 0.01, 0.05 Tasks: 220 total, 1 running, 219 sleeping, 0 stopped, 0 zombie … Read more

ISCSI in Solaris with iscsitadm Command

Target: Space which is being assigned from storage. Initiator: Client who is connecting to and using Target. Services: Depending on server role these services should be enabled/disabled. Configuring Target (Server) : #Show current settings iscsitadm show admin *  Assuming that a ZFS Volume named “Pool/Vol” is created in this regard. Change base directory : Create … Read more

Update the HBA firmware on Oracle-branded HBAs(Solaris)

If an HBA firmware update is required on an Oracle-branded HBA, a WARNING message will be placed in the /var/adm/messages file, such as this one: This procedure, while disruptive, will ensure that both driver and firmware are current. The force lip will temporarily disrupt I/O on the port. The disruption and firmware upgrade takes approximately 30-60 seconds to complete … Read more

How to do tape device discovery for NetBackup device configuration from RHEL Linux command line

How-To Steps: Scan and discover SCSI devices in Linux cli: scsi-rescan OR: ls -l /sys/class/scsi_host/echo “- – -” > /sys/class/scsi_host/host0/scanecho “- – -” > /sys/class/scsi_host/host1/scanecho “- – -” > /sys/class/scsi_host/host2/scanecho “- – -” > /sys/class/scsi_host/host3/scanecho “- – -” > /sys/class/scsi_host/host4/scanecho “- – -” > /sys/class/scsi_host/host5/scanecho “- – -” > /sys/class/scsi_host/host6/scan The commands to scan and … Read more

Finding the amount of used memory by each process in Solaris

What is VSZ memory? VSZ is short for Virtual Memory Size. It’s the total amount of memory a process may hypothetically access. ### fill out required <UserName> in following command to find the amount of used memory by each process. ### Output is in Kilobyte. for i in ps -aef | grep -i <UserName> | … Read more

The Open Source Definition

Introduction Open source doesn’t just mean access to the source code. The distribution terms of open-source software must comply with the following criteria: 1. Free Redistribution The license shall not restrict any party from selling or giving away the software as a component of an aggregate software distribution containing programs from several different sources. The … Read more

Recovering rebooted or crashed GlusterFS

checking glusterfs configurations: [root@glustertest1 ~]# gluster volume info Volume Name: test_volType: DisperseVolume ID: b23f6c11-8dfe-4d51-919d-35a30dd75100Status: StoppedSnapshot Count: 0Number of Bricks: 1 x (4 + 2) = 6Transport-type: tcpBricks:Brick1: glustertest1:/glusterfs/brick1Brick2: glustertest2:/glusterfs/brick1Brick3: glustertest3:/glusterfs/brick1Brick4: glustertest4:/glusterfs/brick1Brick5: glustertest5:/glusterfs/brick1Brick6: glustertest6:/glusterfs/brick1Options Reconfigured:transport.address-family: inetnfs.disable: on[root@glustertest1 ~]# [root@glustertest1 ~]# gluster volume statusVolume test_vol is not started if its not started: mount glusterFS: [root@glustertest1 ~]# mount … Read more

Rename a GlusterFS Peer in RHEL

Here are the steps:FYI, its not required to detach the peer. WARNING: Before proceed be sure of backup your data, and proceed with caution. Do not execute any command without understanding what it do exactly, be sure that you are in the correct path, make the correct names replacements in each command if apply (indicated … Read more