Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· openaiHugging Face Suzhen/CodeChat

I did lvcreate --size <sizeinbytes> --name <lvname> <vgname>., but I get volume too…

  1. User

    I did lvcreate --size <size_in_bytes> --name <lv_name> <vg_name>., but I get volume too large (18.55 PiB) for extent size 4.00 MiB. upper limit is less than < 16.00 PiB.". Concisely tell me how to solve this.

  2. Assistant

    To solve this issue, you need to increase the extent size to a larger value that can accommodate the desired volume size. Here's how you can do it:

    1. Calculate the required extent size based on the desired volume size.

      • Divide the desired size by the maximum number of logical extents allowed in the volume group (VG). You can find this value using the command vgdisplay <vg_name>.
      • For example, if the desired size is 20 PiB and the maximum number of extents is 4,294,967,295, the extent size would be 20 PiB / 4,294,967,295 = 4.659 TB.
    2. Change the extent size using the vgchange command:

      vgchange --maxphysicalvolumesize <new_extent_size> <vg_name>
      
    3. Retry creating the logical volume using the lvcreate command you mentioned earlier.

  3. User

    Be more concise than that.

  4. Assistant

    To solve the "volume too large for extent size" issue:

    1. Calculate the required extent size based on the desired volume size.
    2. Use the vgchange command to change the extent size:
    vgchange --maxphysicalvolumesize <new_extent_size> <vg_name>
    
    1. Retry creating the logical volume using the lvcreate command.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.