Re: YaST Online Update Patch Descriptions - how to capture for change record

2010-09-14 Thread Mark Post
>>> On 9/14/2010 at 01:56 PM, Lionel Dyck  wrote: 
> Can anyone provide a suggestion for capturing details of the patches that
> were just installed to a file for inclusion in a change record?

If you would rather do it ahead of time, and not after the fact, then for 
SLES10:
rug list-updates -t patch | sed -e 1,4d | while read channel pipe1 patch reset
   do echo $patch
 rug patch-info $patch
   done

The output could be further processed to get rid of lines you don't want.  For 
SLES11, you would use zypper instead of rug, but the parameters would be the 
same.


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/


YaST Online Update Patch Descriptions - how to capture for change record

2010-09-14 Thread Lionel Dyck
I have a quandary that I need help with.  When creating change records for
updates I can easily provide a list of the newly installed patches via a
rpm query:

rpm -qa --last | grep "16 Aug" > /tmp/patches

However that does not provide the details of what that patch does

I can find the patch files via a find query:

find /var/lib -name patch*

But there is no way to correlate the patch file to the installed rpm
updates as the patch files appear to all have the current date.

Can anyone provide a suggestion for capturing details of the patches that
were just installed to a file for inclusion in a change record?

Thanks


Lionel B. Dyck <><
z/Linux Specialist
IBM Corporation
Global Technology Services - Kaiser Account
Work: 925-926-5332
E-Mail: ld...@us.ibm.com
AIM: lbdyck | Yahoo IM: lbdyck | GTalk: lbdyck


--
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: vmpoff and vmhalt

2010-09-14 Thread Mark Post
>>> On 9/14/2010 at 07:54 AM, Offer Baruch  wrote: 
> Hi,
> 
> I am currently using vmpoff and vmhalt at my zipl.conf to issue LOGOFF at
> shutdown.
> 
> I would like to issue more than one command on shutdown. something like
> vmpoff="CP SMSG MAINT I AM DOWN#CP LOGOFF"
> 
> The result is an smsg message send to maint looking like this  "I AM DOWN#CP
> LOGOFF". Obviously the second command is not issued because it is considered
> part of the message.
> 
> Any idea on how to do this right?

I would take a look at the Shutdown actions chapter in the "Device Drivers, 
Features, and Commands" manual.  It provides the ability to specify multiple CP 
commands to be executed on halt, kernel panic, power off, and 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: vmpoff and vmhalt

2010-09-14 Thread Berry van Sleeuwen
How about an alert from OPERATOR to MAINT to tell (or warn) MAINT that a
linuxguest has logged off? You can trap the LOGOFF in PROP and write an
action routine to issue the MSG to MAINT whenever this event happens.
This will even alert MAINT when the linux guest logs off even when a
shutdown has not been performed.

Regards, Berry.

Op 14-09-10 15:46, Offer Baruch schreef:
> I am not tring to alert the operator. I am trying to alert a rexx. I want to
> wake up when the message arrives. SMSG looks like an easy way to do that.
>
> -Original Message-
> From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of Rich
> Smrcina
> Sent: Tuesday, September 14, 2010 2:06 PM
> To: LINUX-390@VM.MARIST.EDU
> Subject: Re: vmpoff and vmhalt
>
>   If you use the signal support, the virtual machine will log off
> automatically when it is told to shut down.  The operator will then get the
> standard CP message that the machine is logged off.
>
> On 09/14/2010 06:54 AM, Offer Baruch wrote:
>
>> Hi,
>>
>>
>>
>> I am currently using vmpoff and vmhalt at my zipl.conf to issue LOGOFF
>> at shutdown.
>>
>> I would like to issue more than one command on shutdown. something
>> like vmpoff="CP SMSG MAINT I AM DOWN#CP LOGOFF"
>>
>> The result is an smsg message send to maint looking like this  "I AM
>> DOWN#CP LOGOFF". Obviously the second command is not issued because it
>> is considered part of the message.
>>
>> Any idea on how to do this right?
>>
>>
>>
>> Thanks!
>>
>> Offer Baruch
>>
>
> --
> Rich Smrcina
> Velocity Software, Inc.
> Mobile: 414-491-6001
> Office: 262-392-3717
> http://www.velocitysoftware.com
>
> Catch the WAVV! http://www.wavv.org
> WAVV 2011 - April 15-19, 2011 Colorado Springs, CO
>
> --
> 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/
>
>

--
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: vmpoff and vmhalt

2010-09-14 Thread Mark Wheeler
At a technical level, in order to string the SMSG and LOGOFF commands together, 
they need to be separated by '15'x instead of the pound sign (#).

Mark Wheeler
UnitedHealth Group

--
 
"Excellence. Always. If Not Excellence, What? If Not Excellence Now, When?" 
Tom Peters, author of "The Little BIG Things"




 
> Date: Tue, 14 Sep 2010 13:54:12 +0200
> From: offerbar...@gmail.com
> Subject: vmpoff and vmhalt
> To: LINUX-390@VM.MARIST.EDU
> 
> Hi,
> 
> 
> 
> I am currently using vmpoff and vmhalt at my zipl.conf to issue LOGOFF at
> shutdown.
> 
> I would like to issue more than one command on shutdown. something like
> vmpoff="CP SMSG MAINT I AM DOWN#CP LOGOFF"
> 
> The result is an smsg message send to maint looking like this "I AM DOWN#CP
> LOGOFF". Obviously the second command is not issued because it is considered
> part of the message.
> 
> Any idea on how to do this right?
> 
> 
> 
> Thanks!
> 
> Offer Baruch
> 
> 
> --
> 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: vmpoff and vmhalt

2010-09-14 Thread Scott Rohling
Have some ideas that might be an alternative - but it depends on what your
REXX script will do when it knows a server is logged off.. what's the real
end objective?

Scott Rohling

On Tue, Sep 14, 2010 at 7:46 AM, Offer Baruch  wrote:

> I am not tring to alert the operator. I am trying to alert a rexx. I want
> to
> wake up when the message arrives. SMSG looks like an easy way to do that.
>
> -Original Message-
> From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of Rich
> Smrcina
> Sent: Tuesday, September 14, 2010 2:06 PM
> To: LINUX-390@VM.MARIST.EDU
> Subject: Re: vmpoff and vmhalt
>
>   If you use the signal support, the virtual machine will log off
> automatically when it is told to shut down.  The operator will then get the
> standard CP message that the machine is logged off.
>
> On 09/14/2010 06:54 AM, Offer Baruch wrote:
> > Hi,
> >
> >
> >
> > I am currently using vmpoff and vmhalt at my zipl.conf to issue LOGOFF
> > at shutdown.
> >
> > I would like to issue more than one command on shutdown. something
> > like vmpoff="CP SMSG MAINT I AM DOWN#CP LOGOFF"
> >
> > The result is an smsg message send to maint looking like this  "I AM
> > DOWN#CP LOGOFF". Obviously the second command is not issued because it
> > is considered part of the message.
> >
> > Any idea on how to do this right?
> >
> >
> >
> > Thanks!
> >
> > Offer Baruch
>
>
> --
> Rich Smrcina
> Velocity Software, Inc.
> Mobile: 414-491-6001
> Office: 262-392-3717
> http://www.velocitysoftware.com
>
> Catch the WAVV! http://www.wavv.org
> WAVV 2011 - April 15-19, 2011 Colorado Springs, CO
>
> --
> 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/
>

--
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: vmpoff and vmhalt

2010-09-14 Thread Offer Baruch
I am not tring to alert the operator. I am trying to alert a rexx. I want to
wake up when the message arrives. SMSG looks like an easy way to do that.

-Original Message-
From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of Rich
Smrcina
Sent: Tuesday, September 14, 2010 2:06 PM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: vmpoff and vmhalt

  If you use the signal support, the virtual machine will log off
automatically when it is told to shut down.  The operator will then get the
standard CP message that the machine is logged off.

On 09/14/2010 06:54 AM, Offer Baruch wrote:
> Hi,
>
>
>
> I am currently using vmpoff and vmhalt at my zipl.conf to issue LOGOFF
> at shutdown.
>
> I would like to issue more than one command on shutdown. something
> like vmpoff="CP SMSG MAINT I AM DOWN#CP LOGOFF"
>
> The result is an smsg message send to maint looking like this  "I AM
> DOWN#CP LOGOFF". Obviously the second command is not issued because it
> is considered part of the message.
>
> Any idea on how to do this right?
>
>
>
> Thanks!
>
> Offer Baruch


--
Rich Smrcina
Velocity Software, Inc.
Mobile: 414-491-6001
Office: 262-392-3717
http://www.velocitysoftware.com

Catch the WAVV! http://www.wavv.org
WAVV 2011 - April 15-19, 2011 Colorado Springs, CO

--
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: Tapes 34xx detection

2010-09-14 Thread Neale Ferguson
You can't say the Boeblingen folks aren't responsive. This is from the s390 
features git commit list:

commit a1b601ff82657bb7a3546efb04aae38cda2de597
Author: Martin Schwidefsky 
Date:   Tue Sep 14 13:40:54 2010 +0200

[S390] tape: add medium state notifications

Add uevent notifications for tape cartridge load and tape
cartridge unload events.

Signed-off-by: Martin Schwidefsky 


On 9/6/10 7:52 AM, "Vlacil, Radek"  wrote:

Hi,

Well this is not a great news, but thanks anyway.

Wouldn't it be possible to implement an enhancement that would generate
an uevent with ACTION="change" for this "tape loaded" kind of events? If
there is a massage for that generated in the system log, it shouldn't be
that hard :-).

Radek Vlacil

--
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: vmpoff and vmhalt

2010-09-14 Thread Offer Baruch
The escape char is #

-Original Message-
From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of David 
Kreuter
Sent: Tuesday, September 14, 2010 2:35 PM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: vmpoff and vmhalt

Hi Offer - check your CP TERMinal setting with QUERY TERMINAL to see how linend 
 and escape  are set.  Try using the escape character before the linend.
David


 Original Message 
Subject: vmpoff and vmhalt
From: Offer Baruch 
Date: Tue, September 14, 2010 7:54 am
To: LINUX-390@VM.MARIST.EDU

Hi,



I am currently using vmpoff and vmhalt at my zipl.conf to issue LOGOFF at 
shutdown.

I would like to issue more than one command on shutdown. something like 
vmpoff="CP SMSG MAINT I AM DOWN#CP LOGOFF"

The result is an smsg message send to maint looking like this "I AM DOWN#CP 
LOGOFF". Obviously the second command is not issued because it is considered 
part of the message.

Any idea on how to do this right?



Thanks!

Offer Baruch


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

--
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: Debian install...

2010-09-14 Thread Nicholas P Sardino
Hey Robert,

Although I don't have a solution to your specific problem, I do have a
Debian 5.0.5 guest running on our machine in the Briefing Center.  It's
installed on a single full pack minidisk and I didn't have to do anything
special to get it installed.  If you need me to share any configuration
details or settings of my install, let me know.

/Nick Sardino
IBM Poughkeepsie Executive Briefing Center
sard...@us.ibm.com



From:   RPN01 
To: LINUX-390@vm.marist.edu
Date:   09/13/2010 12:29 PM
Subject:Debian install...
Sent by:Linux on 390 Port 



Anyone done a Debian install on z/VM?

I’m attempting to install Lenny, and I get to the DASD partitioning. I
set
up my disks the way I want them, tell it to begin writing, and get the
following:

┌──┤ [!!] Partition disks ├──
 │  ERROR!!!  │
 │ VTOC: seeking on device failed -- vtoc_write_label │
 │ Could not write VTOC labels.   │
 ││
 │ │
 ││
 └─

The install won’t go any further from there.

I know the disks are writable within the virtual machine; I was able to
use
cpfmtxa on them, and Debian was able to format them. I’ve tried just
about
every combination of formatting and not formatting, partitioning and not
partitioning that I can think of. We have 50 RedHat and SuSE images
running,
so it’s not that we don’t know what we’re doing in general. There must
be a
way to make this work, or they wouldn’t have released it. Does anyone
have a
clue as to how to do it correctly?


--
Robert P. Nix  Mayo Foundation.~.
RO-OC-1-18 200 First Street SW/V\
507-284-0844   Rochester, MN 55905   /( )\
-^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."


--
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: vmpoff and vmhalt

2010-09-14 Thread David Kreuter
Hi Offer - check your CP TERMinal setting with QUERY TERMINAL to see how
linend  and escape  are set.  Try using the escape character before the
linend.
David


 Original Message 
Subject: vmpoff and vmhalt
From: Offer Baruch 
Date: Tue, September 14, 2010 7:54 am
To: LINUX-390@VM.MARIST.EDU

Hi,



I am currently using vmpoff and vmhalt at my zipl.conf to issue LOGOFF
at
shutdown.

I would like to issue more than one command on shutdown. something like
vmpoff="CP SMSG MAINT I AM DOWN#CP LOGOFF"

The result is an smsg message send to maint looking like this "I AM
DOWN#CP
LOGOFF". Obviously the second command is not issued because it is
considered
part of the message.

Any idea on how to do this right?



Thanks!

Offer Baruch


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


vmpoff and vmhalt

2010-09-14 Thread Offer Baruch
Hi,



I am currently using vmpoff and vmhalt at my zipl.conf to issue LOGOFF at
shutdown.

I would like to issue more than one command on shutdown. something like
vmpoff="CP SMSG MAINT I AM DOWN#CP LOGOFF"

The result is an smsg message send to maint looking like this  "I AM DOWN#CP
LOGOFF". Obviously the second command is not issued because it is considered
part of the message.

Any idea on how to do this right?



Thanks!

Offer Baruch


--
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: vmpoff and vmhalt

2010-09-14 Thread Rich Smrcina

 If you use the signal support, the virtual machine will log off automatically 
when it
is told to shut down.  The operator will then get the standard CP message that 
the
machine is logged off.

On 09/14/2010 06:54 AM, Offer Baruch wrote:

Hi,



I am currently using vmpoff and vmhalt at my zipl.conf to issue LOGOFF at
shutdown.

I would like to issue more than one command on shutdown. something like
vmpoff="CP SMSG MAINT I AM DOWN#CP LOGOFF"

The result is an smsg message send to maint looking like this  "I AM DOWN#CP
LOGOFF". Obviously the second command is not issued because it is considered
part of the message.

Any idea on how to do this right?



Thanks!

Offer Baruch



--
Rich Smrcina
Velocity Software, Inc.
Mobile: 414-491-6001
Office: 262-392-3717
http://www.velocitysoftware.com

Catch the WAVV! http://www.wavv.org
WAVV 2011 - April 15-19, 2011 Colorado Springs, CO

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


AUTO: Libby Coleman is on Holiday back on 16th September 2010. (returning 16/09/2010)

2010-09-14 Thread Libby Coleman
I am out of the office until 16/09/2010.

If you need Systems Architecture assistance please contact my colleague
Matt Ayres (m_ay...@uk.ibm.com) Tel: 07710 981527  Internal: (37274872)  or
my manager Ian Lyon (ian_l...@uk.ibm.com) Tel: 07967-275335 (Mobex 275335)


Note: This is an automated response to your message  "LINUX-390 Digest - 11
Sep 2010 to 13 Sep 2010 (#2010-224)" sent on 14/9/10 5:03:00.

This is the only notification you will receive while this person is away.

--
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: managing rhel disk space

2010-09-14 Thread Agblad Tore
You can run : lsdasd, that tohether with fstab will be enough info.

Cordialement / Vriendelijke Groeten / Best Regards / Med Vänliga Hälsningar
  Tore Agblad

   Volvo Information Technology
   Infrastructure Mainframe Design & Development
   SE-405 08, Gothenburg  Sweden
   E-mail: tore.agb...@volvo.com

   http://www.volvo.com/volvoit/global/en-gb/

From: Linux on 390 Port [linux-...@vm.marist.edu] On Behalf Of Donald Russell 
[russell@gmail.com]
Sent: Monday, September 13, 2010 21:56
To: LINUX-390@VM.MARIST.EDU
Subject: Re: managing rhel disk space

/var has it's own filesystem using lvm, but now they want another directory
under /var to have it's own as well. The existing /var has enough space for
the new request.

>From what I'm hearing (reading) it seems I'll have to allocate/assign new
minidisks (ECKD) or LUNs (SCSI) and create new filesystems. The only purpose
is to prevent accidental overflow. Each of those file systems will be
logical volums so they can be expanded later by adding more minidisks and
adding the space to the correct logical volume group hmm, I can see this
turning into a nightware of keeping track of what's on what.

i.e. Given a list of file systems (from the df command), how can I determine
which minidisks or LUNs those are actually on. For example, /var is the
mount point for something called /dev/mapper/rootvg-varlv That could be made
up of several minidisks etc...




On Mon, Sep 13, 2010 at 12:23, RPN01  wrote:

> In your case it might require a time machine, but we've used LVM for this
> type of thing. You put the amount of space there you need, rather than way
> over-allocating space. Then in situations like this, you add the needed
> space, and create the mount points they need. Also, down the road, when
> they
> discover that they really should have asked for double that amount, you
> just
> add the space to the volume group, give it to the logical volume, and
> extend
> the filesystem. It really works as advertised.
>
> --
> Robert P. Nix  Mayo Foundation.~.
> RO-OC-1-18 200 First Street SW/V\
> 507-284-0844   Rochester, MN 55905   /( )\
> -^^-^^
> "In theory, theory and practice are the same, but
>  in practice, theory and practice are different."
>
>
>
> On 9/13/10 2:10 PM, "Donald Russell"  wrote:
>
> > I have a RHEL 5.5 system running on zVM 5.4...
> >
> > I've recently received a request to add two more file systems of 1 GB and
> > 2GB and mount them at /var/something-something and
> /opt/something-something
> >
> > There is already enough free space in those directories to accommodate
> their
> > request, so I just created the directories for them.
> >
> > However, they're insisting they be separate file systems so they can't
> > accidentally exceed the expected max usage.
> >
> > So, my question is... do I have to attach new minidisks or LUNs(?) of the
> > appropriate sizes or can quotas set a cap on the amount of space a
> directory
> > can use? I know I can set individual user quotas, but I've a feeling
> there's
> > more than one user of this space.
> >
> > What do other people do in these situations? Adding MDISKs or LUNs sounds
> > extreme to me...
> >
> > I was looking at the mkfs command, but that seems to require
> > unused/allocated part of an existing partition all non-cms disk space
> > that's attached to the VM id is allocated to Linux. Can I reduce the size
> of
> > a logical volume, then create a new filesystem from that freed space?
> >
> > Thanks
> >
> > --
> > 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/
>

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

Re: managing rhel disk space

2010-09-14 Thread Agblad Tore
Funny, that's about exactly the setup we use
root at a single minidisk ext3, /boot at a single minidisk ext2, and LVM for 
the rest, only diff is that we have included /srv in the system_vg :)
and we did put /tmp an a separate minidisk as well.

Just an importtant tip:  When formatting the disks, use: dasdfmt   -d ldl
(and you don't need to fun fdasd after that)
This way you can use DIAG driver for effective I/O requests, and this is what 
you want. 

Cordialement / Vriendelijke Groeten / Best Regards / Med Vänliga Hälsningar
  Tore Agblad

   Volvo Information Technology
   Infrastructure Mainframe Design & Development
   SE-405 08, Gothenburg  Sweden
   E-mail: tore.agb...@volvo.com

   http://www.volvo.com/volvoit/global/en-gb/

From: Linux on 390 Port [linux-...@vm.marist.edu] On Behalf Of Scott Rohling 
[scott.rohl...@gmail.com]
Sent: Monday, September 13, 2010 21:42
To: LINUX-390@VM.MARIST.EDU
Subject: Re: managing rhel disk space

Yep -- your answer is LVM ...  for the Linux OS directories - I typically
recommend:

-  Keep root as a single partition on a minidisk (not LVM) on it's own
filesystem.   /boot should stay in this partition or have one of it's own.
-  Create a 'system' volume group with one or more minidisks (1 to end -
don't mess around with smaller ones unless you're using 3390-27 or bigger)
-  Create logical volumes (I just name them the same as the mount point -
var,tmp,usr, etc)  for each mount point you want separated:  /var, /tmp,
/opt, /usr, /home and give them the space 'required'.   mkfs a file
system on each logical volume and indicate they should be mounted in
/etc/fstab   (e.g./dev/system/usr/usr ext3 defaults  1 1)

When more space is needed - just add another minidisk to the system volume
group - divide up the new space to the logical volumes that need it --
resize the filesystems - done.

For application data, database, etc -- make a different volume group (e.g.
appdata) and 1 or more logical volumes within that --  then you can expand
them the same same way.

Scott Rohling

On Mon, Sep 13, 2010 at 1:23 PM, RPN01  wrote:

> In your case it might require a time machine, but we've used LVM for this
> type of thing. You put the amount of space there you need, rather than way
> over-allocating space. Then in situations like this, you add the needed
> space, and create the mount points they need. Also, down the road, when
> they
> discover that they really should have asked for double that amount, you
> just
> add the space to the volume group, give it to the logical volume, and
> extend
> the filesystem. It really works as advertised.
>
> --
> Robert P. Nix  Mayo Foundation.~.
> RO-OC-1-18 200 First Street SW/V\
> 507-284-0844   Rochester, MN 55905   /( )\
> -^^-^^
> "In theory, theory and practice are the same, but
>  in practice, theory and practice are different."
>
>
>
> On 9/13/10 2:10 PM, "Donald Russell"  wrote:
>
> > I have a RHEL 5.5 system running on zVM 5.4...
> >
> > I've recently received a request to add two more file systems of 1 GB and
> > 2GB and mount them at /var/something-something and
> /opt/something-something
> >
> > There is already enough free space in those directories to accommodate
> their
> > request, so I just created the directories for them.
> >
> > However, they're insisting they be separate file systems so they can't
> > accidentally exceed the expected max usage.
> >
> > So, my question is... do I have to attach new minidisks or LUNs(?) of the
> > appropriate sizes or can quotas set a cap on the amount of space a
> directory
> > can use? I know I can set individual user quotas, but I've a feeling
> there's
> > more than one user of this space.
> >
> > What do other people do in these situations? Adding MDISKs or LUNs sounds
> > extreme to me...
> >
> > I was looking at the mkfs command, but that seems to require
> > unused/allocated part of an existing partition all non-cms disk space
> > that's attached to the VM id is allocated to Linux. Can I reduce the size
> of
> > a logical volume, then create a new filesystem from that freed space?
> >
> > Thanks
> >
> > --
> > 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
> --