Re: Adding DASD to a Debian guest

2015-08-06 Thread Stephen Powell
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.

where  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 debian-s...@lists.debian.org.
The e-mail archives can be viewed at https://lists.debian.org/debian-s390/

Regards,

--
  .''`. Stephen Powellzlinux...@wowway.com
 : :'  :
 `. `'`
   `-

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Adding DASD to a Debian guest

2015-08-06 Thread Grzegorz Powiedziuk
in debian as far as I remember it was just a matter of adding a  new dasd to 
zipl.conf , running zipl and that’s it. 
Gregory Powiedziuk


 On Aug 6, 2015, at 3:17 PM, Mark Post mp...@suse.com wrote:
 
 On 8/6/2015 at 03:04 PM, Cameron Seay cws...@gmail.com 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.
 
 The same as any other mainframe Linux system: dasdfmt.  The bigger question 
 is what tools and configuration files are available/needed to make the 
 volumes persistent across a reboot.
 
 
 Mark Post
 
 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu 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/

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Adding DASD to a Debian guest

2015-08-06 Thread Mark Post
 On 8/6/2015 at 03:04 PM, Cameron Seay cws...@gmail.com 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.

The same as any other mainframe Linux system: dasdfmt.  The bigger question is 
what tools and configuration files are available/needed to make the volumes 
persistent across a reboot.


Mark Post

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Adding DASD to a Debian guest

2015-08-06 Thread Scott Rohling
Isn't dasdfmt, lsdasd,  et al there?   How did you install Debian?   Are
the ibm driver tools installed?Linux should be able to see it as soon
as it's online.  You may have to issue chccwdev -e   for the disk if it
doesn't happen automatically.   cat /proc/partitions should give you some
idea what disks Linux already sees as well.

You could use LXFMT from Sine Nomine under CMS if you can't do it under
Linux -- but you 'should' be able to.

Scott Rohling

On Thu, Aug 6, 2015 at 12:04 PM, Cameron Seay cws...@gmail.com 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?

 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu 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/


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Adding DASD to a Debian guest

2015-08-06 Thread Cameron Seay
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?

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Adding DASD to a Debian guest

2015-08-06 Thread Grzegorz Powiedziuk
Can you see them when you do
cat /proc/dasd/devices   ? 
If not than first bring them online (chccwdev -e 0.0.) and then check 
again. 
If they are there, than you are ready to do a low level format with dasdfmt  
/dev/dasdX (/proc/dasd/devices will tell you which dasdX is that). 
After that, create partitions (or not if you don’t want to) with fdasd 
/dev/dasdX
Later you can create LVM (or not if you don’t want to) with pvcreate, vgcreate, 
lvcreate. 
Last step is creating a filesystem with mkfs.ext4  (or ext3) on a new partition 
or logical volume. And now, you can mount it. 

But you have to know that at this point you are also rewriting cylinder 0 of 
this DASD  (if it is really attached) so it’s label will change. 


Let us know if you need more details

Grzegorz Powiedziuk



 On Aug 6, 2015, at 3:04 PM, Cameron Seay cws...@gmail.com wrote:
 
 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.


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/