Jos�,

I'm going to point you to a manual you should read (for future reference),
and then tell you how to add your volumes.

Linux/390 2.4 and higher supports dynamic DASD addition/removal.  The manual
that talks about this is "Linux for S/390 Device Drivers and Installation
Commands (Linux Kernel 2.4)" and it can be downloaded from
http://www10.software.ibm.com/developerworks/opensource/linux390/docu/l390dd
08.pdf


To add a volume (or multiple volumes) issue this command:
        echo "add device range=123-126 " > /proc/dasd/devices

If you then
        cat /proc/dasd/devices
you should see device numbers 123 through 126.  If you just want to add one
volume, then
        echo "add device range=123 " > /proc/dasd/devices

Use this command twice if the two device numbers are not consecutive.  Note
the trailing blank on the echo command.  There used to be a bug in the
interface that made that blank required.  The bug may have been fixed, but
I'm not sure.


After you add the DASD, you'll need to format it:
        dasdfmt -f /dev/dasdb -b 4096
        dasdfmt -f /dev/dasdc -b 4096

The /dev/dasd names will depend on which volumes you just added, so do a
        cat /proc/dasd/devices
to see what they are.

After you format the DASD, you'll need to create at least one partition on
each of them:
        fdasd /dev/dasdb
        fdasd /dev/dasdc
You'll be prompted to add a partition, and how big it should be, etc.
Again, check to make sure what /dev/dasd names you should be using on your
system.

After you've created the partitions, you need to make a file system on them:
        mke2fs -b 4096 /dev/dasdb1
        mke2fs -b 4096 /dev/dasdc1

If you created more than one partition, then
        mke2fs -b 4096 /dev/dasdb1
        mke2fs -b 4096 /dev/dasdb2
        mke2fs -b 4096 /dev/dasdc1
        mke2fs -b 4096 /dev/dasdc2
        etc.

You should now be ready to mount the file systems and use them.

Depending on what file system drivers your system has loaded, you may be
able to use ext3, JFS, XFS, Reiserfs, or other file system types.  If you're
not sure, use ext2 as I did in the samples.

To understand these commands more:
        man dasdfmt
        man fdasd
        man mke2fs
        man mkfs

Mark Post

-----Original Message-----
From: Rugel Jos� [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 11:44 AM
To: [EMAIL PROTECTED]
Subject: Add new 3390 DEV to Linux


Hi,
I need to adda new two 3390 DEV to Linux.
I'm not an expert at Linux wordl.
So, I need some help to add two new 3390 devices to Linux ( Suse 2.4.7).

TIA.
Jos� Rugel C.
Tel�fono: 563-744  o  566-010 ext 2128 
E-mail: [EMAIL PROTECTED]

Reply via email to