Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Centos installation

Posted on 2013-02-06
13
387 Views
Last Modified: 2013-02-13
I have tested the installation of Centos Linux and already installed a HDD with default centos setting. This is the default OS disk

When I use "fdisk" to change the partition, it tells that "Partition 1 does not end on cylinder boundary". Actually, should I need to align the disk first before installing the Centos. How should I do this ? When I boot up the Centos installation disk, it doesn't have the option to install Centos...


I try to install another HDD for data disk. Using fdisk, it ask to create a partition number. What partition number should I use ? Should I use number 1 or 2 ? Does that make any difference ?

Thanks
0
Comment
Question by:AXISHK
  • 7
  • 5
13 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 38862761
You have several options.
You can use raw partitions, 1-4 primary, and then you can use extended/logical partitions.
The alternative is to use LVM.

Aligning the partition "improves performance"
You do not need to align.
You can use Druid during the install to partition the two hard drives.
0
 
LVL 16

Expert Comment

by:choward16980
ID: 38862766
0
 

Author Comment

by:AXISHK
ID: 38863132
Can u drop me the steps (commands), especially on how to add another HDD to the Centos Linux and make it as another logical volme used for data ?

Tks
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 77

Expert Comment

by:arnold
ID: 38864272
post your fdisk -l
df -k

you can use pvcreate /dev/sdb for example
vgcreate newvolumegroup /dev/sdb
vgextend oldvolumegroup /dev/sdb

lvcreate -L xG -n logicalvolume volumegroup
http://www.centos.org/docs/5/html/5.2/Cluster_Logical_Volume_Manager/
0
 

Author Comment

by:AXISHK
ID: 38867103
Successfully installed another HDD. However, I still have no idea how to align the disk for better performance. Any further advise ?

Tks
fdisk.bmp
0
 
LVL 77

Expert Comment

by:arnold
ID: 38867150
Better performance, compared to what.

Alignment is often recommended for high I/O servers I.e. database servers.
Please post the text output rather than images of
df -k
fdisk -l
0
 

Author Comment

by:AXISHK
ID: 38867194
Sorry, can't copy the output into text as the mouse lost control when I click on the VM guest screen.

The data partition will host mysql database..
df.bmp
0
 
LVL 77

Expert Comment

by:arnold
ID: 38867246
Your sda1 ends on 64 which is why it complains.
It is not an issue to worry about,
In the future, you would want to have the partition to end at an 8 multiple minus 1.
63, 71, etc.
0
 

Author Comment

by:AXISHK
ID: 38883488
Thanks. again, how can I make it algin when I issue fdisk and format at the very beginning.

Tks
0
 
LVL 77

Expert Comment

by:arnold
ID: 38884708
End on 63 or x*64-1 for cylinder count.
0
 

Author Comment

by:AXISHK
ID: 38884740
Sorry, I can't get your idea. What should I type when I fdisk the volume / device ?

Tks
0
 
LVL 77

Expert Comment

by:arnold
ID: 38884998
How much space do you want for each partition?
At times, when one specified xMB or xGB the tool would adjust to the closer based on the cylinder boundary.
Other than the annoyance of having it displayed when fdisk -l is run.
More recent consensus that it is not as important these days.
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 38885446
When formatting start the first partition at cylinder 63 and you should not get these not at cylinder boundry.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question