How does the boot-process assemble the raid?

Hi everyone,
I just switched from Debian and CentOS to archlinux on all my machines and I really love it so far!
Now I feel that I can really customize my OS the way I want.
But I was thinking about one thing that I don't really understand yet, and of what I have
read on this forum I'm certain that someone knows the answer.
On my primary machine I have an mdadm-raid.
And the partitions looks like this:
/dev/sda                          /dev/sdb
Disk1                              Disk2
/dev/sda1                        /dev/sdb1
100mb ext2 (boot)            100mb empty (I did empty partition so that the disks looks the same.)
/dev/sda2  <- RAID0 ->   /dev/sdb2            /dev/md0
2500MB ext3 (root)          2500MB ext3
/dev/sda3  <- RAID0 ->   /dev/sdb3            /dev/md1
2250MB (swap)                2250MB swap
/dev/sda4  <- RAID0 ->   /dev/sdb4            /dev/md2
245150MB ext3 (home)    245150MB ext3
So there was a little tricky to get it installed and assemble the raid at boot, but now it's working like a dream again.
And what I did what except loading mdadm-hook of course I used the kernel parameter: ro root=/dev/md0 md=0,/dev/sda2,/dev/sdb2 a.s.o. to
tell the initrd how to assemble the raid at boot.
But before archlinux i've done this setup in the installer, and after I've installed for example Debian, the system boots correctly and
assemble the raid at boot, but without the kernel-parameters, how does the system know how the raid should be assembled?
I've tried to include the mdadm.conf but with no success, does the initrd contain the raid information is some way?

To obtain that file, run:
abs
This will provide the abs tree of core,extra, and community in /var/abs.
Then you can get the file:
# vim: set ft=sh:
run_hook ()
    input="$(cat /proc/cmdline)"
    mdconfig="/etc/mdadm.conf"
    # for partitionable raid, we need to load md_mod first!
    modprobe md_mod 2>/dev/null
    # if no config file is present create one from command line parameters
    if ! [ -e $mdconfig ]; then
        #Create initial mdadm.conf
        # scan all devices in /proc/partitions
        echo DEVICE partitions > $mdconfig
        for i in $input; do
        case $i in
                # raid
                md=[0-9]*,/*)
                    device="$(/bin/replace -s,/ "$i" "=" "")"
                    array="$(/bin/replace -s/ "$device" "," " devices=")"
                    echo "ARRAY /dev/$array" >> $mdconfig
                    RAID_FOUND=1
                # partitionable raid
                md=d[0-9]*,/*)
                    device="$(/bin/replace -s=d "$i" "md=" "md_")"
                    array="$(/bin/replace -s/ "$device" "," " devices=")"
                    echo "ARRAY /dev/$array" >> $mdconfig
                    RAID_FOUND=1
                # raid UUID
                md=[0-9]*,[0-9,a-z]*)
                    device="$(/bin/replace -s,/ "$i" "=" "")"
                    array="$(/bin/replace -s/ "$device" "," " uuid=")"
                    echo "ARRAY /dev/$array" >> $mdconfig
                    RAID_FOUND=1
                # partitionable raid UUID
                md=d[0-9]*,[0-9,a-z]*)
                    device="$(/bin/replace -s=d "$i" "md=" "md_")"
                    array="$(/bin/replace -s/ "$device" "," " uuid=")"
                    echo "ARRAY /dev/$array" >> $mdconfig
                    RAID_FOUND=1
            esac
        done
    else
        RAID_FOUND=1
    fi
    if [ "$RAID_FOUND" = 1 ]; then
        # assemble everything
        /sbin/mdassemble.static
    fi
The above is what is provided in mine............

Similar Messages

  • How to stop the boot process after the GRUB menu?

    Hello there.
    I am getting an error message in the boot process, after the GRUB menu, but I can't read completely the message because it is shown too fast. So, how can I stop the process when I see the error message, for writing down it?
    Thanks in advance.

    zuargo wrote:
    Hello there.
    I am getting an error message in the boot process, after the GRUB menu, but I can't read completely the message because it is shown too fast. So, how can I stop the process when I see the error message, for writing down it?
    Thanks in advance.
    I didn't try this before, but if you use systemd, you may want to try systemd.confirm_spawn to invoke interactive booting process, so you can start the services one by one manually therefore locate the one throwing out error message.
    It is explained in the systemd manual:
    http://www.freedesktop.org/software/sys … stemd.html

  • My mac mini does not boot, after backing the enire system onto an external drive with Carbon Copy Clone

    My Mac Mini does not boot, after backing the enire system onto an external drive with Carbon Copy Clone. I had switched the start-up disk back to the original of course. Now all I see is the Apple logo. What should I do? Thanks in advance.

    Try disconnecting any external devices, especially hard drives
    and try rebooting.
    If that doesn't help, then :
    If you are running Lion, boot to the Recovery HD and run a
    Repair Disk on the OSX partition.
    If Snow Leopard, boot to the installl DVD and run Repair Disk.
    Also, you may want to bookmark this:
    http://reviews.cnet.com/8301-13727_7-57345273-263/troubleshooting-the-boot-proce ss-for-intel-macs/?tag=txt;title
    for future reference.  It is a pretty good explanation of the
    Mac boot process and how to identify where problems may be.

  • My MacBookPro (mid 2012) will not complete the boot process. Yosemite's progress widget gets about 1/3 to 1/2 way across when the logo disappears and the screen goes all white for 10-15 secs or so, then the machine shuts down and restarts.

    My MacBookPro (mid 2012) will not complete the boot process. Yosemite's progress widget gets about 1/3 to 1/2 way across when the logo disappears and the screen goes all white for 10-15 secs, then the machine shuts down and restarts. This sequence will repeat seemingly forever unless I shut it down manually.
    I upgraded to Yosemite from Mountain Lion a couple months ago, skipping Maverick completely, and I've done any associated updates that Apple told me about. I don't recall which version of Yosemite I have, but I'm sure it is the "latest and greatest".
    I've tried re-starting in Safe Mode / Safe Boot and that does the same thing as described above except without the endless restarts. Instead of restarting at some point, SafeBoot proceeds to the white screen and then it hangs until I restart it manually. (I've waited as long os 20-30 minutes with no response).
    When I tried the option-command-p-r key combo I never get any chimes or other noises besides the original 1 time boot sound that you would expect to get when starting up a macbook pro.
    I was using the mac quite normally (meaning I was doing work I normally do on it and there was no indication of anything wrong) immediately prior to this happening.
    The machine is BootCamp(ed) with Windows 8.1 which I use from a VMWare virtual machine instead of natively so that I can have both OSes running at the same time. I also think this is unrelated to my problem. I have been using this setup for more than 2 years.
    My upgrade to Yosemite was uneventful and I thought it went well and was very smooth. I don't want to lead attention away from Yosemite, but at this point my problem does not seem related to the upgrade.
    Any help is appreciated.

    Install or Reinstall OS X from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
      1. Select Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your startup volume (usually Macintosh HD) from the
          left side list. Click on the Erase tab in the DU main window.
      3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
          the Security button and set the Zero Data option to one-pass. Click on
          the Erase button and wait until the process has completed.
      4. Quit DU and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
               because it is three times faster than wireless.

  • How to get cwd of the current process in the kernel in Solaris 8

    Hi, everyone
    Does any one know how to get the path name of the current working directory of the current process in the kernel in Solaris8 ?
    I searched the forum and got some related links, but none of them gives a clear solution.
    Sample code can help a lot!
    Thank you!

    NiuLin wrote:
    Thanks for the reply.
    What the user structure contains is the vnode pointer of the cwd, but I want go get the pathname of it, like /export/home/abc/.First, all you can get is a path name - there can be more than one. And then there's the problem of determining the path name you want if the process is running under chroot.
    Assuming you don't have to deal with those, there's this thread:
    http://forum.java.sun.com/thread.jspa?threadID=5084620&messageID=9298124
    Of course, that thread doesn't say how to do that. But it appears to be part of Solaris 10.
    I once had to solve this same problem for a Linux kernel module I wrote, so I know it's theoretically possible. But I also know it's not as simple as it seems it should be, and any results you do get are not guaranteed to be unique and, IIRC, not even correct in some cases.
    Sorry I can't be more specific than that right now.

  • Set default console font early in the boot process using mkinitrd?

    Hi,
    I'm a Slackware user, and I have a cross-distro question to the Arch gurus here. I like using a custom font (Lat2Terminus16) in the console, on servers. Now I remember having defined this font as default in the Arch console when I gave it a try, and then added it not only to rc.conf, but also to the configuration file that drives the initrd creation. Thus, the console font was defined very early in the boot process.
    Now here's my question: is there any way to achieve this on a stock Linux distribution like Slackware? The man page for mkinitrd and mkinitrd.conf doesn't say anything about custom console fonts. So how do you guys do that?
    Cheers from the sunny South of France.

    Zom wrote:
    We do it by adding 'consolefont' to the HOOKS section in mkinitrd.conf.
    E: Or you could just add the relevant files to the FILES section, if you don't want to use the hook I suppose.
    Yes, but there's no HOOKS and no FILES section in a default Slackware install. My question was more or less to the Arch devs, to know if there was a *generic* (e. g. non-Arch-specific) way to achieve this.

  • Hi, can iMovie give pronlems during the boot process from my iMac Mine. I have often after working with iMovie that i get during the boot Psi SDXH pause so the boot process stops

    hi,
    can iMovie give problems during the boot process from my iMac Mini?
    I have often, after working with iMovie that i get during the boot Psi SDXH pause
    so the boot process stops at this point
    I have often reinstall OSX Mavericks
    regards,
    HenkfromWinterswijk
    Netherlands

    Hello Federico,
    Your EliteBook is a Business model.  Your issue would be best answered on the HP Enterprise Business Community Forum
    Good luck!
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • How to get boot camp in the emac

    how to get boot camp in the emac

    Furthermore, eMacs can only emulate the Windows environment, whereas Intel CPU Macs including the iMac you have running 10.6.8 can virtualize Windows.  Emulation is a poor man's solution, because software is used to replace functions that normally take place with hardware.  You can use the iMac to do any data conversion before it gets sent back to the eMac over a network.  See my FAQ* regarding Windows on the Mac:
    http://www.macmaps.com/macosxnative.html#WINTEL

  • There is always a blue screen appears after the Apple logo during the booting process. And then everything is back to normal. What is this thing? Is there something wrong with my screen or something?

    There is always a blue screen appears after the Apple logo during the booting process. And then everything is back to normal. What is this thing? Is there something wrong with my screen or something?

    Nah - that's just the normal boot process.
    Clinton

  • How does Adobe ExportPDF differ from the export feature in Adobe Acrobat Pro 9.0?

    How does Adobe ExportPDF differ from the export feature in Adobe Acrobat Pro 9.0?

    ExportPDF is based on a newer conversion engine than the one found in Acrobat 9.0.  They're similar in some respects, but ExportPDF is more advanced.
    -David

  • Tty1-6 freeze in the middle of the boot process, tty7 and X works fine

    I'm running Arch+KDE (and some alternative like xmonad as wm). I have the following strange problem:
    Booting works fine, KDM starts, I can login, everythings works. However, although I can change to tty1-6 via ctrl+alt+f1...6 they are frozen in the middle of the boot process, here's exactly what I see after switching to another tty:
    [ 2.733866] ata2.00: 78165360 sectors, multi 16: LBA48
    [ 2.747003] ata2.00: configured for UDMA/100
    [ 2.747223] scsi 1:0:0:0: Direct-Access ATA ST340014A 3.06 PQ: 0 ANSI: 5
    [ 2.760075] usb 1-1: new high speed USB device number 2 using ehci_hcd
    [ 2.771843] sd 1:0:0:0: [sda] 78165360 512-byte logical blocks: (40.0 GB/37.2 GiB)
    [ 2.772018] sd 1:0:0:0: [sda] Write Protect is off
    [ 2.772098] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
    [ 2.772128] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 2.777708] sr0: scsi3-mmc drive: 52x/52x cd/rw xa/form2 cdda tray
    [ 2.777797] cdrom: Uniform CD-ROM driver Revision: 3.20
    [ 2.778630] sr 0:0:0:0: Attached scsi CD-ROM sr0
    [ 2.785447] sda: sda1 sda2 sda3 sda4
    [ 2.786061] sd 1:0:0:0: [sda] Attached SCSI disk
    [ 2.885089] hub 1-1:1.0: USB hub found
    [ 2.885518] hub 1-1:1.0: 4 ports detected
    [ 2.993360] usb 1-2: new high speed USB device number 3 using ehci_hcd
    [ 3.236962] usb 1-1.1: new full speed USB device number 5 using ehci_hcd
    [ 3.384005] input: Logitech Logitech USB Headset as /devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1.1/1-1.1:1.3/input/input1
    [ 3.384294] generic-usb 0003:046D:0A02.0001: input,hidraw0: USB HID v1.00 Device [Logitech Logitech USB Headset] on usb-0000:00:1d.7-1.1/input3
    The next lines which are not shown are (via dmesg)
    [ 3.384294] generic-usb 0003:046D:0A02.0001: input,hidraw0: USB HID v1.00 Device [Logitech Logitech USB Headset] on usb-0000:00:1d.7-1.1/input3
    [ 3.390423] usbcore: registered new interface driver usbhid
    [ 3.390511] usbhid: USB HID core driver
    [ 3.393690] usb 1-1.3: new high speed USB device number 6 using ehci_hcd
    [ 3.424849] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
    [ 3.840034] usb 3-1: new low speed USB device number 2 using uhci_hcd
    [ 4.025136] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/input/input2
    [ 4.025381] generic-usb 0003:046D:C050.0002: input,hidraw1: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1d.1-1/input0
    [ 5.739092] udevd[227]: starting version 171
    [ 6.392169] input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input3
    [ 6.392182] ACPI: Sleep Button [SLPB]
    [ 6.392256] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
    [ 6.392262] ACPI: Power Button [PWRF]
    [ 6.484257] input: PC Speaker as /devices/platform/pcspkr/input/input5
    [ 6.486020] ACPI: acpi_idle registered with cpuidle
    [ 6.567251] Linux agpgart interface v0.103
    [ 6.589560] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
    [ 6.695744] i801_smbus 0000:00:1f.3: PCI INT B -> GSI 17 (level, low) -> IRQ 17
    [ 6.711992] iTCO_vendor_support: vendor-support=0
    [ 6.719428] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.06
    [ 6.720445] iTCO_wdt: Found a ICH5 or ICH5R TCO device (Version=1, TCOBASE=0x0460)
    [ 6.721211] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
    [ 6.722801] parport_pc 00:07: reported by Plug and Play ACPI
    [ 6.722852] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
    [ 6.743621] agpgart-intel 0000:00:00.0: Intel 865 Chipset
    [ 6.743658] agpgart-intel 0000:00:00.0: detected gtt size: 131072K total, 131072K mappable
    [ 6.743755] agpgart-intel 0000:00:00.0: detected 1024K stolen memory
    [ 6.744774] agpgart-intel 0000:00:00.0: AGP aperture is 128M @ 0xa0000000
    [ 6.847264] ppdev: user-space parallel port driver
    [ 6.852667] Intel 82802 RNG detected
    [ 6.878022] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
    [ 6.923869] [drm] Initialized drm 1.1.0 20060810
    [ 7.050148] i915 0000:00:02.0: enabling device (0000 -> 0003)
    [ 7.050160] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    [ 7.050168] i915 0000:00:02.0: setting latency timer to 64
    [ 7.072268] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
    [ 7.072273] e100: Copyright(c) 1999-2006 Intel Corporation
    [ 7.072344] e100 0000:01:08.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
    [ 7.110870] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
    [ 7.110875] [drm] Driver supports precise vblank timestamp query.
    [ 7.113855] i915 0000:00:02.0: BAR 6: can't assign [??? 0x00000000 flags 0x0] (bogus alignment)
    [ 7.113859] [drm] failed to find VBIOS tables
    [ 7.133720] e100 0000:01:08.0: PME# disabled
    [ 7.140882] [drm] initialized overlay support
    [ 7.141854] e100 0000:01:08.0: eth0: addr 0xfe9df000, irq 20, MAC addr 00:07:e9:4b:a9:8c
    [ 7.178193] [drm] capturing error event; look for more information in /debug/dri/0/i915_error_state
    [ 7.181514] render error detected, EIR: 0x00000010
    [ 7.181514] [drm:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
    [ 7.181514] render error detected, EIR: 0x00000010
    [ 7.219489] No connectors reported connected with modes
    [ 7.219497] [drm] Cannot find any crtc or sizes - going 1024x768
    [ 7.237564] sr 0:0:0:0: Attached scsi generic sg0 type 5
    [ 7.238588] sd 1:0:0:0: Attached scsi generic sg1 type 0
    [ 7.299180] Console: switching to colour frame buffer device 128x48
    [ 7.347619] fb0: inteldrmfb frame buffer device
    [ 7.347623] drm: registered panic notifier
    [ 7.347832] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
    [ 7.557756] Intel ICH 0000:00:1f.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17
    [ 7.557804] Intel ICH 0000:00:1f.5: setting latency timer to 64
    [ 7.681210] nvidia: module license 'NVIDIA' taints kernel.
    [ 7.681217] Disabling lock debugging due to kernel taint
    [ 7.710730] Linux media interface: v0.10
    [ 7.800616] usbcore: registered new interface driver uas
    [ 7.877282] Linux video capture interface: v2.00
    [ 7.930178] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0802)
    [ 7.972100] input: UVC Camera (046d:0802) as /devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1.3/1-1.3:1.0/input/input6
    [ 7.972388] usbcore: registered new interface driver uvcvideo
    [ 7.972392] USB Video Class driver (v1.0.0)
    [ 7.990026] intel8x0_measure_ac97_clock: measured 50989 usecs (2457 samples)
    [ 7.990031] intel8x0: clocking to 48000
    [ 8.093410] Initializing USB Mass Storage driver...
    [ 8.100022] scsi4 : usb-storage 1-2:1.0
    [ 8.103449] usbcore: registered new interface driver usb-storage
    [ 8.103453] USB Mass Storage support registered.
    [ 8.401795] usbcore: registered new interface driver snd-usb-audio
    [ 8.568477] nvidia 0000:01:01.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
    [ 8.568494] vgaarb: device changed decodes: PCI:0000:01:01.0,olddecodes=io+mem,decodes=none:owns=io+mem
    [ 8.569407] NVRM: loading NVIDIA UNIX x86 Kernel Module 173.14.30 Thu Apr 14 08:47:14 PDT 2011
    [ 9.104388] scsi 4:0:0:0: Direct-Access WD Ext HDD 1021 2002 PQ: 0 ANSI: 4
    [ 9.104713] sd 4:0:0:0: Attached scsi generic sg2 type 0
    [ 9.105502] sd 4:0:0:0: [sdb] 2930272256 512-byte logical blocks: (1.50 TB/1.36 TiB)
    [ 9.106381] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
    [ 9.106386] sd 4:0:0:0: [sdb] Assuming drive cache: write through
    [ 9.108519] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
    [ 9.108524] sd 4:0:0:0: [sdb] Assuming drive cache: write through
    [ 9.129321] sdb: sdb1 sdb2 sdb3 sdb4
    [ 9.131752] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
    [ 9.131758] sd 4:0:0:0: [sdb] Assuming drive cache: write through
    [ 9.131762] sd 4:0:0:0: [sdb] Attached SCSI disk
    [ 10.662601] EXT4-fs (sda3): re-mounted. Opts: (null)
    [ 11.097052] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
    [ 11.412380] Adding 2104508k swap on /dev/sda2. Priority:-1 extents:1 across:2104508k
    [ 14.876829] e100 0000:01:08.0: eth0: NIC Link is Up 100 Mbps Full Duplex
    [ 20.827578] NET: Registered protocol family 10
    [ 31.203380] eth0: no IPv6 routers present
    The curious thing is that everything works perfect in KDE, resp. tty7 ?!?

    what ever upgrade the software downloaded is the problem
    You didn't mention this in your first post. Any idea what it was? Backups?
    Besides that, this may be a fault in the video card, driver, or a screen fault.
    Courtesy of BDAqua (if possible):
    Take a screen shot & view that in Preview, move the Preview window around, if you see double lines it's a Video card/VRAM problem, if the lines do not move moving the pic around then it's the LCD or cable.

  • How to load the boot menu using the command line , after the configuration change ?

    how to load the boot menu using the command line , after the configuration change ?

    Hi @Bask-48 
    Welcome to the HP Forums!
    It is a terrific place to find answers.
    For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide Learn How to Post and More
    I grasp you are trying to change the boot order.  Here is a link to Configuring the Boot Order in the System BIOS
    that will assist you.
    Good Luck and Happy Holidays!
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • How to continue the running process behind the model dialogue box options ?

    How to continue the running process behind the model dialogue box options like this
    In Updation of K7 user press the Cancel Button
    New dialogue box appear with Yes/No options.
    But the backend updation is going on... not Pause the updation.
    Like this how to do ?
    Please provide me code.

    I don't know, if you mean you have done your form or you have solved the problem.
    It's visible your code is only partly reflecting your screenshot, and that's okay to demonstrate the problem you have given a fine example.
    As you marked my suggestion as solution this may not be needed anymore, but here's how I modified your code and used a self made QuestionBox instead of messagebox.
    The essential part is defining a callback method and letting the QuestionBox call back there. It's not essential I used RAISEEVENT, but it's fine as it has all the behaviour and parameters needed to call back.
    Public oTestFrm
    oTestFrm=Createobject("MyForm_Model_to_NonModel")
    oTestFrm.Show
    Define Class MyForm_Model_to_NonModel As Form
    onxx = 0
    Add Object lbl_DispValue As Label With Top=90, Left = 120, Width = 50, Height=30, Caption=''
    Add Object cmd_Start As CommandButton With Top=120, Left = 120, Width = 50, Height=30, Caption='Start'
    Add Object cmd_Stop As CommandButton With Top=120, Left = 190, Width = 50, Height=30, Caption='Stop', Enabled =.F.
    Procedure cmd_Start.Click
    This.Enabled =.F.
    Thisform.cmd_Stop.Enabled =.T.
    Thisform.onxx = 0
    Do While Thisform.onxx < 90000000
    DoEvents
    Thisform.onxx = Thisform.onxx +1
    Thisform.lbl_DispValue.Caption = Transform(Thisform.onxx)
    Enddo
    This.Enabled =.T.
    Thisform.cmd_Stop.Enabled =.F.
    Thisform.lbl_DispValue.Caption = ''
    Procedure cmd_Stop.Click
    * Here, I want NO PAUSE -- (Show running numbers continuously...)
    * how to control Model to NonModel in Messagebox.
    QuestionBox('Really stop the process', Thisform, 'handleanswer')
    Endproc
    Procedure handleanswer
    Lparameters tlYes
    If tlYes && means Stop
    Thisform.onxx = 99999999999999999
    Endif
    Endproc
    Enddefine
    Procedure QuestionBox()
    Lparameters tcMessage, toCaller, tcCallback
    If Not Pemstatus(_Screen,"oForms",5)
    _Screen.AddObject("oForms","Collection")
    Endif
    oMsgBox = Createobject("QuestionBoxForm", tcMessage, toCaller, tcCallback)
    _Screen.oForms.Add(oMsgBox)
    oMsgBox.Show(2)
    Endproc
    Define Class QuestionBoxForm As Form
    Autocenter = .T.
    AlwaysonTop = .T.
    Minwidth = 200
    Add Object label1 As Label With AutoSize=.T., WordWrap =.T.
    Add Object cmdYes As CommandButton With Caption = "Yes", Width=40
    Add Object cmdNo As CommandButton With Caption = "No", Width=40
    Procedure Init()
    Lparameters tcQuestion, toCaller, tcCallback
    Thisform.label1.Caption = tcQuestion+" ?"
    This.AddProperty("oCaller",toCaller)
    This.AddProperty("cCallback",tcCallback)
    This.Width = Max(This.Minwidth, Thisform.label1.Width)
    Thisform.label1.Left = (This.Width-Thisform.label1.Width)/2
    This.Height = Thisform.label1.Height+48
    This.cmdYes.Left = This.Width/2 - 10 - This.cmdYes.Width
    This.cmdNo.Left = This.Width/2 + 10
    This.cmdYes.top = Thisform.label1.Height+24
    This.cmdNo.top = This.cmdYes.top
    Endproc
    Procedure cmdYes.Click
    #Define clYes .T.
    Raiseevent(Thisform.oCaller,Thisform.cCallback,clYes)
    Thisform.Release()
    Endproc
    Procedure cmdNo.Click
    #Define clNo .F.
    Raiseevent(Thisform.oCaller,Thisform.cCallback,clNo)
    Thisform.Release()
    Endproc
    Enddefine
    I didn't yet introduced a timer for counter display updates. As you see the counter hangs a bit, if you mouse over your form, but it is a way of multithreading without using a separate thread and instead keep the rest of the application active by DOEVENTS
    in the long running loop code.
    Bye, Olaf.
    Olaf Doschke - TMN Systemberatung GmbH http://www.tmn-systemberatung.de

  • HT201270 In layman terms, what the heck does updating your carrier settings mean and how does it effect me in the real world?

    In Layman terms, what the heck does updating your carrier settings mean, and how does it effect me in the real world?

    No offense, but what carrier?  what data and what service? 
    I get a bogus window hovering in my itunes page, telling me I have to update information, that I don't want to manage. 
    I am not upset or unappreciative of your feedback, quite the opposite, I can't believe anyone actually monitors peoples frustrations. 
    I just want to make sure I don't allow information about me that is not necessary.  I just want to listen to music and have a phone and have an ipad. 
    Everything else about apple is way to propriatory. I don't want to do anything that isn't very simple. 
    Most importantly, there never seems to be any (human being) that can answer a telephone call anymore. 
    Contact us, means...send us an email about something you don't know anything about, and I don't even know that questions to ask.
    I am not allowed to be ignorant.  If I am I wait days for answers.....

  • How does one add folders to the E-mail App?

    How does one add folders to the E-mail App?

    Select your email under Account, tap Edit at the top then New Mailbox at the bottom. This will only work if you have an IMAP email account.

Maybe you are looking for

  • Open in Tabs always replaces  all other open tabs ?

    This is unacceptable. Suppose I have 5 open tabs and then I pres Open in Tabs (this command is available on the Toolbar when I create collections) This will close down all the 5 open tabs and replace them with the tabs in the folder!! I want to keep

  • Photos are not adjustable in Aperture v.2.1.4.

    Photos are not adjustable in Aperture v.2.1.4. 17200 photos can not adjust? This applies to pictures before 02/28/1910? All the pictures have a yellow mark with a ! in the bottom right of the picture. Also appears in the box Badger. Also get the mess

  • DBMS_METADATA Package Body won't compile

    I get a PLS-00103 error when attempting to complile the package body for SYS.DBMS_METADATA. The body hasn't been modified so I'm not sure where to look.

  • How to Save an iMovie Project in 720HD?

    After creating a new project in iMovie 11, I attempted to export it in HD 720p. Whether I chose Share/iTunes or Share/Export, the HD options (720p and 1080p) were greyed out. Large (960x40) is the highest resolution format available. The new project

  • Getting error in multimapping(IllegalInstanceException)

    Hi Experts, Scenario is proxy to two files using  multimapping and FCC. there are around 70 fields are fillers here we need to pass constant(n of spaces). I am getting the error like com/sap/xi/tf/_MM_Pension_Axise_to_Scheme_com.sap.aii.mappingtool.t