Problem mapping LUN disk from VIOS to the LPAR


 
Thread Tools Search this Thread
Operating Systems AIX Problem mapping LUN disk from VIOS to the LPAR
# 1  
Old 04-10-2009
Problem mapping LUN disk from VIOS to the LPAR

Hello guys,
It would be so nice of you if someone can provide me with these informations.
1) My SAN group assigned 51G of LUN space to the VIO server.I ran cfgdev to discover the newly added LUN. Unfortunately most of the disks that are in VIO server is 51G. How would I know which is the newly added 51G?
SAN team gave me some information like: Host Lun# 86 and symmetric disk ID# 750.
How can I use these information in the VIO to pin-point to the right LUN.

2) I tried to map the LUN to the LPAR (pure guessing of the disk#), using
mkdev -vdev hdiskxx -vadapter vhostx
All I got as an output is:
"0514-070: Only disks that support multi-path I/O or which have a PVID may be used as a virtual target device"
and yes when I did lspv -free on VIO server the disk I thought is the one didn't have PVID number assigned to it.

Any help will be highly appreciated..
thank you.
# 2  
Old 04-12-2009
hi,
1. depending on the type of SAN storage, usually the LUN id can be found with lscfg -l hdisk##

2. you can set the pvid like this: chdev -dev hdisk## -attr pv=yes

hope this helps

Randy
# 3  
Old 04-13-2009
Find new hdisk for VIOS

Here's what I do to find any hdisks that have been added to a VIOS or aren't assigned to a vhost. It's not pretty but it does the job.

Put the following into a script ( I called mine unused.sh ) and then chmod it. You have to create/run it as root because padmin isn't allowed to create files in it's restricted shell.

PATH=$PATH:/usr/ios/cli
echo "Creating list of drives not assigned to vhosts ..."
ioscli lsmap -all | grep ^Backing > lsmap.txt
for x in `lspv | awk '{print $1}' | grep -v hdisk0 | grep -vw hdisk1`
do
grep -q $x lsmap.txt
if [ $? -eq 1 ]
then
echo "$x"
ioscli lsdev -dev $x -attr | grep ^size | awk '{print $1" "$2"Mb"}'
fi
done





HTH!
# 4  
Old 05-12-2009
quick question:

From my SAN i have allocated a disk to VIO Server and from VIO Server to my LPAR

If I increase the space of the logical SAN DISK ; how will it get reflected on the lpar ?

Do I need to varyoffvg the vG of LPAR, go to my VIO Server and use the command chvg -g ?

any ideas for online (without varyoffvg ?)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

VIOS: Extend virtual disk assigned to running lpar?

Hello, VIOS 2.2.1.4 using IVM. I'm trying to extend a virtual disk assigned to a running lpar so that I can expand the lpar's datavg and grow some filesystems for the user. Storage admin expanded the lun and new size was reflected in VIO right away. I then needed the storage pool to... (2 Replies)
Discussion started by: j_aix
2 Replies

2. AIX

Moving VIOS, LPAR's, HMC to different subnet

Hi, Just joined to new company with one Power 720 Express (8202-E4C) server and have no much experience with IBM systems. I am trying to move everything I mentioned to different subnet as required by customer contract (currently sitting on same subnet as company lan). Access to this subnet will... (8 Replies)
Discussion started by: spricer
8 Replies

3. AIX

VIOS LPAR Error 0518

I am trying to install AIX 5.3 on one of the LPARs through VIOS but I get this error 0518 Reference Code Selection 0518 (Time stamp: 12/18/12 12:10:20 AM UTC) Starting kernel (Time stamp: 12/18/12 12:10:15 AM UTC) AIX is starting. (Time stamp: 12/18/12 12:10:15 AM... (10 Replies)
Discussion started by: filosophizer
10 Replies

4. AIX

List LPAR from VIOS

Hi guys, does anyone know how to get a list of the LPAR running on VIOS? Thanks! (5 Replies)
Discussion started by: cecco16
5 Replies

5. AIX

VIOS FC Mapping/NPIV questions

Please forgive me here as I don't fully understand what I am talking about here so if I use the wrong terminology please overlook me. We have multiple AIX LPARs on the managed system with two VIO Servers. A Co-Worker and I are trying to set up a new LPAR client (The guy that knows this is out)... (14 Replies)
Discussion started by: juredd1
14 Replies

6. AIX

Sharing lun between 2 LPAR

Hi, I would like to know how to share lun in between 2 lpars. I have run tbe below command on vio server. /usr/sbin/chdev -l hdisk1 -a reserve_policy=no_reserve after above command I am able to assign lun on one Lpar. but it is not visible to other lpar. even after this I have run... (3 Replies)
Discussion started by: manoj.solaris
3 Replies

7. AIX

What's the difference between VIOS and LPAR?

Hi All, Besides the licenses on VIO and LPAR. What's the main difference with the two? I have installed VIO, my manager told me so, because it's like a free hypervisor but I never installed LPAR before. How do you install it? And if you can give more info on the two, that would be great. ... (5 Replies)
Discussion started by: itik
5 Replies

8. AIX

VIOS to lpar Mapping

Hello, I have created mapping of 2 virtual adapters for Lpars using following command: mkvdev -vdev ipanalyzerlv1 -vadapter vhost11 mkvdev -vdev ipanalyzerlv -vadapter vhost13 The above two commands were succesfull but when I want to map the third virtual device to the same Lpar than... (3 Replies)
Discussion started by: Vit0_Corleone
3 Replies

9. AIX

LPAR and vio disk mapping

We have a frame the uses 2 vios that assign disk storage to LPAR's. We have a LPAr with multiple disk and I want to know how do I tell which vio is serving the disk. For example the LPAr has hdisk 0, 1, 2, 3 all the same size. I want to know which vio is serving hdisk0, 1. (4 Replies)
Discussion started by: daveisme
4 Replies

10. UNIX for Dummies Questions & Answers

LUN mapping

Hi, We recently purchased a 3 tb RAID. In the setup, it created 2 slices, one 2 tb and one 1 tb slice. Right now only the 2 tb slice is visible when booting up. I was told that the second slice needs to be mapped to a lun and a port like the first slice is. Does anyone know how I would go... (1 Reply)
Discussion started by: user23
1 Replies
Login or Register to Ask a Question