Archive for November, 2012

LUNZ and HP-UX 11.31

Wednesday, November 28th, 2012

LUNZ is a placeholder. It is as simple as that. In HP-UX 11.31, ioscan runs without human intervention. Thus you can end up in a situation where your server can see the storage cabinet, but no luns are presented to the server … yet. And thus you get LUNZ. The same applies for 11.23 and below, but it is unlikely that you scan for devices before your storage admin comes along.

So back on track. You then end up with

disk 3 0/0/0/5/0/0/0.101.140.255.0.0.0 sdisk NO_HW DEVICE DGC LUNZ
/dev/dsk/c26t0d0 /dev/rdsk/c26t0d0
disk 4 0/0/0/5/0/0/0.101.156.255.0.0.0 sdisk NO_HW DEVICE DGC LUNZ
/dev/dsk/c27t0d0 /dev/rdsk/c27t0d0

And no matter how many times you do ioscan -fn, you get no devices. Before you go yelling at your storage admin, then try this

sudo ioscan -fnkC disk | grep LUNZ
disk 3 0/0/0/5/0/0/0.101.140.255.0.0.0 sdisk NO_HW DEVICE DGC LUNZ
disk 4 0/0/0/5/0/0/0.101.156.255.0.0.0 sdisk NO_HW DEVICE DGC LUNZ
disk 7 0/0/0/5/0/0/1.201.140.255.0.0.0 sdisk NO_HW DEVICE DGC LUNZ

sudo rmsf -H 0/0/0/5/0/0/0.101.140.255.0.0.0
sudo rmsf -H 0/0/0/5/0/0/0.101.156.255.0.0.0
sudo rmsf -H 0/0/0/5/0/0/1.201.140.255.0.0.0
sudo rmsf -H 0/0/0/5/0/0/1.201.156.255.0.0.0

Check

sudo ioscan -fnkC disk | grep LUNZ | wc -l
0

Try to get them onboard

sudo ioscan -fn
sudo insf
sudo ioscan -fnkC disk

Check

sudo ioscan -fnkC disk | grep DGC | wc
0 0 0

Still not there?! Odd? Not really. On HP-UX 11.31, you also have the new agile device. This is blocking the access.

sudo ioscan -fnNkC disk |grep LUNZ
disk 5 64000/0xfa00/0×5 esdisk NO_HW DEVICE DGC LUNZ

Run

sudo rmsf -H 64000/0xfa00/0×5

Now run

sudo ioscan -fnC disk
sudo insf

Check. Lo and behold. They are there now.

sudo ioscan -fnkC disk | grep DGC | wc
24 204 2244