On Thu, 06 Aug 2015 15:04:10 -0400 (EDT), Cameron Seay wrote:
>
> I have attached 3 mod-9s to a guest where Debian is the OS.  Q DASD sees
> the new dasd, but of course Debian can't see it until it's in a Linux
> filesystem. We don't know how to format it while in Debian.
>
> Any suggestions?

All steps here are performed as the root user.

Step 1: cd to /etc/sysconfig/hardware.  Create empty files in this directory,
one per dasd device, with the touch command.  Use something like

   touch config-ccw-0.0.xxxx

where xxxx is the four-digit hexadecimal virtual device number (with leading
zeros if necessary to make four digits).  If the device number contains
hexadecimal digits in the range A-F, make sure they are in lower case.
For example:

   touch config-ccw-0.0.63fc
   touch config-ccw-0.0.63fd
   touch config-ccw-0.0.63fe

Shutdown and reboot.  The devices should now show up in the output of

   cat /proc/dasd/devices

Step 2: Create 1 or more partitions (up to 3) on the device with the fdasd
command.  See the man page for fdasd for details.  I usually create a
single partition on each disk which occupies the entire volume.

Step 3: If you are adding the new partitions to LVM2, use appropriate LVM2
commands to add the new partitions to LVM2 and enlarge the filesystem on
the logical volume.  I can't remember what they are because I don't use
LVM2 with my Debian servers.  If you want to use the partitions directly,
use a file system formatter, such as mke2fs, to create a filesystem on
each partition.  At this point, I recommend a shutdown and reboot again.
Upon reboot, udev aliases should have been created for your new partitions.
Check out the pseudo-files in /dev/disk/by-uuid.  Use these udev aliases
in /etc/fstab to mount them.  Of course, if it's a swap partition, use
mkswap instead of mke2fs.  Reboot again and your new file systems should be
mounted.  If you know what you're doing, you can avoid the reboots; but
I'm trying to keep it simple (and the e-mail short).

Debian doesn't use a front-end administration tool, such as yast, to do
this kind of thing.  You have to know the back-end commands.

HTH.

Debian has an s390 support e-mail list at [email protected].
The e-mail archives can be viewed at https://lists.debian.org/debian-s390/

Regards,

--
  .''`.     Stephen Powell    <[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 more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to