ITS-Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Festplatte erweitern im DRBD und VM

    Scheduled Pinned Locked Moved IT-Stuff
    1 Posts 1 Posters 585 Views 1 Watching
    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.
    • A Offline
      admin
      last edited by admin

      Zu erst müssen wir die Volume Group auf den Hosts erweitern mit:

      lvextend -L +10G /dev/mapper/cl-dockerqs
      

      Dann dem drbd sagen das er die checken soll mit :

      drbdadm resize dockerqs
      

      Jetzt haben wir in der VM 10 GB mehr unpartionierten Speicher.

      Disk /dev/vda: 64.4 GB, 64422506496 bytes, 125825208 sectors
      Units = sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disk label type: dos
      Disk identifier: 0x000e6c77
      
         Device Boot      Start         End      Blocks   Id  System
      /dev/vda1   *        2048     2099199     1048576   83  Linux
      /dev/vda2         2099200   104854327    51377564   8e  Linux LVM
      

      Jetzt müssen wir eine Partition erweitern mit:

      parted -s /dev/vda resizepart 2 '100%'
      
      Disk /dev/vda: 64.4 GB, 64422506496 bytes, 125825208 sectors
      Units = sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disk label type: dos
      Disk identifier: 0x000e6c77
      
         Device Boot      Start         End      Blocks   Id  System
      /dev/vda1   *        2048     2099199     1048576   83  Linux
      /dev/vda2         2099200   125825207    61863004   8e  Linux LVM
      

      Anschließend die das Physical Volume erweitern:

      pvresize /dev/vda2
      
        Physical volume "/dev/vda2" changed
        1 physical volume(s) resized or updated / 0 physical volume(s) not resized
      

      Zum Schluss können wir endlich das Volume erweitern:

      lvextend --resizefs -L +10G /dev/mapper/centos-root
      
        Size of logical volume centos/root changed from 10.00 GiB (2560 extents) to 20.00 GiB (5120 extents).
        Logical volume centos/root successfully resized.
      

      Grüße

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      Powered by NodeBB | Contributors