linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* Re: [linux-lvm] vgscan & vgchange -a y location in startup scripts
       [not found] <37234DCA.C4B73BC7@geotec.net>
@ 1999-04-25 19:02 ` Heinz Mauelshagen
  0 siblings, 0 replies; 3+ messages in thread
From: Heinz Mauelshagen @ 1999-04-25 19:02 UTC (permalink / raw)
  To: Eric Smith; +Cc: mge, linux-lvm


<SNIP>

> 
> Thank you SO much.  I appreciate your prompt reply AND your hard work on this
> product!

Thank you!

> One more question:
> 
> To use lvreduce do I still need that Partition Magic file?  I don't believe that
> is going to work
> for me on the Alpha...

No, im' afraid you're right:
it doesn't work on the Alpha because there only is an Intel binary available.

But you don't need it, if you don't run the e2fsadm LVM command.

lvreduce and lvextend work without an installed resize2fs but they _don't_
extend or reduce a contained ext2 fs 8*(

Regards,
Heinz

--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement C/S                             Deutsche Telekom AG
                                                 Entwicklungszentrum Darmstadt
Heinz Mauelshagen                                Otto-Roehm-Strasse 71c
Senior Systems Engineer                          Postfach 10 05 41
                                                 64205 Darmstadt
mge@ez-darmstadt.telekom.de                      Germany
                                                 +49 6151 886-425
                                                          FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] vgscan & vgchange -a y location in startup scripts
  1999-04-25 15:51 Eric Smith
@ 1999-04-25 17:53 ` Heinz Mauelshagen
  0 siblings, 0 replies; 3+ messages in thread
From: Heinz Mauelshagen @ 1999-04-25 17:53 UTC (permalink / raw)
  To: seric; +Cc: linux-lvm, mge

> 
> On my Alpha, with RedHat 5.2 (SysV style init), where exactly should I
> put the vgscan and vgchange -a y?
> 
> ** Should I put it in /etc/init.d/rc.sysinit?  And if so, should it be
> AFTER mounting / and /proc (but before, of course, mounting anything
> else)?

Yes, put it there.
/ has to mounted (see assumption below), /proc doesn't before running vgscan.

> 
> ** Should it be after fsck runs?
> 
> I have the kernel patched and lvm installed (with patch) and I'm ready
> to try it out.  But I need to know just where to put vgscan and vgchange
> -a y!
> 

vgscan accesses /etc/lvmtab.d read/write.
If you want to stay with this directory and its contents in your root
filesystem, do a fsck root and a vgscan afterwards followed by
the "vgchange -ay".

A script fragment follows from my /sbin/init.d/boot on SuSE.
There's a redundand ro mount in it, because SuSEs boot script
remounts / rw afterwards again :)

#############################################################################
#
# Find and activate volume groups (HM 1/1/1999)
#
if [ -x /sbin/vgscan -a -x /sbin/vgchange ]; then
   while read line; do
      set -- $line
      if [ "$2" = "/" ]; then
         root=$1
         type=$3
         break
      fi
   done < /etc/fstab

   fsck -y -t $type $root; ret=$?

   if [ $ret -eq 0 ]; then
      echo "Remounting / read/write for vgscan..."
      mount -n -o remount,rw /
      echo "Scanning for LVM volume groups..."
      /sbin/vgscan
      mount -n -o remount,ro /
      echo "Activating LVM volume groups..."
      /sbin/vgchange -ay
   else
      echo "Error checking / for vgscan..." >&2
   fi
else
   echo "Skipping LVM activation..."
fi
#
# End find and activate volume groups (HM)
#
#############################################################################


Regards,
Heinz

--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement C/S                             Deutsche Telekom AG
                                                 Entwicklungszentrum Darmstadt
Heinz Mauelshagen                                Otto-Roehm-Strasse 71c
Senior Systems Engineer                          Postfach 10 05 41
                                                 64205 Darmstadt
mge@ez-darmstadt.telekom.de                      Germany
                                                 +49 6151 886-425
                                                          FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [linux-lvm] vgscan & vgchange -a y location in startup scripts
@ 1999-04-25 15:51 Eric Smith
  1999-04-25 17:53 ` Heinz Mauelshagen
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Smith @ 1999-04-25 15:51 UTC (permalink / raw)
  To: linux-lvm

On my Alpha, with RedHat 5.2 (SysV style init), where exactly should I
put the vgscan and vgchange -a y?

** Should I put it in /etc/init.d/rc.sysinit?  And if so, should it be
AFTER mounting / and /proc (but before, of course, mounting anything
else)?

** Should it be after fsck runs?

I have the kernel patched and lvm installed (with patch) and I'm ready
to try it out.  But I need to know just where to put vgscan and vgchange
-a y!


THANKS!

Regards,

--Eric Smith

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-04-25 19:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <37234DCA.C4B73BC7@geotec.net>
1999-04-25 19:02 ` [linux-lvm] vgscan & vgchange -a y location in startup scripts Heinz Mauelshagen
1999-04-25 15:51 Eric Smith
1999-04-25 17:53 ` Heinz Mauelshagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).