1

I am working over RHEL 5.4 and using LVMs over the storage LUNs for storing my files. Each LVM infact reaches the size up to 16TB on ext3 even. And my server is in production. Just for introduction of criticality of the server.

I have created an LVM partition with size 1TB initially. Actually this LVM is formatted with 1K block size which is different from default 4K block size. I achieved this by running the below command.

mkfs.ext3 -b 1024 /dev/mapper/<VGName>-<logical volume>

Now, I would like to increase a 2TB size for the above logical volume and ran the below command

lvextend -L +2T /dev/mapper/<VGName>-<logical volume>

But when I am trying to run resize2fs command as below:

nohup resize2fs /dev/mapper/<VGName>-<logical volume> &

I got the exit status as 1 and if I see in the nohup.out file, I could see the below lines:

resize2fs 1.39 (29-May-2006)
resize2fs: File too large while trying to determine filesystem size

Now, I could not understand how could I increase the size of the LVM partition. I provided you the inputs expecting the change in the block size may be the issue. If that is not the case please let me know for any other requirements.

Suggest me on urgent basis as it is in production.

poige
  • 9,448
  • 2
  • 25
  • 52
  • Why did you make in 1 kb blocks? Especially with flash media or 4k sector disks, you really don't want to do that. – Halfgaar Jun 16 '18 at 17:17

2 Answers2

1

Using mkfs command to change block site and also other utility to change the block site which below: 1) gpart 2) parted

Other option:

root@space:~# mkfs.ext4 –m 0 -b 4096 /dev/rootfs

Nullpointer
  • 164
  • 8
  • The file system type is not ext4 and it is ext3. My doubt is not "how to create a file system with 1k block size". I have already created an LVM and formatted it with 1K block size but now when I am trying to extend it, I could not. My doubt is, is it the problem of the customized block size? – Shashikanth Komandoor Dec 23 '15 at 11:31
1

Given 2 TB of 1K blocks is right at the 2 billion mark, you probably are over the maximum blocks of ext3.

Note that Red Hat suggest 4K block sizes to achieve the max 16TB

John Mahowald
  • 32,050
  • 2
  • 19
  • 34