ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Attempting to increase the size of a Linux LVM Disk

    Scheduled Pinned Locked Moved IT Discussion
    40 Posts 5 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Have you expanded the filesystem yet?

      wirestyle22W 1 Reply Last reply Reply Quote 0
      • wirestyle22W
        wirestyle22 @scottalanmiller
        last edited by wirestyle22

        @scottalanmiller

        resize2fs /dev/mapper/centos-root

        [root@localhost ~]# resize2fs /dev/mapper/centos-root 3.91T
        resize2fs 1.42.9 (28-Dec-2013)
        resize2fs: Bad magic number in super-block while trying to open /dev/mapper/centos-root
        Couldn't find valid filesystem superblock.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          That's not good. Try it with the -p flag.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            What filesystem do you have? Could it be XFS?

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              If XFS the command syntax is...

              xfs_growfs /mount/point -D size
              
              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller
                last edited by

                It's XenServer, we are expecting EXT4 here, right?

                wirestyle22W 1 Reply Last reply Reply Quote 0
                • wirestyle22W
                  wirestyle22 @scottalanmiller
                  last edited by wirestyle22

                  @scottalanmiller Correct

                  1 Reply Last reply Reply Quote 0
                  • wirestyle22W
                    wirestyle22
                    last edited by wirestyle22

                    Is this improper syntax?

                    0_1490310743055_whatever.JPG

                    stacksofplatesS 1 Reply Last reply Reply Quote 0
                    • stacksofplatesS
                      stacksofplates @wirestyle22
                      last edited by

                      @wirestyle22 said in Attempting to increase the size of a Linux LVM Disk:

                      Is this improper syntax?

                      0_1490310743055_whatever.JPG

                      Try +3.91.

                      Also, why not have the data on its own volume? It's more flexible that way.

                      1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates
                        last edited by

                        If the +doesn't work you will have to add it to the existing size. So if its 5TB it would be 8.91

                        1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller
                          last edited by

                          Just appears that the size is too small.

                          wirestyle22W 1 Reply Last reply Reply Quote 0
                          • wirestyle22W
                            wirestyle22 @scottalanmiller
                            last edited by

                            @scottalanmiller That confuses me because each is 1.9T

                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @wirestyle22
                              last edited by scottalanmiller

                              @wirestyle22 said in Attempting to increase the size of a Linux LVM Disk:

                              @scottalanmiller That confuses me because each is 1.9T

                              Why? Your total from your LVS command looks like 3.89TB but you are trying to expand to 3.91TB.

                              wirestyle22W 1 Reply Last reply Reply Quote 0
                              • wirestyle22W
                                wirestyle22 @scottalanmiller
                                last edited by wirestyle22

                                @scottalanmiller LVS is 3.89T

                                0_1490314853970_LVS.JPG

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller
                                  last edited by

                                  I edited while you were typing. I read the wrong field. But it is still too small. The FS must be smaller than the container holding it.

                                  wirestyle22W 1 Reply Last reply Reply Quote 0
                                  • wirestyle22W
                                    wirestyle22 @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in Attempting to increase the size of a Linux LVM Disk:

                                    I edited while you were typing. I read the wrong field. But it is still too small. The FS must be smaller than the container holding it.

                                    How much smaller? even 3.86 kicks back the same error

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @wirestyle22
                                      last edited by

                                      @wirestyle22 said in Attempting to increase the size of a Linux LVM Disk:

                                      @scottalanmiller said in Attempting to increase the size of a Linux LVM Disk:

                                      I edited while you were typing. I read the wrong field. But it is still too small. The FS must be smaller than the container holding it.

                                      How much smaller? even 3.86 kicks back the same error

                                      Try something like 3.4TB. Remember FS overhead.

                                      wirestyle22W 1 Reply Last reply Reply Quote 0
                                      • wirestyle22W
                                        wirestyle22 @scottalanmiller
                                        last edited by

                                        @scottalanmiller said in Attempting to increase the size of a Linux LVM Disk:

                                        @wirestyle22 said in Attempting to increase the size of a Linux LVM Disk:

                                        @scottalanmiller said in Attempting to increase the size of a Linux LVM Disk:

                                        I edited while you were typing. I read the wrong field. But it is still too small. The FS must be smaller than the container holding it.

                                        How much smaller? even 3.86 kicks back the same error

                                        Try something like 3.4TB. Remember FS overhead.

                                        0_1490315027487_etc.JPG

                                        1 Reply Last reply Reply Quote 0
                                        • wirestyle22W
                                          wirestyle22
                                          last edited by

                                          Does the + reflect the entire size or just the amount of growth?

                                          1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller
                                            last edited by

                                            -D goes to total. Do the command instead with the -d option and no number...

                                            xfs_growfs /dev/mapper/centos-root -d
                                            
                                            wirestyle22W 1 Reply Last reply Reply Quote 2
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post