Cool!  Very nice.
Does your scheme handle multipath at all?

-- R;





Matt Gourley <[EMAIL PROTECTED]>

Sent by: Linux on 390 Port <[email protected]>




07/10/2007 11:32 AM
Please respond to Linux on 390 Port <[email protected]>

From
Matt Gourley <[EMAIL PROTECTED]>
To
[email protected]
cc

Subject
Re: BaseVol/GuestVol server for SLES9






(Sorry this is so late; we wanted to make sure we had something solid
before I responded.)

Michael MacIsaac wrote:
> What are other people using for the layout of their master/golden image?
>
>

Right now, we're testing out the basevol/guestvol setup at
http://www.linuxvm.org/Info/HOWTOs/basevol9.html  With the help of the
folks at Novell, we finally solved our FCP issue, allowing our guestvol
systems to attach to FCP LUNs for filesystems like /opt, and save DASD
for the R/W portions of the operating system.

On our basevol system, we have a file called /etc/luns.guestvols, which
looks like this:

LINUX15:0.0.f106:0x50050768012004cc:0x0006000000000000
LINUX1:0.0.f105:0x50050768012004cc:0x0003000000000000
LINUX5:0.0.f100:0x5005076300c99168:0x5702000000000000
LINUX16:0.0.f107:0x50050768012004cc:0x0007000000000000
LINUX9:0.0.f101:0x50050768012004cc:0x0001000000000000
LINUX9:0.0.f103:0x50050768012004cc:0x0005000000000000

The fields, separated by colons, are Guest ID, channel, WWPN, and LUN.

We also have a script called /etc/init.d/boot.fcpluns:

#!/bin/sh
# Get the name of the guest:

modprobe vmcp
sleep 1
GUESTID=$(vmcp q userid | awk '{ print $1 }')


# Get a list of the targets

FCPTARGET=$(sed "/^$GUESTID/p;d" /etc/luns.guestvols)

# iterate

for a in $FCPTARGET ; do
       CCW=$(echo $a | awk -F":" '{ print $2 }')
       WWPN=$(echo $a | awk -F":" '{ print $3 }')
       LUN=$(echo $a | awk -F":" '{ print $4 }')
       /sbin/zfcp_host_configure $CCW 1
       /sbin/zfcp_disk_configure $CCW $WWPN $LUN 1
done

/etc/init.d/boot.fcpluns is run right after /etc/init.d/boot.guestvol
during the boot process.

When we add a system with an FCP LUN to our VM, we modify
/etc/luns.guestvols and re-run /etc/init.d/make-guestvol to ensure the
latest changes to this file will be sent to the new system.

-Matt

--
Matt Gourley
Systems Administrator
Pennsylvania State University
Administrative Information Services - Infrastructure/Sysarc
Rm 25 Shields Bldg., University Park, PA 16802
(814) 865-8726
[EMAIL PROTECTED]

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to