You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
Markdown
41 lines
1.0 KiB
Markdown
# Resize disk
|
|
|
|
* [Reference](https://rdr-it.com/en/ubuntu-extend-lvm-partition-and-disk/)
|
|
* Expand volume
|
|
* grow disk
|
|
df -h
|
|
|
|
* list partitions
|
|
```sh
|
|
$ sudo lsblk
|
|
```
|
|
|
|
* on vmware, expand the disk volume
|
|
* 
|
|
* 
|
|
|
|
* resize sda3 partition
|
|
```sh
|
|
$ sudo growpart /dev/sda 3
|
|
```
|
|
* 
|
|
* 
|
|
|
|
* extend PhysicalVolume volume
|
|
```sh
|
|
$ sudo pvresize /dev/sda3
|
|
```
|
|
* 
|
|
|
|
* extend LogicalVolume to all available space
|
|
```sh
|
|
$ sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
|
|
```
|
|
* 
|
|
|
|
* resize filesystem
|
|
```sh
|
|
$ sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
|
|
```
|
|
* 
|
|
*  |