Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[ubuntu] Increase one lvm partition, remove another question

$
0
0
Hi all,

I currently have 2 LVMs that I need to resize, other remove.

This is on Ubuntu18LTS,

One LVM has 2 active webservers running, other is empty, both are ext4

Code:

--- Logical volume ---
  LV Path                /dev/LVG/vmstorage
  LV Name                vmstorage
  VG Name                LVG
  LV UUID                Tk18eD-kT1s-RJaX-jSZ8-E0Oc-3QRf-ybNVo4
  LV Write Access        read/write
  LV Creation host, time serv, 2019-11-18 20:18:17 -0700
  LV Status              available
  # open                1
  LV Size                500.00 GiB
  Current LE            128000
  Segments              3
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          253:9
 
  --- Logical volume ---
  LV Path                /dev/LVG/vmbackup
  LV Name                vmbackup
  VG Name                LVG
  LV UUID                6j6gZY-NKNc-BnGd-N1X3-1CTi-Sufg-OOfOhG
  LV Write Access        read/write
  LV Creation host, time serv, 2019-11-22 15:12:50 -0700
  LV Status              available
  # open                1
  LV Size                500.00 GiB
  Current LE            128000
  Segments              3
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          253:10

I would to remove the "vmbackup" LVM completely, and increase the "VMstorage" by 500GIG to 1000GIG (1Tera)

Here is the fstab:

Code:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
/dev/mapper/LVG-root /              ext4    errors=remount-ro 0      1
/dev/mapper/LVG-bak /bak            ext4    defaults        0      2
# /boot was on /dev/sda1 during installation
UUID=149dbd96-62a6-4481-a1b4-0da7b1bfafbc /boot          ext2    defaults        0      2
/dev/mapper/LVG-home /home          ext4    defaults        0      2
/dev/mapper/LVG-opt /opt            ext4    defaults        0      2
/dev/mapper/LVG-srv /srv            ext4    defaults        0      2
/dev/mapper/LVG-tmp /tmp            ext4    defaults        0      2
/dev/mapper/LVG-usr /usr            ext4    defaults        0      2
/dev/mapper/LVG-var /var            ext4    defaults        0      2
/dev/LVG/vmstorage  /var/vmstorage  ext4    rw,noatime      0      0
/dev/LVG/isostorage /var/isostorage ext4    rw,noatime      0      0
/dev/LVG/vmbackup  /var/vmbackup  ext4    rw,noatime      0      0
/opt/swapfile20g    none            swap    sw              0      0

Never done this before, and google results show several different ways that I don't know which one would be most secure.

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>