LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-11-2012, 03:07 PM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Question Giving cylinders in kickstart file - CentOS 6.2


Dear All,

I am writing a kickstart file for RHEL/CentOS 6.2 and was wondering if I can give start and end cylinders for a partition.

I was trying to use options "--start" and "--end" given here (though I know this is for RHEL/CentOS 4), and got below error on the console

Code:
--start option does not take a value
Please suggest to overcome this for RHEL/CentOS 6.2, for RHEL/CentOS 5.X below works fine.
Code:
part /boot --fstype ext3 --start=1 --end=15 --ondisk=sda

Last edited by vikas027; 06-12-2012 at 04:51 AM. Reason: Added some more details
 
Old 06-12-2012, 08:34 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,461

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
Wouldn't you be better off just specifying a partition size? You can't rely on disk geometry being the same across all platforms.
 
Old 06-13-2012, 04:39 AM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Original Poster
Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by TenTenths View Post
Wouldn't you be better off just specifying a partition size? You can't rely on disk geometry being the same across all platforms.
Hi TenTenths,

Thanks for reply. Yes, I am trying to configure partition to by specifying the cylinder size as in the customer's environment disk geometry (VM disks) are of same size. Also, he is somehow not happy seeing the below bold line in fdisk output. I know this does no harm but you know customer is always right

Quote:
# fdisk -l /dev/sda

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000dd798

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 3917 31353856 8e Linux LVM
Any ideas to overcome this via kickstart, I found one option to specify cylinder size by --start and --end but these options are not available for CentOS/RHEL 6.X.
 
Old 06-13-2012, 05:00 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,461

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
Then that's your answer to the customer:
  1. Disk geometry doesn't really matter now, partitions do not need to start / end on a cylinder border.
  2. Point 1 is even LESS important on a VM as there is no relationship between a VM disk and the physical layout.
  3. Because of point 1 and point 2 RedHat/CentOS no longer feel the need to support specifying cylinders.
If the customer STILL has problems then the best you can do is calculate the exact size of partition needed to fill his mythical boundry and specify that.
 
Old 06-13-2012, 10:40 AM   #5
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Original Poster
Rep: Reputation: 107Reputation: 107
Thumbs up

Hi TenTenths/All,

I solved the issue by manually sizing the /boot partition in the pre section through parted command.

Code:
%pre
parted -s /dev/sda mklabel msdos
parted -s /dev/sda unit s mkpart primary ext2 63        240974
%end
and changing the below line
Code:
part /boot --fstype ext4 --size=100 --ondisk=sda --asprimary
to
Code:
part /boot --fstype ext2 --onpart=sda1 --asprimary
Thanks for your help.
 
1 members found this post helpful.
  


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
Error with CentOS Kickstart file? your_shadow03 Linux - Newbie 4 06-26-2014 04:44 AM
Kickstart within ISO - CentOS mathrisk Linux - Software 1 03-16-2012 04:30 PM
centos kickstart problem xiutuo Linux - General 10 05-12-2010 01:07 AM
Kickstart Error Error opening kickstart file (null): bad address Latitude Linux - Networking 0 06-03-2009 11:20 AM
Reason for putting a file-system on the outer cylinders of an HDD jonhanna Linux - Newbie 7 12-12-2008 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:48 AM.

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