How to put vscsi in available state?


 
Thread Tools Search this Thread
Operating Systems AIX How to put vscsi in available state?
# 1  
Old 07-28-2015
How to put vscsi in available state?

Hello Friends,

My question/problem is that I noticed 2 servers in my environment vscsi is showing up as defined (not available) or is defined and not showing the path to both vscsi's when ruining lspath command. I am new to AIX admin, work alone, and work in an small environment. My question is, is it a need to make available? I know every LPAR should have redundancy, this is not urgent as this may of been like this since I started with this company a month ago, but i would like to understand this process/commands and how this could of happened. any help is greatly appreciated.

Please let me know if any other information maybe needed to support me on this.

Thanks in advanced fellow friends.

all other LPARs have the below output..
code:
Code:
#:/>lspath
Enabled hdisk0 vscsi0
Enabled hdisk1 vscsi0
Enabled hdisk0 vscsi1
Enabled hdisk1 vscsi1

Code:
#:/>lsdev -Cc adapter
ent0   Available  Virtual I/O Ethernet Adapter (l-lan)
pkcs11 Available  ACF/PKCS#11 Device
vsa0   Available  LPAR Virtual Serial Adapter
vscsi0 Available  Virtual SCSI Client Adapter
vscsi1 Available  Virtual SCSI Client Adapter


The two LPARs that my question is for is showing me both different output:

server 4
code:
Code:
#:/>lspath
Enabled hdisk0 vscsi0
Enabled hdisk1 vscsi0

Code:
#:/>lsdev -Cc adapter
ent0   Available  Virtual I/O Ethernet Adapter (l-lan)
pkcs11 Available  ACF/PKCS#11 Device
vsa0   Available  LPAR Virtual Serial Adapter
vscsi0 Available  Virtual SCSI Client Adapter
vscsi1 Defined    Virtual SCSI Client Adapter

server 5
code:
Code:
#:/>lspath
Enabled hdisk0 vscsi0
Enabled hdisk1 vscsi0

code:
Code:
#:/>lsdev -Cc adapter
ent0   Available  Virtual I/O Ethernet Adapter (l-lan)
pkcs11 Available  ACF/PKCS#11 Device
vsa0   Available  LPAR Virtual Serial Adapter
vscsi0 Available  Virtual SCSI Client Adapter
vscsi1 Available  Virtual SCSI Client Adapter


Moderator's Comments:
Mod Comment edit by bakunin: i appreciate your effort of writing "code:" in front of all code portions, but this is not what we meant when asking for the use of "code tags". We meant that you mark some text portion, then use the button labeled "code" in the editors menu. This is how i corrected your post. Please do so in the future. Thank you.

Last edited by bakunin; 07-28-2015 at 10:37 AM..
# 2  
Old 07-28-2015
What happens if you execute mkdev -l vscsi1?
This User Gave Thanks to agent.kgb For This Post:
# 3  
Old 07-28-2015
Quote:
Originally Posted by agent.kgb
What happens if you execute mkdev -l vscsi1?


Do I have to make vscsi1? it looks as if its already made. no?

also should I try these commands in LPAR or vio servers?
# 4  
Old 07-28-2015
on server4.
This User Gave Thanks to agent.kgb For This Post:
# 5  
Old 07-28-2015
Quote:
Originally Posted by agent.kgb
on server4.
It gives me this error message

code:
Code:
#:/>mkdev -l vscsi1
Method error (/usr/lib/methods/cfg_vclient):
        0514-040 Error initializing a device into the kernel.

Moderator's Comments:
Mod Comment edit by bakunin: same here, please use CODE-tags instead of writing "code:".

Last edited by bakunin; 07-28-2015 at 10:36 AM..
# 6  
Old 07-28-2015
There can be at least 3 possible problems:
  1. you didn't connect client VSCSI device to a server VSCSI device.
  2. you connected client VSCSI device to wrong server VSCSI device.
  3. you connected client VSCSI device to the right server VSCSI device, but made a mistake in a device definition (wrong LPAR ID).
On server4 side:
Code:
lscfg -l vscsi1

On VIOS side:
Code:
lsdev -dev vhost* -vpd

On HMC side:
Code:
lssyscfg -r prof -m YOUR_MANAGED_SYSTEM --filter "lpar_names=YOUR_VIOS" -F virtual_scsi_adapters
lssyscfg -r prof -m YOUR_MANAGED_SYSTEM --filter "lpar_names=server4" -F virtual_scsi_adapters

This User Gave Thanks to agent.kgb For This Post:
# 7  
Old 07-28-2015
You seem to lack a solid understanding how all the virtualisation works:

First you create a virtual SCSI adapter on the VIOS and allow a certain LPAR to use it. For the LPAR it is used like any physical SCSI adapter, save for the fact that it is just a software construct in the VIOS. You do this on the HMC (see here), then run cfgdev on the VIOS.

Next you create (virtual) SCSI-devices on the VIOS: see the command "mkvdev" on the VIOS for creating such devices. You create such a device by assigning a "backing device" (some disk space the VIOS can control) and connect it to a virtual SCSI adapter.

For instance:
Code:
mkvdev -vdev hdisk10 -dev vtdisk_lpar5 -vadapter vhost5

This means: take "hdisk10" on the VIOS and use it(s disk space) to create a virtual disk "vtdisk_lpar5", which is connected to a virtual SCSI adapter named "vhost5". If "vhost5" is connected to the "lpar 5" you can run the cfgmgr command there and the newly connected disk would appear.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unable to install client AIX LPAR to vscsi hdisk provided from VIOS

Hi everybody, I have Power5 server with 4 internal hdisks each of 70Gb. VIOS server was installed via Virtual I/O Server Image Repository on the HMC. HMC release - 7.7.0 VIOS rootvg installed on 2 disk(these disks merged to one storage pool during VIOS install process),and 2 others hdisks... (2 Replies)
Discussion started by: Ravil Khalilov
2 Replies

2. AIX

Devices.vscsi.disk ?

Hello, When I assigned CDROM from IVM (VIOS) to LPAR and then running cfgmgr i get the following message on the client lpar #cfgmgr cfgmgr: 0514-621 WARNING: The following device packages are required for device support but are not currently installed. devices.vscsi.disk searching... (0 Replies)
Discussion started by: filosophizer
0 Replies

3. AIX

Open firmware state to running state

Hi Admins, I am having a whole system lpar in open firmware state on HMC. How can I bring it to running state ? Let me know. Thanks. (2 Replies)
Discussion started by: snchaudhari2
2 Replies

4. AIX

Kdb - vscsi disk mapping from AIX 5.3 CLIENT side

If you're familiar with vscsi mappings thru a VIO Server, you are probably aware, on an AIX 6.1 Client LPAR, that: print cvai | kdbcan provide useful information to you.... like VIO Server name & vhost #. But, "cvai" does not appear to be part of the Kernel Debugger in AIX 5.3. My question is... (3 Replies)
Discussion started by: The Doctor
3 Replies

5. AIX

hdisk mapping to a vSCSi Adapter

Hello, I have a VIOS System and would like to do mapping some hdisks, hdisk160 until hdisk165 to a vSCSi Adapter. I try to do this in the oem_setup_env like the following: for i in $(lspv | grep hdisk* | awk {'print $1'}; do mkdev -V $i -p vhost20 done There where a mapping with... (4 Replies)
Discussion started by: torsten163
4 Replies

6. AIX

Vscsi and npiv on same adapter

Hi, I want to change from vscsi to npiv. Is it possible to use both on the same adapter, so we can change the systems one by one, or must we place a second FC adapter in the VIO servers? Thanks, Ronald (2 Replies)
Discussion started by: ronaldm60
2 Replies

7. AIX

Migrating hdisks from vscsi to NPIV with powerpath

Hi All, I'm preparing to migrate some servers from vscsi to pass-thru NPIV. I am planning to have the SAN team move the exact LUNs from vio1/vio2 to those two VWWN through NPIV. My question is on the partition itself.. right now, let's say I have hdisk0/1/2/3/4 that are part of datavg. They... (2 Replies)
Discussion started by: lapfrank
2 Replies

8. Solaris

Zone in down state.

One of my zone is stuck in down state, not able to boot it or halt it .. not even detach .. is there any way to recover without rebooting the whole system ( global zone ) ? (3 Replies)
Discussion started by: fugitive
3 Replies

9. UNIX for Advanced & Expert Users

TIME_WAIT state

in TCP, is TIME_WAIT state really essential..!!! (3 Replies)
Discussion started by: sasikanth
3 Replies
Login or Register to Ask a Question

Featured Tech Videos