LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 10-01-2008, 09:02 AM   #1
javier_ccs
Member
 
Registered: Apr 2005
Location: Milton Keynes
Distribution: ubuntu 12.10
Posts: 90

Rep: Reputation: 15
Question vios and san disk newbie problem


hello, im a linux user and recently my company purchased some pseries and js21 blade servers, they told me that some training is coming, but i have to configure some servers urgently (as usual), however i have done some reading over the Internet but i haven't found anything yet and i really could use some help...

i have a js21 blade server with two lpars and the vios, i need to add a san disk to one of my lpars, so i send the wwn (on the vios) to the storage guys and they told me that the disk was configured (24Gb disk), so i

Code:
$ lsdev | grep hdisk
hdisk0          Available  SCSI RAID 10 Disk Array
hdisk1          Defined    EMC Symmetrix FCP Raid1
hdisk2          Available  EMC Symmetrix FCP Raid1
hdisk3          Available  EMC Symmetrix FCP Raid5
hdisk4          Available  EMC Symmetrix FCP Raid5
hdisk5          Available  EMC Symmetrix FCP Raid5
hdisk6          Available  EMC Symmetrix FCP Raid5
hdiskpower0     Available  PowerPath Device
hdiskpower1     Available  PowerPath Device
on the web interface of the vios i only see 40GB disks, anyway, i guess my questions is this (please be gentle)...

how can i configure one of those san disk to a lpar?
 
Old 10-01-2008, 10:15 AM   #2
javier_ccs
Member
 
Registered: Apr 2005
Location: Milton Keynes
Distribution: ubuntu 12.10
Posts: 90

Original Poster
Rep: Reputation: 15
oh i forgot to mention....

i did some reading and found out that i should run some commands on the aix:

cfgmgr and then
/opt/emc/SYMCLI/V6.3.2/bin/powermt config
/opt/emc/SYMCLI/V6.3.2/bin/syminq | more
/opt/emc/SYMCLI/V6.3.2/bin/powermt save

now... on the vios i did a cfgmgr and i got:
rksh: cfgmgr: not found.
i tried to change the directory to /opt and i got:
rksh: cd: 0403-019 The operation is not allowed in a restricted shell.

so i went to the lpar's...

and i did a cfgmgr, everything is fine...

# lsdev | grep hd
hd1 Defined Logical volume
hd2 Defined Logical volume
hd3 Defined Logical volume
hd4 Defined Logical volume
hd5 Defined Logical volume
hd6 Defined Logical volume
hd8 Defined Logical volume
hd10opt Defined Logical volume
hd9var Defined Logical volume
hdisk0 Available Virtual SCSI Disk Drive

and on the other lpar:

# lsdev | grep hd
hd1 Defined Logical volume
hd2 Defined Logical volume
hd3 Defined Logical volume
hd4 Defined Logical volume
hd5 Defined Logical volume
hd6 Defined Logical volume
hd8 Defined Logical volume
hd10opt Defined Logical volume
hd9var Defined Logical volume
hdisk0 Available Virtual SCSI Disk Drive

so i guess, both lpar are watching the disks, but theres no /opt/emc folder on /opt.... what is going on?, is it not installed? if its not installed, how come it recognizes some disks????

please!!!
 
Old 10-01-2008, 02:59 PM   #3
javier_ccs
Member
 
Registered: Apr 2005
Location: Milton Keynes
Distribution: ubuntu 12.10
Posts: 90

Original Poster
Rep: Reputation: 15
for future reference, in case some other newbie (as me) searchs for this particular issue...

*.- inside the vios...

powermt display dev=all

that syncronizes the devices and shows the disks added...

then go to the web interface of the vios and assign the disk to the lpar, then all we need to do is create the volume group (im trying to do it), and the create the file system (me guessing)...

will update later...
 
Old 10-03-2008, 09:05 PM   #4
centos82
Member
 
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
On a VIO Server by default you log into a restricted shell. cfgdev is the equivalant of cfgmgr in the restricted shell. Also in the restricted shell you cannot change directories or call commands using an absolute path. To get out of the restricted shell run "oem_setup_env" Then you will be able to switch directories and run cfgmgr.

To assign a virtual disk to a server you will need to create a vhost device file and create a virtual target disk.

To create the vhost, using the HMC, on the virtual server or the VIO server (your choice) select to create a new virtual scsi adapter. Give it a slot number, and assign it to the server you want it assigned to. Then run cfgdev (in restricted shell) or cfgmgr on the VIO server. In the restricted shell run "lsmap -all" This will list all of your vhost devices.

Note: To get back to the restricted shell after running oem_setup_env just type exit.


You should now see your vhost. If this is the first virtual scsi adapter you have created it will probably be vhost0. To create the virtual target disk run the command

mkvdev -vdev <hdisk on vioserver> -vadapter vhost0 -dev <a name you pick..e.g. servernamedisk1>

An example would be:

mkvdev -vdev hdiskpower0 -vadapter vhost0 -dev servernamedisk1

This command also needs to be run from the restricted shell.

Hope this helps.
 
Old 11-05-2008, 05:45 PM   #5
membit
LQ Newbie
 
Registered: Nov 2006
Location: Finland
Distribution: OpenSuse
Posts: 26

Rep: Reputation: 15
Just notice that if you have fault tolerant VIO-server environment
- one path to LUN-0 goes via VIOS-A
- one path to LUN-0 goes via VIOS-B
and LPAR does have 2 VSCSI adapters, where one is configured for VIOS-A and one for VIOS-B


You should do following for every device on VIO-servers:

execute (I don't remember was it after or before oem_setup_env, just try which one works)
Code:
lsattr -El hdiskpower0
Then you probably see parameter 'reserve_lock'
In powerpath, it is 'yes' as a default. It should be change to 'no'

Code:
chdev -l hdiskpower0 -a reserve_lock=no
EDIT:
Oh, almost forgot;
This is because if VIOS-A gets the LUN-0 first, VIOS-B cannot show it to the LPAR.
You notice this by executing lspath on LPAR (assuming LPAR is AIX).

Last edited by membit; 11-05-2008 at 05:47 PM. Reason: To add more info
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SAN disk problem ronanio Linux - Enterprise 12 03-29-2007 01:52 AM
Local Disk VS SAN. mmars Linux - Hardware 0 05-05-2006 10:35 AM
san disk resize problem ronanio Linux - Enterprise 0 02-07-2006 06:21 AM
Adding new Disk attached from SAN with out reboot.? dcj1mmy Linux - Enterprise 4 10-28-2005 04:42 PM
VIOS and SAN storage looseCannon AIX 3 03-30-2005 02:51 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration