LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2009, 04:35 PM   #1
slinx
Member
 
Registered: Apr 2008
Location: Cleveland, Ohio
Distribution: SuSE, CentOS, Fedora, Ubuntu
Posts: 106

Rep: Reputation: 23
kickstart problem - "Unable to locate partition sda1 to use for None"


Hello,

I am trying to do a kickstart install with md raid devices, where the partitions are exact specific sizes. I tried specifying sizes with the part command, I've tried to use a %pre script to use sfdisk. With this ks, I get the error "Unable to locate partition sda1 to use for None" on a pop-up in the graphical phase:

Here's the partition definition
Code:
clearpart --all
part raid.1 --noformat --onpart sda1 
part raid.7 --noformat --onpart sdb1
part raid.8 --noformat --onpart sdb2
part raid.2 --noformat --onpart sda2
part raid.9 --noformat --onpart sdb3
part raid.3 --noformat --onpart sda3
part swap --onpart sda5 
part swap --onpart sdb5
part raid.12 --noformat --onpart sdb6 
part raid.6 --noformat --onpart sda6 
raid /home --fstype ext3 --level=RAID1 raid.6 raid.12
raid /usr --fstype ext3 --level=RAID1 raid.2 raid.8
raid /var --fstype ext3 --level=RAID1 raid.3 raid.9
raid / --fstype ext3 --level=RAID1 raid.1 raid.7
Here's the %pre section:
Code:
%pre

#!/bin/sh

sfdisk << EOF
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       63, size=  4128642, Id=fd
/dev/sda2 : start=  4128705, size= 12193335, Id=fd
/dev/sda3 : start= 16322040, size= 10233405, Id=fd, bootable
/dev/sda4 : start= 26555445, size=  8980335, Id= 5
/dev/sda5 : start= 26555508, size=  2120517, Id=82
/dev/sda6 : start= 28676088, size=  6120702, Id=fd
EOF

sfdisk << EOF
# partition table of /dev/sdb
unit: sectors

/dev/sdb1 : start=       63, size=  4128642, Id=fd
/dev/sdb2 : start=  4128705, size= 12193335, Id=fd
/dev/sdb3 : start= 16322040, size= 10233405, Id=fd, bootable
/dev/sdb4 : start= 26555445, size=  8980335, Id= 5
/dev/sdb5 : start= 26555508, size=  2120517, Id=82
/dev/sdb6 : start= 28676088, size=  6120702, Id=fd
EOF
But if I put the definitions in the partitioning section, I get an error in the text phase that says "RunTimeError: Tried to use undefined partition in RAID specification":
Code:
clearpart --all
part sda1 --ondrive sda --start 63 --end 4128704
part sdb1 --ondrive sdb --start 63 --end 4128704
part sdb2 --ondrive sdb --start 4128705 --end 16322039
part sda2 --ondrive sda --start 4128705 --end 16322039
part sdb3 --ondrive sdb --start 16322040 --end 26555444
part sda3 --ondrive sda --start 16322040 --end 26555444
part sda5 --fstype swap --ondrive sda --start 26555508 --end 28676087
part sdb5 --fstype swap --ondrive sdb --start 26555508 --end 28676087
part sdb6 --ondrive sdb --start 28676088 --end 34796790
part sda6 --ondrive sda --start 28676088 --end 34796790

raid /home --fstype ext3 --level=RAID1 sda6 sdb6
raid /usr --fstype ext3 --level=RAID1 sda2 sdb2
raid /var --fstype ext3 --level=RAID1 sda3 sdb3
raid / --fstype ext3 --level=RAID1 sda1 sdb1
How can I create md devices in the kickstart?

Thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting bash to login as root and recognize commands like "vi" and "locate" ajaygoeslinux Linux - Software 4 05-04-2009 10:51 PM
Can't locate object method "splitpath" via package "PACK001" at /usr/lib/perl5/5.8.8/ sajigeorge Linux - Software 1 01-11-2009 06:33 AM
Kickstart install error "Unable to read group information from repositories" GGGav Fedora 1 02-07-2008 01:40 PM
mplayer unable to locate the existing file "drv4.so.6.0" nissen Linux - Software 3 06-27-2007 01:31 AM
Can't locate object method "splitpath" via package "File::Spec" RobJohnston Linux - General 2 06-28-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration