* [linux-lvm] Change in startup script
@ 2000-11-25 17:01 Patrick Boutilier
2000-11-27 3:42 ` Andreas Dilger
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Boutilier @ 2000-11-25 17:01 UTC (permalink / raw)
To: LVM Mailing List; +Cc: James MacLean
Hi,
If anybody is upgrading from LVM 0.8i (and probably other 0.8 versions)
to 0.9 you will need to modifying the following startup script which I
got from somebody on this list. The -f needs to be changed to -d to
reflect the new /proc/lvm which is now a directory instead of a file.
Old script:
## LVM
#scan for VGs and create /dev entries.
if [ -x /sbin/vgscan -a -f /proc/lvm ]; then
action "LVM: Scanning for Volume Groups" /sbin/vgscan
fi
#activate all VGs
if [ -x /sbin/vgchange -a -f /proc/lvm ]; then
action "LVM: Activating Volume Groups" /sbin/vgchange -ay
fi
## End LVM
________________________________
New script:
## LVM
#scan for VGs and create /dev entries.
if [ -x /sbin/vgscan -a -d /proc/lvm ]; then
action "LVM: Scanning for Volume Groups" /sbin/vgscan
fi
#activate all VGs
if [ -x /sbin/vgchange -a -d /proc/lvm ]; then
action "LVM: Activating Volume Groups" /sbin/vgchange -ay
fi
## End LVM
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [linux-lvm] Change in startup script
2000-11-25 17:01 [linux-lvm] Change in startup script Patrick Boutilier
@ 2000-11-27 3:42 ` Andreas Dilger
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Dilger @ 2000-11-27 3:42 UTC (permalink / raw)
To: linux-lvm; +Cc: LVM Mailing List, James MacLean
You write:
> If anybody is upgrading from LVM 0.8i (and probably other 0.8 versions)
> to 0.9 you will need to modifying the following startup script which I
> got from somebody on this list. The -f needs to be changed to -d to
> reflect the new /proc/lvm which is now a directory instead of a file.
Even better would be something like "-r" (for readable) or "-e" (for
exists), so that you can boot back and forth between the kernels.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-27 3:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-25 17:01 [linux-lvm] Change in startup script Patrick Boutilier
2000-11-27 3:42 ` Andreas Dilger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.