ubuntu guide

main
Yik Teng Hie 3 years ago
parent ea33a183eb
commit 339f9c0fc4

@ -25,7 +25,7 @@ $ git init
# http # http
$ git remote add http://dev.mitech.com.sg:3000/mydemo.git $ git remote add http://dev.mitech.com.sg:3000/mydemo.git
# ssh # ssh
$ git remote add ssh://git@dev.mitech.com.sg:222/mydemof.git $ git remote add ssh://git@dev.mitech.com.sg:29419/mydemof.git
# show all remote list # show all remote list
$ git remote $ git remote

@ -0,0 +1,27 @@
# Ubuntu Quick Guide
## Resize VM storage
* [Reference](https://rdr-it.com/en/ubuntu-extend-lvm-partition-and-disk/)
* [Details](https://homenetyth.ddnsking.com/how-to/ubuntu-admin)
```bash
# Expand volume from vmWare, then launch the vm and apply following command
$ grow disk
$ df -h
# list partitions
$ sudo lsblk
# resize sda3 partition
$ sudo growpart /dev/sda 3
# extend PhisycalVolume volume
$ sudo pvresize /dev/sda3
# extend LogicalVolume to all available space
$ sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
# resize filesystem
$ sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
```
Loading…
Cancel
Save