I used to do the "add device", but I found it's only necessary if the device isn't in 
the range specified in zipl.conf at boot time.  If it's predefined, you get some 
messages on the console, and the
device "magically" appears.

The steps you need to do are:

1) Create the minidisk and attach to the machine (link or hcp link).

2) Check /proc/dasd/devices and make sure the disk is there.  If it isn't, do the 
command below, but don't forget to add the device to zipl.conf and run zipl to make it 
permanent.

3) Make sure there are device nodes in /dev for it.  Several scripts have been 
published that read /proc/dasd/devices and build required nodes.  The base major/minor 
numbers are shown in
/proc/dasd/devices.  These reference the WHOLE DISK.  Nodes also have to be built for 
at least one partition.  For example, if /proc/dasd/devices has:

010b(ECKD) at ( 94: 44) is dasdl      : active at blocksize: 4096, 108000 blocks, 421 
MB

So you would do:

mknod /dev/dasdl b 94 44
mknod /dev/dasdl1 b 94 45
mknod /dev/dasdl2 b 94 46
mknod /dev/dasdl3 b 94 47

4) Run dasdfmt.

> -----Original Message-----
> From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of
> Rich Smrcina
> Sent: Thursday, March 11, 2004 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [LINUX-390] Dynamically adding minidisks
>
>
> Do they appear in cat /proc/dasd/devices?  If not, you need to:
>
> echo "add device range=xxx-yyy" >>/proc/dasd/devices
>
> On Thu, 2004-03-11 at 09:41, Nick Laflamme wrote:
> > Does anyone have a pointer for something like "The Idiots' Guide to
> > Dynamically Adding Disk Space for Linux on S/390"?
> >
> > I think I've got the pieces laid out in front of me, but I can't put
> > them together in the right order to make them work.
> >
> > I've linked to new minidisks. Their addresses show up in
> > /proc/subchannels. However, when I go to use dasdfmt,
> dasdfmt can't find
> > the devices.
> >
> > We're running a SuSE SLES 8 server on a trial, under z/VM 4.4. I'm
> > registered for portal.suse.com, but their support database's search
> > engine doesn't have any hits on "dasdfmt".
> >
> > I'm sure I'm missing something simple, maybe even trivial,
> but knowing
> > that I'm missing it doesn't make it more apparent. :-) What
> should I be
> > trying next? :-)
> >
> > Thanks,
> > Nick
> >
> >
> ----------------------------------------------------------------------
> > 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
> --
> Rich Smrcina
> Sr. Systems Engineer
> DSG eServer & Linux Solutions
> Milwaukee, WI
> rsmrcina at wi.rr.com
> rsmrcina at dsgroup.com
>
> Catch the WAVV! Stay for requirements and the free-for-all.
> Update your zSeries skills in 4 days for a very reasonable price.
> WAVV 2004 in Chattanooga, TN
> April 30-May 4, 2004
> For details see http://www.wavv.org
>
> ----------------------------------------------------------------------
> 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
>

==============================================================================

If you are not an intended recipient of this e-mail, please notify
the sender, delete it and do not read, act upon, print, disclose,
copy, retain or redistribute it.

Click here for important additional terms relating to this e-mail.
     <http://www.ml.com/email_terms/>

==============================================================================

----------------------------------------------------------------------
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