<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Try to use partprobe to re-read available disks/partitions. I'm not sure is it available when %pre script runs, but anaconda does that somehow during the partitioning section so I guess it's possible. In the worst case scenario I would add reboot at the end of creation of raid config in the %pre script - so that it would reboot if change in config occured. I know that its rather a nasty hack, not a proper solution, but please keep in mind that anaconda has some limits.<br><div> <br>Good luck!<br><br></div>Paul Malinowski<br><br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">----- Original Message ----<br>From: John Summerfield
 <debian@herakles.homelinux.org><br>To: Discussion list about Kickstart <kickstart-list@redhat.com><br>Sent: Thursday, 2 October, 2008 2:22:48<br>Subject: Re: Forcing a disk rescan after %pre<br><br>Dag Wieers wrote:<br>> Hi,<br>> <br>> We are integrating some pre-install scripts. One of the things we have <br>> now is that in the %pre phase the HW RAID controller is tested for <br>> "Virtual disks" and if none are found it will create a RAID config <br>> depending on the number of disks found.<br>> <br>> The problem is that even when we created the RAID, restarted the RAID <br>> driver and created the device node (fdisk -l shows the new disk). <br>> Anaconda does not know about the new disk, likely because the scan for <br>> disks happened before.<br>> <br>> I found a file /tmp/scsidisks and also rewrite that file, but still <br>> Anaconda does not update its view of the system after the
 %pre.<br>> <br>> Does someone know how we can make Anaconda understand that we created a <br>> disk in the %pre ?<br><br>I'm a little puzzled. Years ago (RHL 7.x I think) I used to initialise <br>disks in %pre with various incantations of dd and fdisk (one can pipe <br>commands into fdisk). That worked fine, and I'm pretty sure I created <br>new partitions. fdisk forces partition tables to be reread.<br><br>Of course, it's possible anaconda has been broken since then:-)<br><br><br><br><br>-- <br><br>Cheers<br>John<br><br>-- spambait<br><a ymailto="mailto:1aaaaaaa@coco.merseine.nu" href="mailto:1aaaaaaa@coco.merseine.nu">1aaaaaaa@coco.merseine.nu</a>  <a ymailto="mailto:Z1aaaaaaa@coco.merseine.nu" href="mailto:Z1aaaaaaa@coco.merseine.nu">Z1aaaaaaa@coco.merseine.nu</a><br>-- Advice<br><a href="http://webfoot.com/advice/email.top.php" target="_blank">http://webfoot.com/advice/email.top.php</a><br><a
 href="http://www.catb.org/%7Eesr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br><a href="http://support.microsoft.com/kb/555375" target="_blank">http://support.microsoft.com/kb/555375</a><br><br>You cannot reply off-list:-)<br><br>_______________________________________________<br>Kickstart-list mailing list<br><a ymailto="mailto:Kickstart-list@redhat.com" href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br></div></div></div><br>



      </body></html>