LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
LinkBack Search this Thread
Old 01-26-2012, 11:21 PM   #1
linux_us
LQ Newbie
 
Registered: Jan 2010
Posts: 14

Rep: Reputation: 0
ignoredisk not working in kickstart upgrade mode


I tried to using kickstart to do server upgrade from RHEL4.8 to RHEL 5.5 automatically, non-interactive.

I have two internal disks:
sda --- OS disk
sdb --- application disk
"sdb" is under LVM control, which has LVM info in second sector, I didn't do "parted" to label sdb before I run "pvcreate", so there is nothing on first sector on sdb, which caused the anaconda not happy, and kickstart did not honor "ignoredisk" option, I always got:

Welcome to Red Hat +--------------+ Warning +--------------+ | | | The partition table on device sdb ^ | | (ATA HITACHI HDS7225S 238465 MB) # | | was unreadable. : | | To create new partitions it must : | | be initialized, causing the loss : | | of ALL DATA on this drive. : | | : | | This operation will override any : | | previous installation choices : | | about which drives to ignore. : | | : | | Would you like to initialize this v | | | | +-----+ +----+ | | | Yes | | No | | | +-----+ +----+ | | | | | +---------------------------------------+

I need to select "No" to continue the upgrade. Which is annoying, I want automatically do the upgrade. BTW, after I select "No", the upgrade worked well.

Here is my kickstart profile:
lang en_US.UTF-8
keyboard us
ignoredisk --only-use=sda
bootloader --location=mbr
clearpart --none
upgrade
url --url http://192.168.1.100/repository/rhel..._64/os/server/
skipx
text
reboot

and I tried the following options:
clearpart --none --drives=sda
clearpart --none without --initlabel --drives=sdb

and I did not get the initalize popped up window, but it did not hornor "without" either, it still touched the first sector of sdb, which I don't want it.

I need help to make the kickstart to ignore the disk "sdb" during upgrade process, or automatically feed "no" to the disk initialize question from the kickstart profile.

Last edited by linux_us; 01-26-2012 at 11:22 PM.
 
Old 01-27-2012, 05:36 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,047

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
You shouldn't need the ignoredisk or clearpart lines at all, the default is not to touch any disks/partitions - try removing the lines and see if it works.
 
Old 01-27-2012, 11:48 AM   #3
linux_us
LQ Newbie
 
Registered: Jan 2010
Posts: 14

Original Poster
Rep: Reputation: 0
kbp, thx for you suggestion. I tried the upgrade without "ignoredisk" and "clearpart",
I still got the disk initialize prompt.

Any more ideas?
 
Old 01-30-2012, 06:52 PM   #4
linux_us
LQ Newbie
 
Registered: Jan 2010
Posts: 14

Original Poster
Rep: Reputation: 0
I installed anaconda-, and anaconda-runtime on my server,
and I didn't find "ignoredisk" in /usr/lib/anaconda/upgrade.py,
and Redhat does not support ignoredisk with upgrade.

So now I need to find a way to auto feed the "NO" answer to
disk initialize prompt during upgrade.
Anybody has any ideas?

Thanks in advance.

Last edited by linux_us; 01-30-2012 at 07:10 PM.
 
Old 01-30-2012, 10:12 PM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,047

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
It looks a lot like this bug, but maybe it didn't get fixed in 5.5 (no result listed), can you try upgrading to 5.8 ?
 
Old 01-31-2012, 11:58 AM   #6
linux_us
LQ Newbie
 
Registered: Jan 2010
Posts: 14

Original Poster
Rep: Reputation: 0
kbp, thanks for your suggestion.
I have already tried 5.7, same results.
I'll try 5.8 beta today.
 
Old 02-01-2012, 12:06 PM   #7
linux_us
LQ Newbie
 
Registered: Jan 2010
Posts: 14

Original Poster
Rep: Reputation: 0
I tried 5.8, same result.

and I dug around the python script for this annoying prompt:
/usr/lib/anaconda/partedUtils.py

else:
deviceFile = isys.makeDevInode(drive, "/dev/" + drive)
dev = parted.PedDevice.get(deviceFile)

msg = _("The partition table on device %s (%s %-0.f MB) was unreadable.\n"
"To create new partitions it must be initialized, "
"causing the loss of ALL DATA on this drive.\n\n"
"This operation will override any previous "
"installation choices about which drives to "
"ignore.\n\n"
"Would you like to initialize this drive, "
"erasing ALL DATA?") % (drive, dev.model, getDeviceSizeMB (dev),)

rc = intf.messageWindow(_("Warning"), msg, type="yesno")

if rc != 0:
return True

self._removeDisk(drive)
return False

Anybody knows how to auto feed the answer "no" from the kickstart profile?
 
Old 02-01-2012, 04:00 PM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,047

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
There is no options as far as I can tell, the problem is that it wasn't fixed due to a lack of response so it really depends on how quickly you want it resolved.

- add to the bugzilla and become a contact
or:
- hack the anaconda files yourself and repackage
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"ignoredisk --drives=sdb etc" kickstart option doesn't work when re-installing RHEL 5 thechic Linux - Enterprise 2 06-01-2010 06:57 AM
Minimal centos via kickstart not working abcdefg Red Hat 5 11-01-2008 12:11 PM
eth0 not working in SMP kernel mode (but works in UP mode!) jorgeluis Linux - Networking 2 11-27-2007 08:46 AM
eth0 not working in SMP kernel mode (but works in UP mode!) jorgeluis Red Hat 1 11-26-2007 12:33 PM


All times are GMT -5. The time now is 04:26 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration