Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How can I make ubuntu--vg-ubuntu--lv consume the entire disk space available?

# Increase the Physical Volume (pv) to max size
pvresize /dev/sda3

# Expand the Logical Volume (LV) to max size to match
lvresize -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

# Expand the filesystem itself
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

# Double check the path name in /dev/mapper it may be slightly different than how I typed it out. The double-dash has special meaning in LVM names and don't always show up on disk in /dev that way.
# After you run the first command, it'll increase the PV size which is immediately made available to the Volume Group (VG) that the LV is part of.
# It's always a 4-part thing: disk partition -> PV -> VG -> LV
Comment

PREVIOUS NEXT
Code Example
Shell :: git add symlink alias link file folder 
Shell :: carrige return in bat file 
Shell :: odoo web/static 404 
Shell :: run image docker ubunt with port 
Shell :: install heroku cli plugin - heroku-release-retry 
Shell :: upgrade r from consele 
Shell :: powershell read registry value remote computer 
Shell :: change linux root max file descriptors 
Shell :: snap opera mini install ubuntu 
Shell :: how to zip a unzipped folder mac terminal 
Shell :: Error: Error: rpmdb open failed 
Shell :: ctrl+z equivalent in vim 
Shell :: how to download bangla font in ubuntu 
Shell :: ps create empty file 
Shell :: install bpytop arch linux 
Shell :: file transfer disabled by policy 
Shell :: figma edge 
Shell :: linux c programming for loop 
Shell :: GOOGLE_CREDENTIALS to the terraform Cloud workspace 
Shell :: linux move to trash command line 
Shell :: Unknown lifecycle phase ".surefire.debug". 
Shell :: why i cant choose to install window 10 pro when installing 
Shell :: raspberry software installeren 
Shell :: install Llms on Ubuntu 
Shell :: how to monitor my applications net http traffic locally in terminal 
Shell :: po to mo ubuntu 
Shell :: comand for insalling playonlinux 
Shell :: can you upgrade processort without reinstalling proxmox 
Shell :: bitnami wordpress maximum upload file size 40 mb 
Shell :: split disk image dmg 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =