xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Teck Choon Giam <giamteckchoon@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: kernel BUG at arch/x86/xen/mmu.c:1860!
Date: Fri, 14 Jan 2011 10:20:39 -0500	[thread overview]
Message-ID: <20110114152039.GA7455@dumpdata.com> (raw)
In-Reply-To: <AANLkTikusLNCrh3mqh7iZ_d4ftP94rc2HURiEp=WmwA6@mail.gmail.com>

On Wed, Dec 29, 2010 at 12:58:15PM +0800, Teck Choon Giam wrote:
> Below is my latest test crash script:

This test script is still valid? Or do you have a more updated one?
> 
> ----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------
> #!/bin/sh
> #
> # This script is to create lvm snapshot, mount it, umount it and remove in a
> # specified number of loops to test whether it will crash the host server.
> # All LVM snapshots assumed can be mounted like if you are running a PV
> domU.
> #
> # Created by Giam Teck Choon
> #
> 
> # The LV name and for this case we are using XenGroup
> LVGroupName=XenGroup
> 
> # return 1 if is mounted otherwise return 0
> check_mount() {
>     local checkdir=${1}
>     if [ -n "$checkdir" ] ; then
>         local check=`grep "$checkdir" /proc/mounts`
>         if [ -n "$check" ] ; then
>             return 1
>         fi
>     fi
>     return 0
> }
> 
> do_lvm_create_remove() {
>     # number of loops default is 1
>     local loopcountlimit=${1:-1}
>     # snapshot size default is 1G
>     local snapshotsize=${2:-1G}
>     # implement a sleep between create, mount, umount and remove (default is
> 0 which is no pause)
>     local pauseinterval=${3:-0}
>     # execute commands after each pause/sleep such as sync or anything that
> you want to test
>     local commands=${4}
>     # We filter out snapshot and swap
>     local count=0
>     if [ -d "/dev/${LVGroupName}" ] ; then
>         while [ "$count" -lt "$loopcountlimit" ]
>         do
>             count=`expr $count + 1`
>             echo "${count} ... ... "
>             for i in `ls /dev/${LVGroupName} | grep -Ev 'snapshot$' | grep
> -Ev 'swap$'`; do
>                 if [ -h "/dev/${LVGroupName}/${i}" ] ; then
>                     echo -n "lvcreate -s -v -n ${i}-snapshot -L
> ${snapshotsize} /dev/${LVGroupName}/${i} ... ... "
>                     lvcreate -s -v -n ${i}-snapshot -L ${snapshotsize}
> /dev/${LVGroupName}/${i}
>                     echo "done."
>                     sleep ${pauseinterval}
>                     if [ -n "$commands" ] ; then
>                         echo -n "${commands} ... ... "
>                         $commands
>                         echo "done."
>                     fi
>                     mkdir -p /mnt/testlvm/${i}
>                     if [ -h "/dev/${LVGroupName}/${i}-snapshot" ] ; then
>                         check_mount /mnt/testlvm/${i}
>                         local ismount=$?
>                         if [ "$ismount" -eq 0 ] ; then
>                             echo -n "mount /dev/${LVGroupName}/${i}-snapshot
> /mnt/testlvm/${i} ... ... "
>                             mount /dev/${LVGroupName}/${i}-snapshot
> /mnt/testlvm/${i}
>                             echo "done."
>                             sleep ${pauseinterval}
>                             if [ -n "$commands" ] ; then
>                                 echo -n "${commands} ... ... "
>                                 $commands
>                                 echo "done."
>                             fi
>                         fi
>                         check_mount /mnt/testlvm/${i}
>                         local ismount2=$?
>                         if [ "$ismount2" -eq 1 ] ; then
>                             echo -n "umount /mnt/testlvm/${i} ... ... "
>                             umount /mnt/testlvm/${i}
>                             echo "done."
>                             sleep ${pauseinterval}
>                             if [ -n "$commands" ] ; then
>                                 echo -n "${commands} ... ... "
>                                 $commands
>                                 echo "done."
>                             fi
>                         fi
>                     fi
>                     rm -rf /mnt/testlvm/${i}
>                     echo -n "lvremove -f /dev/${LVGroupName}/${i}-snapshot
> ... ... "
>                     lvremove -f /dev/${LVGroupName}/${i}-snapshot
>                     echo "done."
>                     sleep ${pauseinterval}
>                     if [ -n "$commands" ] ; then
>                         echo -n "${commands} ... ... "
>                         $commands
>                         echo "done."
>                     fi
>                 fi
>             done
>             rm -fr /mnt/testlvm
>         done
>     else
>         echo "/dev/${LVGroupName} directory not found!"
>         exit 1
>     fi
> }
> 
> case $1 in
>     loop)    shift
>         do_lvm_create_remove "$@"
>         ;;
>     *)    cat <<HELP
> Usage: $0 loop loopcountlimit snapshotsize pauseinterval commands
> Where:
>     loopcountlimit is default to 1
>     snapshotsize is default to 1G
>     pauseinterval is default to 0
>     commands is default to none
> 
> Example to run with 100 loops without pause/sleep:
>     $0 loop 100
> 
> Example to run with 100 loops with pause/sleep of 5 seconds:
>     $0 loop 100 1G 5
> 
> Example to run with 100 loops with snapshot size of 2G instead of 1G:
>     $0 loop 100 2G
> 
> Example to run with 50 loops, 1G snapshot size, 5 seconds pause and with
> sync:
> command with each pause/sleep
>     $0 loop 50 1G 5 sync
> 
> Example to run with 50 loops, 1G snapshot size, no pause and with sync:
> command with each pause/sleep
>     $0 loop 50 1G 0 sync
> 
> Example to run your own commands:
>     $0 loop 100 1G 5 "echo hi && sync"
> 
> HELP
>         ;;
> esac
> ----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------
> 
> Thanks.
> 
> Kindest regards,
> Giam Teck Choon

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

  reply	other threads:[~2011-01-14 15:20 UTC|newest]

Thread overview: 85+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-26  8:16 kernel BUG at arch/x86/xen/mmu.c:1860! Teck Choon Giam
2010-12-27 15:53 ` Konrad Rzeszutek Wilk
2010-12-27 22:14   ` Teck Choon Giam
2010-12-28 10:42     ` Pasi Kärkkäinen
2010-12-28 18:01       ` Teck Choon Giam
2010-12-29  4:25         ` Teck Choon Giam
2010-12-29  4:58           ` Teck Choon Giam
2011-01-14 15:20             ` Konrad Rzeszutek Wilk [this message]
2011-01-14 19:25               ` Teck Choon Giam
2011-01-14 19:44                 ` Konrad Rzeszutek Wilk
2011-01-14 20:09                   ` Teck Choon Giam
2011-01-14 20:32                     ` Teck Choon Giam
2011-01-24  1:42                       ` Teck Choon Giam
2011-01-24 14:36                         ` Konrad Rzeszutek Wilk
2011-01-24 15:56                           ` Teck Choon Giam
2011-01-25 14:48                             ` Konrad Rzeszutek Wilk
2011-01-26 14:31                               ` Konrad Rzeszutek Wilk
2011-01-27 17:17                                 ` Teck Choon Giam
2011-01-27 20:32                                   ` Konrad Rzeszutek Wilk
2011-01-27 22:20                                     ` Teck Choon Giam
2011-02-26 12:03                                       ` Teck Choon Giam
2011-02-28 16:20                                         ` Konrad Rzeszutek Wilk
2011-03-01  9:59                                           ` Teck Choon Giam
2011-03-03 22:16                                             ` Konrad Rzeszutek Wilk
2011-03-04  5:30                                               ` Teck Choon Giam
2011-03-04  6:15                                                 ` Fajar A. Nugraha
2011-03-04  6:33                                                   ` Teck Choon Giam
2011-03-08 19:29                                                     ` Konrad Rzeszutek Wilk
2011-03-08 20:10                                                       ` Konrad Rzeszutek Wilk
2011-03-08 20:20                                                         ` Teck Choon Giam
2011-03-08 20:45                                                           ` Guido Hecken
2011-03-08 20:50                                                           ` [SPAM] " tjaouen
2011-03-09  0:06                                                             ` Andreas Olsowski
2011-03-11 18:38                                                               ` benco
2011-03-11 19:59                                                                 ` Sander Eikelenboom
2011-03-11 20:29                                                                   ` Teck Choon Giam
2011-03-11 20:45                                                                   ` Teck Choon Giam
2011-03-11 21:02                                                                     ` Sander Eikelenboom
2011-03-11 21:15                                                                       ` Teck Choon Giam
2011-03-09  0:43                                                             ` [SPAM] " Konrad Rzeszutek Wilk
2011-03-09  6:58                                                               ` Andreas Olsowski
2011-03-09 15:00                                                                 ` Konrad Rzeszutek Wilk
2011-03-09 19:59                                                                   ` Andreas Olsowski
2011-03-10  7:20                                                                     ` Andreas Olsowski
2011-03-10 13:45                                                                     ` Andreas Olsowski
2011-03-11 18:05                                                                       ` Konrad Rzeszutek Wilk
2011-03-14 10:25                                                                         ` Ian Campbell
2011-03-14 10:36                                                                           ` Teck Choon Giam
2011-03-16 15:52                                                                       ` [SPAM] Re: kernel BUG at arch/x86/xen/mmu.c:1860! - ideas Konrad Rzeszutek Wilk
2011-03-16 16:26                                                                         ` Teck Choon Giam
2011-03-16 16:40                                                                           ` Konrad Rzeszutek Wilk
2011-03-24 11:57                                                                             ` Konrad Rzeszutek Wilk
2011-03-24 21:28                                                                               ` Teck Choon Giam
2011-03-25  3:57                                                                               ` Teck Choon Giam
2011-03-27 10:16                                                                                 ` Teck Choon Giam
2011-03-28 11:37                                                                         ` Andreas Olsowski
2011-03-28 12:29                                                                           ` Teck Choon Giam
2011-04-05 22:01                                                                             ` Dave Hunter
2011-04-05 22:15                                                                               ` Teck Choon Giam
2011-04-05 23:20                                                                                 ` Dave Hunter
2011-04-06  7:53                                                                                   ` Ian Campbell
2011-04-06 21:52                                                                                     ` Jeremy Fitzhardinge
2011-04-07 13:16                                                                                       ` Teck Choon Giam
2011-03-09  0:41                                                           ` kernel BUG at arch/x86/xen/mmu.c:1860! Konrad Rzeszutek Wilk
2011-01-04 15:10       ` Christophe Saout
2011-01-04 15:19         ` Christophe Saout
2011-01-04 15:37           ` benco
2011-01-04 18:40           ` Christophe Saout
2011-01-04 19:32             ` Teck Choon Giam
2011-01-04 19:56               ` benco
2011-01-14 15:22             ` Konrad Rzeszutek Wilk
2011-01-14 15:33               ` Christophe Saout
2011-01-04 23:10         ` Christophe Saout
2011-01-05 10:51         ` Pasi Kärkkäinen
2011-01-05 14:56           ` Teck Choon Giam
2011-01-14 15:24             ` Konrad Rzeszutek Wilk
2011-01-14 19:31               ` Teck Choon Giam
2011-01-04 13:48 ` Ian Campbell
2011-01-04 19:24   ` Teck Choon Giam
2011-01-05 15:30     ` Teck Choon Giam
2011-01-13 14:28 ` tjaouen
2011-01-14 14:47   ` Konrad Rzeszutek Wilk
     [not found] <COL0-MC1-F14hmBzxHs00230882@col0-mc1-f14.Col0.hotmail.com>
2011-04-08 11:24 ` MaoXiaoyun
2011-04-08 11:46   ` MaoXiaoyun
  -- strict thread matches above, loose matches on Subject: below --
2011-04-15  7:37 Joerg Stephan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110114152039.GA7455@dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=giamteckchoon@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).