On 2008-08-01, Broekman, Maarten <[EMAIL PROTECTED]> wrote:
> Correct.  With the awk patch, both /dev/VG/LV and /dev/mapper/VG-LV will
> work.  Without the awk patch, only /dev/VG/LV will work since
> /dev/mapper/VG-LV are just links to /dev/VG/LV.  Later in the init
> script, it checks the DUMPDEV which is /dev/mapper/VG-LV on your system.
> Since the link wasn't correctly made because of the use of cut instead
> of awk, that DUMPDEV doesn't exist.
>
> The use of awk is definitely far more appropriate.  I was just noting
> that kdump would work fine with /dev/VG/LV as the dump device instead of
> /dev/mapper/VG-LV.
>

I don't understand why DUMPDEV=/dev/VG/LV should work any better..
would be great if it did, as that would be a simple workaround for
this problem, but the VGRP will still be empty because of the use of
"sed", so it shouldn't be able to create the /dev/VG directory, or
/dev/VG/LV symlink..

Here's the interesting part of mkdumprd:

1524 if [ -n "$vg_list" ]; then
1525     emit "echo Scanning logical volumes"
1526     emit "lvm vgscan --ignorelockingfailure --mknodes"
1527     emit "echo Activating logical volumes"
1528     emit "lvm vgchange -a y --ignorelockingfailure"
1529     emit "DM_NUM=0"
1530     emit "for i in \`lvm lvs | awk '{ if (NR > 1) print \$1}'\`"
1531     emit "do"
1532     emit "   VGRP=\`lvm lvs | grep \$i | cut -d\" \" -f4\`"
1533     emit "   mkdir -p /dev/\$VGRP"
1534     emit "   if [ ! -e /dev/\$VGRP/\$i ]"
1535     emit "   then"
1536     emit "      ln -s /dev/mapper/\$VGRP-\$i /dev/\$VGRP/\$i"
1537     emit "      ln -s /dev/mapper/\$VGRP-\$i /dev/dm-\$DM_NUM"
1538     emit "      DM_NUM=\`echo \$DM_NUM 1 + p | dc\`"
1539     emit "      if [ -z \"\$noresume\" ]"
1540     emit "      then"
1541     emit "        /sbin/dmsetup.static resume /dev/mapper/\$VGRP-\$i"
1542     emit "      fi"
1543     emit "   fi"
1544     emit "done"
1545 fi


Or am I missing something ? 


  -jf

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to