source: MondoRescue/branches/2.2.10/mindi/analyze-my-lvm@ 2816

Last change on this file since 2816 was 2816, checked in by Bruno Cornec, 13 years ago

svn merge (in svk) -r 2714:2773 2.2.9 in 2.2.10

r4207@localhost (orig r2716): bruno | 2011-02-03 01:29:51 +0100

  • Increase boot size again to support better fedora 13/14


r4208@localhost (orig r2717): bruno | 2011-02-12 15:43:36 +0100

  • Excluding vmhgfs FS for VMWare guests mounting areas of the host.


r4209@localhost (orig r2718): bruno | 2011-02-18 00:30:35 +0100
-Extend EXTRA-SIZE for Debian 6.0 (at least)


r4210@localhost (orig r2719): bruno | 2011-02-18 00:45:40 +0100

  • Fix #462 (removes temp dir if analyze-my-lvm launched in stand alonae mode)


r4213@localhost (orig r2722): bruno | 2011-02-25 18:44:47 +0100

  • Fixes for RHEL6 support at least around dm extensions, bnx2x and cp210x dependencies


r4214@localhost (orig r2723): bruno | 2011-02-25 19:00:17 +0100

  • Adds a restore quiet option


r4215@localhost (orig r2724): bruno | 2011-02-25 19:43:50 +0100

  • Adds support for dm-log used on RHEL6 as well.


r4216@localhost (orig r2725): bruno | 2011-02-25 21:26:54 +0100

  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3


r4217@localhost (orig r2726): bruno | 2011-02-26 11:38:29 +0100

  • Fix error introduced in previous patch in the if/then/else case without member in the then


r4218@localhost (orig r2727): bruno | 2011-02-26 12:05:33 +0100

  • With mindi-busybox 1.18.3 the syntax of openvt changed. This patch keeps a compatible init script for both previous and current version.


r4219@localhost (orig r2728): bruno | 2011-02-26 15:27:40 +0100

  • Latest lvdisplay print MiB instead of MB. Impact on analyze-my-lvm fixed.


r4220@localhost (orig r2729): bruno | 2011-02-26 16:39:32 +0100

  • Adds feature rpc to mindi-busybox in case of need



r4221@localhost (orig r2730): bruno | 2011-02-26 16:42:43 +0100

  • Adds the rebot command to the list of mandatory ones at restore time


r4222@localhost (orig r2731): bruno | 2011-02-26 17:37:13 +0100

  • Adds functions and /bin/loadkeys (new location) to minimal set of commands to have
  • provides a makemessage option to mindi and this function now works with pbdistrocheck
  • Do not create an error when a phys device has 0 size and is a /dev/dm-* device


r4223@localhost (orig r2732): bruno | 2011-02-26 19:07:43 +0100

  • Syntax fix


r4224@localhost (orig r2733): bruno | 2011-02-26 19:51:16 +0100

  • Fix test on dm which was made in wrong sense
  • Adds a driver to allow raid456 to work


r4225@localhost (orig r2734): bruno | 2011-02-26 20:55:00 +0100

  • Fix 2 redirections issues


r4317@localhost (orig r2737): bruno | 2011-03-13 13:12:57 +0100

  • Add support for libahci driver, mandatory for debian 6.


r4318@localhost (orig r2738): bruno | 2011-03-13 14:46:37 +0100

  • Update from Lester Wade (lester.wade_at_hp.com) incorporating latest ML feedbacks


r4319@localhost (orig r2739): bruno | 2011-03-13 17:49:15 +0100

  • Updated Lab for TES 2011


r4323@localhost (orig r2743): bruno | 2011-03-20 01:37:40 +0100

  • Fix a seg fault bug when using the GUI in case exclude_paths was NULL (mc_at_carreira.com.pt)


r4324@localhost (orig r2744): bruno | 2011-03-20 19:38:14 +0100

  • Adds Arch Linux Keyboard support (mc_at_carreira.com.pt)


r4325@localhost (orig r2745): bruno | 2011-03-20 19:48:01 +0100

  • Avoids coredump again when exclude_path is NULL with mr_make_devlist_from_pathlist (feedback from mc_at_carreira.com.pt)


r4326@localhost (orig r2746): bruno | 2011-03-20 19:39:47 +0100

  • Remove blkid from busybox to solve #435


r4327@localhost (orig r2747): bruno | 2011-03-20 19:43:22 +0100

  • Adds reboot to fix #435


r4328@localhost (orig r2748): bruno | 2011-03-22 00:58:07 +0100

  • Fix Arch Linux kbd printed in log file now instead of screen.


r4329@localhost (orig r2749): bruno | 2011-03-22 00:59:58 +0100

  • Again increase size for boot env to support better fedora 14 and other latest distros


r4356@localhost (orig r2750): bruno | 2011-03-25 19:30:01 +0100

  • Improve Arch Linux support for mindi tools (mc_at_carreira.com.pt)


r4357@localhost (orig r2751): bruno | 2011-03-25 19:48:33 +0100

  • Accept to work with either wodim or cdreord and genisoimage or mkisofs


r4358@localhost (orig r2752): bruno | 2011-03-25 20:20:49 +0100

  • Documents option -v of mondoarchive


r4359@localhost (orig r2753): bruno | 2011-03-29 01:34:30 +0200

  • Use modprobe instead of insmod to load loop, cd, ... modules (in order to force them at rstore time). Also drop very old aes support for mdk 9.2


r4360@localhost (orig r2754): bruno | 2011-03-29 01:38:49 +0200

  • Arch Linux support for boot message of mindi (mc_at_carreira.com.pt) using /etc/arch-release and pacman.log


r4383@localhost (orig r2755): bruno | 2011-04-07 09:49:38 +0200

  • Adds a UdevadmTrigger function at restore time to deal with the various syntax formats changes ddepending on version (mc_at_carreira.com.pt)


r4384@localhost (orig r2756): bruno | 2011-04-07 10:05:24 +0200

  • Increase again sizes for Debian 6 support (victor.gattegno_at_hp.com)


r4385@localhost (orig r2757): bruno | 2011-04-07 10:13:00 +0200
Conform to the report of size really !


r4386@localhost (orig r2758): bruno | 2011-04-07 11:31:12 +0200

  • Improved message for Arch Linux for rebuilding the initrd (mc_at_carreira.com.pt)


r4390@localhost (orig r2759): bruno | 2011-04-12 01:15:00 +0200

  • Typo in Web site


r4392@localhost (orig r2761): bruno | 2011-04-14 00:23:38 +0200

  • Adds download references for latest versions.


r4394@localhost (orig r2763): bruno | 2011-04-16 00:35:08 +0200

  • Adds support for MT back mandatory for OBDR.


r4395@localhost (orig r2764): bruno | 2011-04-20 12:18:46 +0200
Function resize_drive_proportionately_to_suit_new_drives

  • Integrate some mr_asprintf
  • Use systematically long long data types in all computation to match the struct mountlist_reference size member and have correct precision
  • Apply JB general_at_itpsg.com patch to make the partition resizing work properly according to the drive size (keeping all calculation in KB and converting only for display)


r4396@localhost (orig r2765): bruno | 2011-04-21 11:20:58 +0200

  • Remove very old code creating confusing symlinks pico to nano in init (patch from MC). Fix #477


r4397@localhost (orig r2766): bruno | 2011-04-21 11:57:44 +0200

  • text's are properly centered in open_and_list_dir (Patch from Chucky). Fix #404.


r4398@localhost (orig r2767): bruno | 2011-04-21 12:49:40 +0200

  • Attempt to fix #432 with a better message at a start.


r4399@localhost (orig r2768): bruno | 2011-04-21 13:00:37 +0200

Log content of mondo-restore.cfg


r4400@localhost (orig r2769): bruno | 2011-04-21 13:48:52 +0200

  • Introduce a new bkpinfo member (subdir) to support storing the subdir under which ISO images are stored on an external HDD. Should fix mostly #433.


r4401@localhost (orig r2770): bruno | 2011-04-21 14:14:52 +0200

  • Fix compilation issues due to level of visibility of functions


r4402@localhost (orig r2771): bruno | 2011-04-22 01:49:03 +0200

  • Adds GUI support for compresion type. Fix half of #468.


r4403@localhost (orig r2772): bruno | 2011-04-22 02:00:07 +0200

  • Adds support of ext attr through the GUI. Fix second part of #468


r4404@localhost (orig r2773): bruno | 2011-04-22 02:22:24 +0200

  • Propose more variables in the mindi.conf example
  • More explicit messages when size unsufficient in mindi for kernel + initrd as per #471
  • Better loging of labeling in mondo when in nuke mode


  • Property svn:keywords set to Id
File size: 11.1 KB
Line 
1#!/bin/bash
2#
3# $Id: analyze-my-lvm 2816 2011-04-29 13:42:55Z bruno $
4#
5
6Die() {
7 echo "$1" >> /dev/stderr
8 exit -1
9}
10
11
12
13GetValueFromField() {
14 local res
15 sed s/' '/~/ "$1" | tr -s ' ' ' ' | sed s/'~ '/'~'/ | grep -i "$2~" | cut -d'~' -f2,3,4,5 | tr '~' ' ' | gawk '{ if ($2=="MB") {printf "%dm",$1;} else if ($2=="MiB") {printf "%dm",$1;} else if ($2=="KB") {printf "%dk",$1;} else if ($2=="KiB") {printf "%dk",$1;} else if ($2=="GB") {printf "%fg",$1;} else if ($2=="GiB") {printf "%fg",$1;} else if ($2=="TB") {printf "%dt",$1;} else if ($2=="TiB") {printf "%dt",$1;} else {print $0;};}'
16}
17
18
19GetLastBit() {
20 local i res
21 i=20
22 res=""
23 while [ ! "$res" ] ; do
24 i=$(($i-1))
25 res=`echo "$1" | cut -d'/' -f$i`
26 done
27 echo "$res"
28}
29
30
31ProcessLogicalVolume() {
32 local LV_full_string fname logical_volume volume_group device
33 LV_full_string=$1
34 if [ ! -e "$1" ]; then
35 echo "WARNING - cannot find LV file $1" | tee -a /dev/stderr
36 return
37 fi
38 volume_group=`echo "$LV_full_string" | cut -d'/' -f3`
39 logical_volume=`echo "$LV_full_string" | cut -d'/' -f4`
40 if [ $lvmversion = 2 ]; then
41 device=$LV_full_string
42 params=`GenerateLvcreateParameters $device`
43 else
44 fname=/proc/lvm/VGs/$volume_group/LVs/$logical_volume
45 if [ ! -e "$fname" ] ; then
46 echo "WARNING - cannot find $volume_group's $logical_volume LV file" | tee -a /dev/stderr
47 return
48 else
49 device=`GetValueFromField $fname "name:"`
50 params=`GenerateLvcreateParameters $device`
51 fi
52 fi
53
54 # Exclude LVs member of that env var
55 if [ "$MINDI_EXCLUDE_DEVS" ] ; then
56 list_of_devices="`mindi --readalllink $LV_full_string`"
57 l=""
58 for d in $list_of_devices; do
59 l="$l `GiveMapperOfdm $d`"
60 done
61 list_of_devices="`echo $l | sort -u`"
62 for ed in $MINDI_EXCLUDE_DEVS ; do
63 if [ "`echo " $list_of_devices" | grep " $ed"`" != "" ]; then
64 echo "Not including device $LV_full_string as it was excluded"
65 return
66 fi
67 done
68 fi
69 # Do not process LV whose VG are excluded
70 if [ -f $MINDI_TMP/excludedvgs ]; then
71 if [ "`grep -x $volume_group $MINDI_TMP/excludedvgs`" != "" ]; then
72 echo "Not including LV $logical_volume as VG $volume_group was excluded"
73 return
74 fi
75 fi
76
77 echo "# $LVMCMD lvcreate$params -n $logical_volume $volume_group"
78}
79
80
81GenerateLvcreateParameters() {
82 local device stripes stripesize device fname allocation output readahead
83 fname=$MINDI_TMP/PLF.$$.txt
84 device=$1
85 output=""
86 $LVMCMD lvdisplay $device > $fname
87 stripes=`GetValueFromField $fname "Stripes"`
88 stripesize=`GetValueFromField $fname "Stripe size (MByte)"`m
89 [ "$stripesize" = "m" ] && stripesize=`GetValueFromField $fname "Stripe size (KByte)"`k
90 [ "$stripesize" = "k" ] && stripesize=""
91 allocation=`GetValueFromField $fname "LV Size"`
92 [ ! "`echo "$allocation" | grep "[k,m,g]"`" ] && allocation="$allocation"m
93 if echo "$allocation" | grep -E '^.*g$' > /dev/null 2> /dev/null ; then
94 val=`echo "$allocation" | sed s/g//`
95 allocation=`echo "$val" | awk '{c=$1; printf "%d", c*1024;}'`m
96 fi
97 readahead=`GetValueFromField $fname "Read ahead sectors"`
98 rm -f $fname
99 [ "$stripes" ] && output="$output -i $stripes"
100 [ "$stripesize" ] && output="$output -I $stripesize"
101 [ "$allocation" ] && output="$output -L $allocation"
102 [ "$readahead" ] && output="$output -r $readahead"
103 echo "$output"
104}
105
106
107
108GenerateVgcreateParameters() {
109 local current_VG device fname incoming VG_info_file max_logical_volumes max_physical_volumes physical_extent_size output blanklines
110 current_VG=$1
111 VG_info_file=$MINDI_TMP/$$.vg-info.txt
112 # We use cat here as a way to avoid SElinux to prevent us from writing in $VG_info_file
113 $LVMCMD vgdisplay $current_VG | cat > $VG_info_file
114 max_logical_volumes=`GetValueFromField "$VG_info_file" "MAX LV"`
115 [ $max_logical_volumes -ge 256 ] && max_logical_volumes=255
116 max_physical_volumes=`GetValueFromField "$VG_info_file" "MAX PV"`
117 [ $max_physical_volumes -ge 256 ] && max_physical_volumes=255
118 physical_extent_size=`GetValueFromField "$VG_info_file" "PE Size"`
119 output=""
120 [ "$max_logical_volumes" ] && output="$output -l $max_logical_volumes"
121 [ "$max_physical_volumes" ] && output="$output -p $max_physical_volumes"
122 [ "$physical_extent_size" ] && output="$output -s $physical_extent_size"
123 echo "$output"
124 rm -f $VG_info_file
125}
126
127
128
129
130
131ProcessVolumeGroup() {
132 local current_VG physical_volumes i list_of_devices VG_params
133 current_VG=$1
134 if [ $lvmversion = 2 ]; then
135 VG_params=`GenerateVgcreateParameters $current_VG`
136 current_PVs=`$LVMCMD pvscan | grep " $current_VG " | awk '{print $2}' | tr '\n' ' '`
137 list_of_devices=$current_PVs
138 else
139 info_file=/proc/lvm/VGs/$current_VG/group
140 physical_volumes=`ls /proc/lvm/VGs/$current_VG/PVs`
141 VG_params=`GenerateVgcreateParameters $current_VG`
142 list_of_devices=""
143 for i in $physical_volumes ; do
144 fname=/proc/lvm/VGs/$current_VG/PVs/$i
145 device=`GetValueFromField $fname "name:"`
146 list_of_devices="$list_of_devices $device"
147 done
148 current_PVs=$list_of_devices
149 fi
150 l=""
151 if [ -f /etc/multipath.conf ]; then
152 # If multipath check which type of devide are given, mpath prefered
153 for d in $list_of_devices; do
154 l="$l `mindi --readalllink $d`"
155 l="$l `GiveMapperOfdm $d`"
156 done
157 list_of_devices="`echo $l | sort -u`"
158 fi
159
160 if [ "$MINDI_EXCLUDE_DEVS" ] ; then
161 for ed in $MINDI_EXCLUDE_DEVS ; do
162 if [ "`echo " $list_of_devices" | grep " $ed"`" != "" ]; then
163 echo $current_VG >> $MINDI_TMP/excludedvgs
164 return
165 fi
166 done
167 fi
168 echo "# $LVMCMD vgcreate $current_VG$VG_params $current_PVs"
169 echo "# $LVMCMD vgchange -a y $current_VG"
170}
171
172
173
174ListAllPhysicalVolumes() {
175 if [ $lvmversion = 2 ]; then
176 $LVMCMD pvscan 2> /dev/null | grep 'PV' | grep -v unknown | awk '{print $2}' > $MINDI_TMP/pv.tmp
177 else
178 pvscan 2> /dev/null | grep '"' | cut -d'"' -f2 > $MINDI_TMP/pv.tmp
179 fi
180
181 rm -f $MINDI_TMP/pv.tmp2
182 for d in `cat $MINDI_TMP/pv.tmp`; do
183 # Skip devices excluded, coming from mondoarchive
184 skip=0
185 l=""
186 l="$l `mindi --readalllink $d`"
187 l="$l `GiveMapperOfdm $d`"
188 list_of_devices="`echo $l | sort -u`"
189 if [ "$MINDI_EXCLUDE_DEVS" ] ; then
190 for ed in $MINDI_EXCLUDE_DEVS ; do
191 if [ "`echo " $list_of_devices " | grep " $ed"`" != "" ]; then
192 skip=1
193 continue
194 fi
195 done
196 fi
197 if [ $skip -eq 1 ]; then
198 continue
199 fi
200 echo $d >> $MINDI_TMP/pv.tmp2
201 done
202
203 if [ -f /etc/multipath.conf ]; then
204 # If multipath check which type of devide are given, mpath prefered
205 if [ -f $MINDI_TMP/pv.tmp2 ]; then
206 l=""
207 for d in `cat $MINDI_TMP/pv.tmp2`; do
208 skip=0
209 l="$l `mindi --readalllink $d`"
210 l="$l `GiveMapperOfdm $d`"
211 list_of_devices="`echo $l | sort -u`"
212 if [ "$MINDI_EXCLUDE_DEVS" ] ; then
213 for ed in $MINDI_EXCLUDE_DEVS ; do
214 if [ "`echo " $list_of_devices " | grep " $ed"`" != "" ]; then
215 skip=1
216 continue
217 fi
218 done
219 fi
220 if [ $skip -eq 1 ]; then
221 continue
222 fi
223 GiveMapperOfdm $d
224 done
225 fi
226 else
227 if [ -f $MINDI_TMP/pv.tmp2 ]; then
228 cat $MINDI_TMP/pv.tmp2
229 fi
230 fi
231 rm -f $MINDI_TMP/pv.tmp $MINDI_TMP/pv.tmp2
232}
233
234
235ListAllVolumeGroups() {
236 $LVMCMD vgdisplay 2> /dev/null | awk '/^ *VG Name/ {print $3;}'
237}
238
239GiveMapperOfdm () {
240
241major=`stat -c "%t" $1 2> /dev/null`
242minor=`stat -c "%T" $1 2> /dev/null`
243
244for i in `ls /dev/mapper/*`; do
245 mj=`stat -c "%t" $i`
246 mn=`stat -c "%T" $i`
247 if [ "$mj" = "$major" ] && [ "$mn" = "$minor" ]; then
248 echo "$i"
249 return
250 fi
251done
252echo $1
253}
254
255
256ListLvmDrivesAndPartitions() {
257 # We get partitions in this loop not devices
258 for d in `$LVMCMD vgdisplay -v 2> /dev/null | grep "PV Name" | sed 's/(#)//' | awk '{print $3}'`; do
259 # If multipath check which type of devices are given, mpath prefered
260 if [ -f /etc/multipath.conf ]; then
261 i=`GiveMapperOfdm $d`
262 rep=$i
263 else
264 rep=$d
265 fi
266 skip=0
267 if [ "$MINDI_EXCLUDE_DEVS" ] ; then
268 for ed in $MINDI_EXCLUDE_DEVS ; do
269 if [ "`echo " $rep " | grep " $ed"`" != "" ]; then
270 skip=1
271 continue
272 fi
273 done
274 fi
275 if [ $skip -eq 1 ]; then
276 continue
277 fi
278 echo $rep
279 done
280}
281
282
283
284PrettifyList() {
285 local i
286 echo -en "$1"
287 for i in $2 ; do
288 echo -en "$i "
289 done
290 echo ""
291}
292
293
294ListAllLogicalVolumes() {
295 if [ $lvmversion = 2 ]; then
296 $LVMCMD lvscan 2> /dev/null | grep "'" | grep -iw "ACTIVE" | cut -d"'" -f2
297 else
298 lvscan 2> /dev/null | grep '"' | grep -iw "ACTIVE" | cut -d'"' -f2
299 fi
300}
301
302
303
304WriteShutdownScript() {
305 local i
306 echo ""
307 echo "Finally, to shut down and delete the volumes, do this:-"
308 for i in `ListAllLogicalVolumes` ; do
309 echo "($LVMCMD lvremove -f $i)"
310 done
311 for i in `ListAllVolumeGroups` ; do
312 echo "($LVMCMD vgchange -a n $i)"
313 done
314 for i in `ListAllVolumeGroups` ; do
315 echo "($LVMCMD vgremove $i)"
316 done
317 if [ $lvmversion = 2 ]; then
318 echo "(rmmod dm-mod & rmmod dm_mod & )"
319 else
320 echo "(rmmod lvm-mod)"
321 fi
322}
323
324
325
326# -------------------------------- main -----------------------------------
327
328if [ "$1" = "--givemapperofdm" ] ; then
329 shift
330 if [ _"$1" != _"" ] ; then
331 GiveMapperOfdm $1
332 fi
333 exit 0
334fi
335
336
337which lvmdiskscan 2>/dev/null 2>&1 || Die "lvmdiskscan not found. Won't handle LVM."
338if [ -e "/proc/lvm/global" ] && [ "`tr -s '\t' ' ' < /proc/lvm/global | grep "0 VGs 0 PVs 0 LVs"`" != "" ]; then
339 exit 1
340fi
341
342if [ _"$MINDI_TMP" = _"" ]; then
343 # Launched stdalone, so create a temp dir
344 STDALONE="true"
345 MINDI_TMP=`mktemp -d $TMPDIR/mindi.XXXXXXXXXX`
346 if [ $? -ne 0 ]; then
347 df $TMPDIR
348 Die "Unable to create a temporary directory ! Check space on $TMPDIR"
349 fi
350 if [ _"$MINDI_TMP" = _"" ]; then
351 Die "MINDI_TMP is empty, aborting"
352 fi
353 if [ _"$MINDI_TMP" = _"/" ]; then
354 Die "MINDI_TMP is /, aborting"
355 fi
356fi
357
358# Older lvmdiskscan use --help, newer --version
359lvmopt="--help"
360lvmdiskscan $lvmopt 2>&1 | grep -q -- "--version"
361if [ $? -eq 0 ]; then
362 lvmopt="--version"
363fi
364
365
366lvmversion=`lvmdiskscan --help 2>&1 |
367 grep -E "Logical Volume Manager|LVM version:" |
368 cut -d: -f2 | cut -d. -f1 |
369 awk '{print $NF}' |
370 sed -e 's/ //g'`
371
372if which lvm 2>/dev/null; then
373 version=`lvm version 2> /dev/null | grep "LVM version" | awk '{print $3}'`
374 i="`echo "$version" | cut -d'.' -f1`"
375 echo "i=$i"
376 if [ "$i" -ge "2" ] ; then
377 lvmversion=2
378 fi
379fi
380
381if [ $lvmversion = 2 ]; then
382 echo "LVM version >= 2.0 found."
383 LVMCMD="lvm"
384else
385 LVMCMD=""
386fi
387
388rm -f $MINDI_TMP/excludedvgs
389all_lvm_drives_and_partitions=`ListLvmDrivesAndPartitions`
390echo "Just before you extrapolate mountlist to include RAID partitions,"
391echo "extrapolate it to include the following LVM drives and partitions:-"
392PrettifyList ">>>>> " "$all_lvm_drives_and_partitions"
393echo "To get started, type:-"
394if [ $lvmversion = 2 ]; then
395 echo "(insmod dm-mod)"
396 echo "(insmod dm_mod)"
397else
398 echo "(insmod lvm-mod)"
399fi
400echo "# $LVMCMD vgchange -an"
401for i in `ListAllPhysicalVolumes` ; do
402 echo "# echo y | $LVMCMD pvcreate -ff $i"
403done
404echo "# $LVMCMD vgscan"
405echo ""
406echo "Create and activate the VG's (volume groups)."
407all_volume_groups=`ListAllVolumeGroups`
408for current_VG in $all_volume_groups ; do
409 if [ $lvmversion -ne 2 ]; then
410 echo "# rm -Rf /dev/$current_VG"
411 fi
412 ProcessVolumeGroup $current_VG
413done
414echo ""
415echo "Finally, create the LV's (logical volumes)."
416all_logical_volumes=`ListAllLogicalVolumes`
417for current_LV in $all_logical_volumes ; do
418 ProcessLogicalVolume $current_LV
419done
420echo ""
421echo "# $LVMCMD vgscan"
422echo "Now you may format the LV's:-"
423for i in `ListAllLogicalVolumes` ; do
424 echo "(mkfs -t foo $i or something like that)"
425done
426rm -f $MINDI_TMP/excludedvgs
427WriteShutdownScript
428if [ _"$STDALONE" = _"true" ]; then
429 rm -rf $MINDI_TMP
430fi
431exit 0
432
433
434
Note: See TracBrowser for help on using the repository browser.