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 |
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. |
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. |
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 ----- |
All times are GMT -5. The time now is 09:52 AM. |