LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 05-21-2018, 12:10 PM   #1
dj_thrive
LQ Newbie
 
Registered: Dec 2016
Location: Huntvsille, AL
Distribution: RedHat 6
Posts: 27

Rep: Reputation: Disabled
Partitioning a new disk in RHEL6


Thanks in advance for your time. I've added a new disk (RAID1) to my RHEL6 Head Node, and plan to use ddcopy to replicate my current file structure on my old disk (4 partitions) over to the new disk. The new disk shows up as /dev/sdb when I type command
Code:
fdisk -i
but when I type command
Code:
parted /dev/sdb
then
Code:
mkpartfs primary ext4 1 200000
I receive the error
Code:
unrecognised disk label
Thanks for any assistance you can provide.
 
Old 05-21-2018, 12:27 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,030

Rep: Reputation: 1787Reputation: 1787Reputation: 1787Reputation: 1787Reputation: 1787Reputation: 1787Reputation: 1787Reputation: 1787Reputation: 1787Reputation: 1787Reputation: 1787
If the drive does not already have a partition table, parted requires that you first use "parted mklabel {type}" to create one.
 
1 members found this post helpful.
Old 05-21-2018, 03:21 PM   #3
dj_thrive
LQ Newbie
 
Registered: Dec 2016
Location: Huntvsille, AL
Distribution: RedHat 6
Posts: 27

Original Poster
Rep: Reputation: Disabled
RE: Partitioning a new disk in RHEL6

Thanks rknichols! I should know this, but what type should I use for a RHEL disk? I plan to partition this disk and use as my new system disk.
 
Old 05-21-2018, 04:10 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 3,018

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
Unless you have a particular reason to use an msdos label and the old fdisk stuff, new disks should use gpt labels and use parted or gfdisk to manage it.
 
1 members found this post helpful.
Old 05-21-2018, 04:38 PM   #5
dj_thrive
LQ Newbie
 
Registered: Dec 2016
Location: Huntvsille, AL
Distribution: RedHat 6
Posts: 27

Original Poster
Rep: Reputation: Disabled
Re: Partitioning a new disk in RHEL6

Thanks, gpt worked just fine. Now my next question;I'm receiving this warning after specifying where to create the partition:

Code:
Warning. You requested a partition from 1048kB to 200GB. The closest location we can manage is 1048kB to 1048kB. Is this still acceptable to you?
To give you some context, here are the commands I entered leading up to this warning:
Code:
mkpart primary
Code:
Filesystem type [ext2]? ext4
Code:
Start? 1
Code:
End? 200000
once I recived the warning, I also tried the following:
Code:
mkpart primary
Code:
Filesystem type [ext2]? ext4
Code:
Start? 1048kB
Code:
End? 200GB
but received the same warning.

Thanks!
 
Old 05-21-2018, 05:43 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,106

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
When in doubt, use real data, not conjecture.
Code:
lsblk -f
sudo parted "print free"
Not sure if that parted command will work on RHEL 6.

But I'm confused - are you currently in RAID1 with (presumably) /devsda ?. Why are you planning on using dd to copy if in RAID1 ?. Hopefully I can get unconfused when you post the output.
 
1 members found this post helpful.
Old 05-22-2018, 07:56 AM   #7
dj_thrive
LQ Newbie
 
Registered: Dec 2016
Location: Huntvsille, AL
Distribution: RedHat 6
Posts: 27

Original Poster
Rep: Reputation: Disabled
RE: Partitioning a new disk in RHEL6

Quote:
Originally Posted by syg00 View Post
When in doubt, use real data, not conjecture.
Code:
lsblk -f
sudo parted "print free"
Not sure if that parted command will work on RHEL 6.

But I'm confused - are you currently in RAID1 with (presumably) /devsda ?. Why are you planning on using dd to copy if in RAID1 ?. Hopefully I can get unconfused when you post the output.
Thanks for your response, I'll give this a try. This is a new RAID1 setup (Virtual Disk 1 in my RAID Config), my OS and other partitions are running on an older, smaller disk/RAID1 (Virtual Disk 0 in the RAID Config). My original partition sizes are screwed up and continue to fill and cause issues, so the end goal is to move copy the data from my original Virtual Disk 0 to this new Virtual Disk 1, with larger partition sizes.
 
Old 10-04-2018, 10:56 AM   #8
dj_thrive
LQ Newbie
 
Registered: Dec 2016
Location: Huntvsille, AL
Distribution: RedHat 6
Posts: 27

Original Poster
Rep: Reputation: Disabled
Thanks all for your time. I worked with RedHat support and was able to get these partitions created and formatted using the following commands:
Code:
# mkfs.ext4 /dev/mapper/mpathdp1
# mkfs.ext4 /dev/mapper/mpathdp2
# mkfs.ext4 /dev/mapper/mpathdp3
Then I added "wwid 36b8ca3a0e743bd00228f18b75911525f " to the appropriate portion of /etc/multipath.conf and ran
Code:
# service multipathd reload
# multipath -v2
# lsblk
Now I need to determine the best way to copy my current system data (including OS) over to these new partitions.
 
  


Reply

Tags
hd, parted, partitions, redhat, rhel6


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
partitioning one disk as more number os disk pandy669@gmail.com Linux - Desktop 11 02-26-2015 11:38 PM
[SOLVED] Disk Partitioning 1MB offset on raw disk munna529 Linux - Newbie 3 07-30-2014 12:59 AM
RHEL6, VMware, shared disk - how to mount to avoid caching? cadet_concept Linux - Server 2 02-06-2013 11:10 AM
[SOLVED] RHEL6/Centos6: How to reserve /dev/sd(letter) disk device names? cadet_concept Linux - Server 4 11-08-2012 04:48 PM
disk re-partitioning..... yanger Linux - General 2 08-29-2005 11:21 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration