Re: Dynamically removing memory - bug?

2013-12-06 Thread Christian Paro
With memory hotplug, the removal of hot-plugged memory is also condition on there not being and unmovable memory pages within the memory region that you're trying to remove - with it returning an EBUSY error if it is not presently able to offline that region. From the memory-hotplug.txt in the

Re: Dynamically removing memory - bug?

2013-12-06 Thread Christian Paro
...of course, the same file says that the removable flag in sysfs should only be one when every memory segment in the block is removable, so it's possible this is a bug in the reporting of the removability of that memory. On Fri, Dec 6, 2013 at 10:24 PM, Christian Paro christian.p

Re: LVM thin provisioning

2013-12-06 Thread Christian Paro
Crazy thought... ...you could create a Linux LPAR or VM that manages a large LVM pool with thin-provisioned volumes, and export these volumes as filesystems over NFS or as block devices with AoE. Then you could build your thin Linux VM guests with a small boot volume (possibly even a read-only

Re: LVM thin provisioning

2013-12-06 Thread Christian Paro
as a remote virtual block device (or file system, or object store) in the first place. On Fri, Dec 6, 2013 at 10:38 PM, Christian Paro christian.p...@gmail.comwrote: Crazy thought... ...you could create a Linux LPAR or VM that manages a large LVM pool with thin-provisioned volumes, and export

Re: Good tutorial on regexp with bash

2012-12-10 Thread Christian Paro
I would add that in Bash, you need to watch for the change in regex-quoting behavior between version 3.1 and 3.2: http://stackoverflow.com/questions/218156/bash-regex-with-quotes ...if you are writing scripts that need to support both older and newer versions of Bash, though, you can use the

Re: Kernel ring buffer date stams missing

2012-04-20 Thread Christian Paro
Just a guess here, but maybe the s390x kernel for SLES 11 SP1 was compiled with CONFIG_PRINTK_TIME disabled, while the x86-64 kernel had the same option enabled? I do see those time-offset numbers at the beginning of output from other kernels on s390x, so I don't think it's a difference inherent

Re: Kernel ring buffer date stams missing

2012-04-20 Thread Christian Paro
Of course, if you don't need the time stamps for early boot, you can turn them on at runtime through the /sys filesystem: http://elinux.org/Debugging_by_printing#Printk_Timestamps On Fri, Apr 20, 2012 at 4:57 PM, Christian Paro christian.p...@gmail.comwrote: Just a guess here, but maybe

Re: Extending a DASD partition

2012-03-31 Thread Christian Paro
The fdasd partitioning tool only alters the disk's partition table, which is outside of the partition being resized - making it suitable for extending a partition (assuming there is free formatted space after it) or shrinking a partition (assuming you have already shrunk the filesystem within it).

Re: Extending a DASD partition

2012-03-28 Thread Christian Paro
Assuming there's free space following your existing partition, you can use fdasd to increase the partition size (just make sure you keep the same starting cylinder), and then resize your filesystem with resize2fs after the partition has been extended. On Wed, Mar 28, 2012 at 10:50 AM, Florian

Re: Extending a DASD partition

2012-03-28 Thread Christian Paro
PM, Christian Paro christian.p...@gmail.com wrote: Assuming there's free space following your existing partition, you can use fdasd to increase the partition size (just make sure you keep the same starting cylinder), and then resize your filesystem with resize2fs after the partition has

Re: Scientific Linux

2012-01-27 Thread Christian Paro
Might you mean Gentoo? http://dev.gentoo.org/~vapier/s390/ On Fri, Jan 27, 2012 at 3:04 PM, John Campbell soup...@gmail.com wrote: Cameron Seay wrote: What would I have to do to get a distro to run on z/VM? I want to run Scientific Linux, but there does not appear to be a version for VM.

Re: Redhat equivalent of Yast?

2011-11-09 Thread Christian Paro
As far as those separately-invoked tools are concerned, you're looking for `yum` as the Redhat equivalent to YAST for software package management, and `system-config-*` for the other kinds of configuration that you could access through YAST on SuSE. Redhat's approach does, in my experience,

Re: FICON-Attached 3590 Tape Drives Not Detected

2011-11-05 Thread Christian Paro
Have you tries using the `cio_ignore` command to make sure the channels your tapes are attached to aren't blacklisted? For example: cio_ignore -r 1500 Your tape drives may currently be masked from being detected. For more info on cio_ignore, see What's new in RHEL 6 for Linux on System

Re: ssh tunnel NFS mounting

2011-10-21 Thread Christian Paro
If all you want is a convenient way to (securely) mount a remote Linux file system to edit files (or copy them to a local location to edit them off-line), then there are two very easy ways to do that: For a Linux client, SSHFS: http://fuse.sourceforge.net/sshfs.html For Windows client, WinSCP:

Re: VDISK Swap

2011-10-05 Thread Christian Paro
You can use SWAPGEN if you're IPLing CMS before Linux, or (if you prefer an all-Linux solution) use an init script to perform the mkswap and swapon the disks (rather than putting them in /etc/fstab). On Wed, Oct 5, 2011 at 3:30 PM, Dean, David (I/S) david_d...@bcbst.comwrote: Rob, thanks, but I

Re: DASD assignment different between SLES10 and SLES11

2011-09-29 Thread Christian Paro
Is this for a program or fstab entry which is expecting that disk to always appear at /dev/dasdp? Because if you can edit your source, it would be safer to refer to your disks by path (such as /dev/disk/by-path/ccw-0.0.0154) rather than by their dasd[a-z][a-z]* names. The path will always

Re: DASD assignment different between SLES10 and SLES11

2011-09-29 Thread Christian Paro
On the readlink example, the $ indicates a variable. So in a script you could set vdev='015f' and then reference that value as ${vdev}. Or you could just hard code in the 015f. ...also note that the by-path disk nodes always zero-pad the beginning of a virtual device number, so it'll be four

Re: Fedora 15 on z/VM

2011-08-06 Thread Christian Paro
5, 2011 at 7:14 PM, Rob van der Heij rvdh...@gmail.com wrote: On Fri, Aug 5, 2011 at 8:55 PM, Christian Paro christian.p...@gmail.com wrote: ...also setting swap priorities such that your (fast) VDisk swap space will be used before any TDisk swap space is used, and your TDisk swap space

Re: Fedora 15 on z/VM

2011-08-05 Thread Christian Paro
FWIW, if you use an init scrit rather than SWAPGEN to handle swap creation on VDisk, this also frees you from having to IPL CMS prior to booting Linux - shaving a little time off of the boot process. It also allows you to easily use one script for all your systems while defining different

Re: Enabling/Disabling IPv6 Autoconf on SLES

2011-05-05 Thread Christian Paro
. In my limitted experience, I can always manually add a V6 address. No reboot. -- R; Rick Troth Velocity Software http://www.velocitysoftware.com/ On Wed, May 4, 2011 at 12:06, Christian Paro christian.p...@gmail.com wrote: It is possible on RHEL systems to disable IPv6

Re: Enabling/Disabling IPv6 Autoconf on SLES

2011-05-05 Thread Christian Paro
-2 VSwitches and GuestLANs. Layer-3 VSwitches are documented as IPv4 only: http://www.vm.ibm.com/networking/ipv6/ipv6tabl.html On Thu, May 5, 2011 at 2:14 PM, Mark Post mp...@novell.com wrote: On 5/5/2011 at 12:49 PM, Christian Paro christian.p...@gmail.com wrote: -snip- Putting the ipv6

Enabling/Disabling IPv6 Autoconf on SLES

2011-05-04 Thread Christian Paro
It is possible on RHEL systems to disable IPv6 autoconfiguration either system-wide (in /etc/sysconfig/network) or or specific interface (in that interface's /etc/sysconfig/network-scripts/ifcfg-* file) using the IPV6_AUTOCONF=[yes/no] statement. I have been looking for an equivalent mechanism in

Re: Adding a new 3390 disk

2011-04-21 Thread Christian Paro
Yes. chccwdev -e [the new disk's virtual device address] lsdasd ...the first will bring the disk online, the second will show you the device address it is attached to (in case you're using the /dev/dasd[a-z]* paths instead of something like /dev/disk/by-path/ccw-0.0.[vdev]) On Thu, Apr 21,

Re: FBA/SCSI vs ECKD zLinux on VM

2011-03-11 Thread Christian Paro
A full set of benchmarks for different disk technologies with z/VM: http://www.vm.ibm.com/perf/reports/zvm/html/520dasd.html On Fri, Mar 11, 2011 at 12:57 PM, Donald Russell russell@gmail.comwrote: I currently have a dozen or so RHEL 5.6 zLinux running on multiple VM 6.1 (well, 5, but 6.1

Re: Cloning question for zLinux

2011-03-09 Thread Christian Paro
What do you get from: lsdasd file -s /dev/disk/by-path/ccw-0.0.020e file -s /dev/disk/by-path/ccw-0.0.020e-part1 On Wed, Mar 9, 2011 at 1:24 PM, Gary Detro de...@us.ibm.com wrote: Sorry I didn't make it clear the 20f and 20e are not he same disk. link linux73 201 20f mr link linux77 201

Re: Using 2 NIC addresses to different networks on different VSWITCHes

2011-03-03 Thread Christian Paro
A system can only have one default interface. But it should only be falling back to default when one of the more specific routes have not been met. So if I have a system like this: # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 9.1.2.3 * 255.255.255.128 U

Re: Using 2 NIC addresses to different networks on different VSWITCHes

2011-03-03 Thread Christian Paro
Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM -Original Message- From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Christian Paro Sent: Thursday, March 03, 2011 2:01 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: Using 2 NIC

Re: vswitch name in sysfs

2011-01-20 Thread Christian Paro
...@linux.vnet.ibm.comwrote: Not encouraging to make procedures dependent on vswitch names, just sharing info on how to obtain base info within Linux itself. On 01/19/2011 09:02 PM, Christian Paro wrote: #!/bin/bash ### BEGIN SCRIPT: getswitchname ### function getVSwitch { local iface=$1

Re: vswitch name in sysfs

2011-01-19 Thread Christian Paro
You can get the information you need indirectly, at least. The udev configuration in /etc/udev/rules.d records the correlation between virtual device numbers (line 0600) and Linux network interface names (like eth0), and the virtual device number corresponding to your network interface can be

Re: Help - Adding zfcp device to Redhat 5.4 ?

2010-12-20 Thread Christian Paro
Have you seen this?: http://www.vm.ibm.com/education/lvc/lvc1020c.pdf ...I've only used this method on SLES so far- but the approach in that presentation (see p. 14 for adding a SCSI device to the live configuration, p.17 for persisting this in your configuration files) is based on s390-tools,

Re: Suse SLES 11 / reiserfs / readonly problem

2010-08-25 Thread Christian Paro
Difference is that ext3 is prepared to fall back to ext2 functionality when being read from a read-only device - which makes perfect sense, given that the journal's purpose is to protect the integrity of writes and (as Mark pointed out) it is of no value on a disk which will never again be written

Re: Suse SLES 11 / reiserfs / readonly problem

2010-08-24 Thread Christian Paro
Reiserfs simply won't work if the disk you're trying to use it on is read-only - even when you attempt to mount the volume read-only, it expects read/write access to its journal and panics if it doesn't get it. So far as I could tell when I ran into this issue, there is no way to configure around

Re: How to get Red Hat zLinux into single user mode?

2010-07-12 Thread Christian Paro
I'm not sure single-user mode will help you here. According to RedHat, single-user mode isn't appropriate for situations where you aren't able to successfully mount your file systems:

Re: sles11 module-init-tools_fix_bnc480524

2010-06-11 Thread Christian Paro
http://www.mail-archive.com/linux-390@vm.marist.edu/msg53768.html On Fri, Jun 11, 2010 at 10:26 AM, pavan kumar pavankumar...@yahoo.comwrote: Hi This is Pavan I'm trying to update my SLES 11 kernel but get a failed dependency for module-init-tools_fix_bnc480524 which I can't find anywhere.

Re: Configuring networking in zVM under Hercules???

2010-06-09 Thread Christian Paro
I don't know what school the OP goes to, but perhaps he should be looking into this: http://www.ibm.com/developerworks/university/systemz/index.html http://www.ibm.com/developerworks/university/systemz/index.htmlCertainly, he'd be better off - practically as well as legally - learning on the

Re: extending an LV

2010-06-03 Thread Christian Paro
What do you see when you do `modprobe vmcp; vmcp q v dasd` and `lsdasd`? Also, did you do a full log-off/log-on of the guest after adding the disk to its directory statement? A complete log-off and log-on is necessary to make the guest's runtime state reflect the changes made to the directory,

Re: extending an LV

2010-06-03 Thread Christian Paro
ljmace1...@yahoo.com wrote: Yes I logged off,pn,then even rebooted I did an lsdasd but 207(the new dasd) isnt shown Thx Mace On Thu Jun 3rd, 2010 9:56 AM EDT Christian Paro wrote: What do you see when you do `modprobe vmcp; vmcp q v dasd` and `lsdasd`? Also, did you do a full log-off/log

Re: tar extract - code conversion.

2010-06-03 Thread Christian Paro
You could do something like this after extracting the archive: #/bin/bash mkdir ../ascii SAVEIFS=$IFS IFS=$(echo -en \n\b); for file in $(find .); do dd if=$file of=../ascii/$file conv=ascii done FS=$SAVEIFS ...and then you'll have another directory containing EBCDIC-to-ASCII converted copied

Re: createrepo on SLES11

2010-05-10 Thread Christian Paro
Example for adding a repository with zypper: `zypper addrepo --refresh nfs://192.168.0.1/nfs/sles11sp1/dvd1SLES11SP1DVD1` Example for removing a repository: `zypper removerepo nfs://192.168.0.1/nfs/sles11sp1/dvd1` On Mon, May 10, 2010 at 8:49 AM, Michael MacIsaac mike...@us.ibm.comwrote: Hi

Automatic scanning for LVM volume groups upon setting a disk online under SLES 11.

2010-04-05 Thread Christian Paro
I've noticed that, when a disk (or set of disks) containing the physical extents underlying an LVM volume group is set online with `chccwdev -e` under SLES 11, that volume group is also automatically activated - setting the open count for those disks to 2 and preventing such operations as a

Re: SLES11 one disk is not online at boot, mount fails (of course)

2010-03-29 Thread Christian Paro
I believe that for SLES 11 zipl.conf is no longer used to determine which dasd to online at boot. Instead, however, you can run `dasd_configure 0.0.0210 1` before you run mkinitrd and zipl, and the specified disk should be set online and come back online on subsequent boots. On Mon, Mar 29, 2010

Re: Fixed: SLES11 one disk is not online at boot, mount fails (of course)

2010-03-29 Thread Christian Paro
: Linux on 390 Port [linux-...@vm.marist.edu] On Behalf Of Christian Paro [christian.p...@gmail.com] Sent: Monday, March 29, 2010 15:29 To: LINUX-390@VM.MARIST.EDU Subject: Re: SLES11 one disk is not online at boot, mount fails (of course) I believe that for SLES 11 zipl.conf is no longer used

Re: Writing DASD label without destroying the content

2010-03-25 Thread Christian Paro
You can use fdasd (in interactive mode) to change just the label. It's command v, which will prompt you for a new label. You can then write the partition table (including the new label/volser) without changing the actual partitioning or erasing the data on the disk. On Thu, Mar 25, 2010 at 12:35

Re: Move root from LVM to Non-LVM File System

2010-03-18 Thread Christian Paro
It's not the simplest procedure ever, and I don't know of a tutorial the directly addresses what you're trying to do, but essentially you need to: - Shut down and log off of the Linux whose root filesystem you wish to transfer. - Bring up the volume group containing that root filesystem on

Re: Move root from LVM to Non-LVM File System

2010-03-18 Thread Christian Paro
If you're going the chroot route, you'll want to bind-mount /dev /proc and /sys into the directory that you'll chroot into. This will make these in-memory-only filesystems accessible within your chrooted environment. See here: http://fermilinux.fnal.gov/documentation/tips/mount-bind-chroot On

Re: Move root from LVM to Non-LVM File System

2010-03-18 Thread Christian Paro
I should add that you do the bind mount *before* you chroot. And that the same directories should be excluded from what you try to copy across file systems. On Thu, Mar 18, 2010 at 6:45 PM, Christian Paro christian.p...@gmail.comwrote: If you're going the chroot route, you'll want to bind-mount

Re: problem deinstalling an rpm

2010-03-09 Thread Christian Paro
Did you try the -q and -e without the .s390x.rpm? Those commands aren't meant to work with the RPM's file name. Just its logical name (or fully-qualified name with version number, for cases where multiple versions can coexist). On Tue, Mar 9, 2010 at 3:47 PM, CHAPLIN, JAMES (CTR)

Re: Run a script at boot time

2010-02-22 Thread Christian Paro
Create an init script based on (or which calls) the script you've been using, and use `chkconfig` to enable it for the appropriate runlevel (which depends on what services you expect to already be up at the time your script is to be run). Having it on for the runlevel you normally boot into

Re: Linux file system cache

2010-02-11 Thread Christian Paro
Your answer might lie with */proc/sys/vm/pagecache:* * * *http://kbase.redhat.com/faq/docs/DOC-7055* http://www.ibm.com/developerworks/linux/library/l-adfly.html On Thu, Feb 11, 2010 at 9:19 AM, Martin, Terry R. (CMS/CTR) (CTR) terry.mar...@cms.hhs.gov wrote: HI Offer, Unfortunately this is

Re: Linux file system cache

2010-02-11 Thread Christian Paro
, Christian Paro christian.p...@gmail.comwrote: Your answer might lie with */proc/sys/vm/pagecache:* * * *http://kbase.redhat.com/faq/docs/DOC-7055* http://www.ibm.com/developerworks/linux/library/l-adfly.html On Thu, Feb 11, 2010 at 9:19 AM, Martin, Terry R. (CMS/CTR) (CTR) terry.mar

Re: SLES11 and sshfs

2010-02-03 Thread Christian Paro
This might help: The following explains how to mount a remote filesystem through ssh using sshfs. By default openSUSE products included sshfs, however sles/sled products do not. Instructions for installing sshfs are included for SLES/SLED below. SLED/SLES products: 1. Download the

Re: SLES11 and sshfs

2010-02-03 Thread Christian Paro
Yes, but sshfs does run under fuse, so I'm guessing you'll need to also install fuse in order to get sshfs working. On Wed, Feb 3, 2010 at 11:33 AM, Bernie Wu bernard...@ncci.com wrote: Thanks David, Sounds like a FUSE module. Looked in all the FUSE packages but did not find sshfs. The

Re: SLES11 and sshfs

2010-02-03 Thread Christian Paro
The sshfs package itself. You may need to get a source package from the sshfs project page on Sourceforge, since it's not likely that you'll find a third-party s390x package for SLES11 where it's not provided with the official distribution. On Wed, Feb 3, 2010 at 11:56 AM, Bernie Wu

Re: Waiting for device

2010-01-15 Thread Christian Paro
This will get you a mapping from the by-id to the by-path device names: for file in /dev/disk/by-id/*; do echo ${file/*\/} \ $(ls -l /dev/disk/by-path | grep $(ls -l $file | awk '{print $11}') | awk '{print $9}') done ...which should give you a start on

Re: Linux software development question

2009-12-02 Thread Christian Paro
If this is an application you wrote, why not just have it write to stdout and then redirect its output at the shell to wherever you want to put it. In other words, instead of: `app in1 in2 in3 output.file` you'd have `app in1 in2 in3 output.file` (to output to a file named output.file) or

Re: Renaming a volume

2009-09-25 Thread Christian Paro
So it's not letting you use the -k (--keep_volser) option unless you also specify -a? Because, at least looking at the man page, -k should work as long as you're in non-interactive mode and -c puts you in non-interactive mode. As in: `fdasd -k -c /fdasdb.conf /dev/dasdb` Also, you might also

An informal survey.

2009-08-14 Thread Christian Paro
- What applications / types of applications (databases, web servers, etc...) are you running? - Do you typically have specialized guests running one primary application each, or sets/stacks of applications running on the same guest? - Do the majority of your Linux guests house long-term

Re: chccwdev never returning on SLES 11

2009-07-28 Thread Christian Paro
Relevant-looking post from a Debian forum: http://www.mail-archive.com/debian-s...@lists.debian.org/msg02156.html ...apparently there's a bug with DASD devices being varied back on after they're varied off when they're listed in the dasd option for the dasd_mod kernel module. On Tue, Jul 28,