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

    Disk partitioning- Vmware Linux guest

    IT Discussion
    vmware linux disk partitioning lvm
    4
    32
    8.4k
    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

      With LVM you have the power to easily have multiple partitions for whatever needs you have. This lets you choose different filesystems as needed, as well. You can mix and match filesystems and features for speed, security, flexibility, etc. You can do encryption on a volume rather than on the entire system which is much more powerful, you can use XFS where it is useful, BtrFS where you want, EXT4 when needed... whatever. You can turn on quotas or compression selectively instead of globally.

      1 Reply Last reply Reply Quote 1
      • AmbarishrhA
        Ambarishrh
        last edited by

        I am planning to have the / and /var with LVM ext4, hope i can set only these two as LVM. does that make sense?

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

          @Ambarishrh said:

          I am planning to have the / and /var with LVM ext4, hope i can set only these two as LVM. does that make sense?

          You make a partition that is LVM and then everything under that is the additional volumes. /boot and swap don't go on LVM.

          1 Reply Last reply Reply Quote 1
          • AmbarishrhA
            Ambarishrh
            last edited by

            I completed a test server with LVM. Did a split of /var on a separate disk and also moved /home to that, so that if something fills up this / doesn't get affected.

            Overall it was very easy to extend the disk space and was a very good experience. Thanks once again @scottalanmiller 🙂

            stacksofplatesS 1 Reply Last reply Reply Quote 2
            • stacksofplatesS
              stacksofplates @Ambarishrh
              last edited by

              @Ambarishrh said:

              I completed a test server with LVM. Did a split of /var on a separate disk and also moved /home to that, so that if something fills up this / doesn't get affected.

              Overall it was very easy to extend the disk space and was a very good experience. Thanks once again @scottalanmiller 🙂

              Another good thing to do is leave a small amount of space free (enough to cover the diff) so that you can do a snapshot of the LVM. If you update and it borks something you can revert to the snapshot, or even export the snapshot for a backup.

              Since it's on VMware it's not that big of a deal because you have the snapshots for the vm itself, however on a physical machine it's useful.

              scottalanmillerS 1 Reply Last reply Reply Quote 1
              • AmbarishrhA
                Ambarishrh
                last edited by

                regarding snapshots, this is what i heard from our hosting provider support team.
                He says "big rule.
                DO NOT LEAVE SNAPSHOTS AROUND.
                if it exists for >48 hours, you're doing it wrong.
                I have countelss stories of customers who made a snapshot forgot about it
                3 months later they do a reboot or something and vmware consolidates the disk
                we had a customer with a mission critical vm offline for >24 hours because it took 2 days to consolidate their data
                (was like a 4tb vm)
                snapshots are intended for short term use only"

                stacksofplatesS scottalanmillerS 2 Replies Last reply Reply Quote 0
                • stacksofplatesS
                  stacksofplates @Ambarishrh
                  last edited by

                  @Ambarishrh said:

                  regarding snapshots, this is what i heard from our hosting provider support team.
                  He says "big rule.
                  DO NOT LEAVE SNAPSHOTS AROUND.
                  if it exists for >48 hours, you're doing it wrong.
                  I have countelss stories of customers who made a snapshot forgot about it
                  3 months later they do a reboot or something and vmware consolidates the disk
                  we had a customer with a mission critical vm offline for >24 hours because it took 2 days to consolidate their data
                  (was like a 4tb vm)
                  snapshots are intended for short term use only"

                  Oh ya these are just for short term. For example if you update and it screws something up you can revert. Once you test and make sure it's ok then delete it. I don't know how VMware does snapshots, but with LVM you can also export it. So you can take the snapshot and save it to a file, and if an issue does come up later down the road, you can just dd the file to the LVM again.

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

                    @johnhooks said:

                    @Ambarishrh said:

                    I completed a test server with LVM. Did a split of /var on a separate disk and also moved /home to that, so that if something fills up this / doesn't get affected.

                    Overall it was very easy to extend the disk space and was a very good experience. Thanks once again @scottalanmiller 🙂

                    Another good thing to do is leave a small amount of space free (enough to cover the diff) so that you can do a snapshot of the LVM. If you update and it borks something you can revert to the snapshot, or even export the snapshot for a backup.

                    Since it's on VMware it's not that big of a deal because you have the snapshots for the vm itself, however on a physical machine it's useful.

                    However, it IS useful to be able to do snapshots programatically and uniformly from inside of the OS. There are times that this would make sense and you can do it in a uniform way across physical and virtual machines, across all filesystems, across all hypervisors.

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

                      @Ambarishrh said:

                      regarding snapshots, this is what i heard from our hosting provider support team.
                      He says "big rule.
                      DO NOT LEAVE SNAPSHOTS AROUND.
                      if it exists for >48 hours, you're doing it wrong.
                      I have countelss stories of customers who made a snapshot forgot about it
                      3 months later they do a reboot or something and vmware consolidates the disk
                      we had a customer with a mission critical vm offline for >24 hours because it took 2 days to consolidate their data
                      (was like a 4tb vm)
                      snapshots are intended for short term use only"

                      That is generally true, on VMware. That's a VMware shortcoming. If you are making lots of snaps and just letting them sit around, Vmware isn't going to be happy and eventually will fail, I've seen it.

                      If you are on more advanced systems like Scale, you do not have these kinds of limitations. It's not an intrinsic nature of snapshots to need to be very short term, it is the nature of how VMware implemented them.

                      Even if your snaps don't cause problems down the road, you would still probably not want to just collect them at random. But keeping long term rollbacks is not a big issue. XO even has rolling backups as a standard feature on XenServer.

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

                        @johnhooks said:

                        Oh ya these are just for short term. For example if you update and it screws something up you can revert. Once you test and make sure it's ok then delete it. I don't know how VMware does snapshots, but with LVM you can also export it. So you can take the snapshot and save it to a file, and if an issue does come up later down the road, you can just dd the file to the LVM again.

                        Same with VMware. The creation of snapshots is, under the hood, how their backup API works. When tools like Veeam or Unitrends talk to VMware and tell it that they want to take a backup, Vmware takes a snap for them, exports it to them, then deletes the snap "immediately" so you don't even know that it happened that way.

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

                          @scottalanmiller said:

                          @johnhooks said:

                          Oh ya these are just for short term. For example if you update and it screws something up you can revert. Once you test and make sure it's ok then delete it. I don't know how VMware does snapshots, but with LVM you can also export it. So you can take the snapshot and save it to a file, and if an issue does come up later down the road, you can just dd the file to the LVM again.

                          Same with VMware. The creation of snapshots is, under the hood, how their backup API works. When tools like Veeam or Unitrends talk to VMware and tell it that they want to take a backup, Vmware takes a snap for them, exports it to them, then deletes the snap "immediately" so you don't even know that it happened that way.

                          Good to know. I've never needed to use VMware so I have no experience with it at all.

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

                            @johnhooks said:

                            Good to know. I've never needed to use VMware.

                            And probably you never will.

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

                              @scottalanmiller said:

                              @johnhooks said:

                              Good to know. I've never needed to use VMware.

                              And probably you never will.

                              Hopefully not, but it seems a ton of places around here use it.

                              1 Reply Last reply Reply Quote 0
                              • A
                                Alex Sage @Ambarishrh
                                last edited by

                                @Ambarishrh said:

                                i know there will be questions on why vmware. (that is decided already based on several factors and management decision).

                                Why not XenServer? =P

                                1 Reply Last reply Reply Quote 0
                                • AmbarishrhA
                                  Ambarishrh
                                  last edited by

                                  Well, we are moving from Xen to VmWare! 😞

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

                                    @Ambarishrh said:

                                    Well, we are moving from Xen to VmWare! 😞

                                    That's just sad. Huge loss of features, 20% more hardware needed, loss of community support levels (they still exist, just aren't as good), massive increase in monetary loss. Why would anyone go from the best to the worst voluntarily?

                                    1 Reply Last reply Reply Quote 3
                                    • AmbarishrhA
                                      Ambarishrh
                                      last edited by Ambarishrh

                                      Anyways, i won't lose the joy of using xen as i just upgraded my home server xen and added XO 🙂

                                      1 Reply Last reply Reply Quote 3
                                      • 1
                                      • 2
                                      • 2 / 2
                                      • First post
                                        Last post