LinuxQuestions.org
Visit Jeremy's Blog.
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 09-15-2009, 06:19 AM   #1
itsakc
LQ Newbie
 
Registered: May 2007
Location: Bangalore
Distribution: RedHat, Suse, OEL, Ubuntu
Posts: 25

Rep: Reputation: 15
Problem while creating PV on iSCSI disk.


Hi
I have a system running rhel5 which is set to identify a couple of iSCSI disks of size 5TB each. I want to create a volume group using these and use the space via LVM.

Device Boot Start End Blocks Id System
Disk /dev/sda: 5398.5 GB, 5398593536000 bytes
255 heads, 63 sectors/track, 656341 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sda doesn't contain a valid partition table

Disk /dev/sdb: 5398.5 GB, 5398593536000 bytes
255 heads, 63 sectors/track, 656341 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table

I created linux lvm partition (8e) on them with default values.

When I create PV on them with the default values the size of the PVs are only 2TB each.

Question - How to use the 5TB space on each iscsi disk?

Thanks
Arun
 
Old 09-15-2009, 07:14 AM   #2
itsakc
LQ Newbie
 
Registered: May 2007
Location: Bangalore
Distribution: RedHat, Suse, OEL, Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
Some more Info

I tried removing a pv and recreate it noticing the default values carefully while allocating size .. this is what I found while using fdisk on /dev/sda

Partition number (1-4): 1
First cylinder (1-656341, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-267349, default 267349): 656341
Value out of range.


When I enter the last cylinder number i.e 656341 , it says value out of range.

Please help.
 
Old 09-15-2009, 07:35 AM   #3
itsakc
LQ Newbie
 
Registered: May 2007
Location: Bangalore
Distribution: RedHat, Suse, OEL, Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
Limitation of fdisk!!!

Maybe I should use 'parted' instead of fdisk . But I have not used that before , and dont know how to create the partition with that and also how to mark the partition as Linux LVM -8e.
Some guidance would be much appreciated.
 
Old 09-17-2009, 10:13 AM   #4
itsakc
LQ Newbie
 
Registered: May 2007
Location: Bangalore
Distribution: RedHat, Suse, OEL, Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
Its a limitation of fdisk

It is a limitation of fdisk and the way out is to use parted.
Steps are as below:

#parted /dev/sda
mklabel gpt
New disk label type? [msdos]? gpt
mkpart primary ext3 1 100%
quit

-----
 
  


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
problem creating bootable disk for SLED 11DVD bcbotha Suse/Novell 1 09-08-2009 11:17 AM
LVM doesent updates pvsize if pv is iscsi disk and size is increased on target side devkpict Linux - Software 3 07-06-2009 11:01 AM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 02:02 AM
Creating an ISO from a Disk(Unreal Tournament 2003 Disk 2) Mustard010 Linux - General 15 11-12-2003 07:45 AM
problem creating boot disk suneet123 Linux - Software 1 10-13-2002 01:33 PM


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