mirror of
https://github.com/tiyn/wiki.git
synced 2025-11-27 05:39:45 +01:00
linux: added further guides for disk management and for raid
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
# Disk Management
|
||||
|
||||
This entry focusses on non-LVM and non-MDADM storage.
|
||||
For [LVM](lvm.md) and [MDADM](./mdadm.md) there are separate entries.
|
||||
|
||||
## Create Partition
|
||||
|
||||
In the following it is assumed that the disk is `/dev/sda`
|
||||
|
||||
- open up parted with `parted /dev/sdd`
|
||||
- if not already done create a partition table with `mklabel GPT`
|
||||
- create a primary partition (ext4 format) with `mkpart primary 2048s 100%`
|
||||
- `quit` parted
|
||||
|
||||
## Grow non-LVM ext4 partition
|
||||
|
||||
ATTENTION: Please note that the partition to enlarge has to be the last one with
|
||||
the free space after it.
|
||||
|
||||
SSH into the VM.
|
||||
|
||||
- run `lsblk` check if the disk size has changed
|
||||
- if not `reboot` the machine
|
||||
|
||||
In the following it is assumed that the partition to enlarge is `/dev/sda2`
|
||||
|
||||
- change the size of the partition with `parted /dev/sda`
|
||||
|
||||
Reference in New Issue
Block a user