lvm
Placeholder for a future LVM disk setup. It currently only logs the call and exits with status 1; it changes nothing on the server
- Command:
/go/lvm - Category: Storage
- Status: Not implemented (reserved)
- Required arguments: None
- Output: None
- Exit status: Always
1 - Log:
/var/log/go/lvm.log - Last updated: 2026-11-20
On this page: Overview · Quick start · Syntax · Output · Examples · Troubleshooting · Details · See also
Overview
/go/lvm is reserved for a future command that would set up LVM (Logical Volume Manager) storage, meaning several physical disks combined into one larger volume.
Right now it does nothing. When you run it, it writes one line to its log and stops with exit status 1. It does not install software, touch any disk, or change any file. The notes that follow the exit in the script are never run.
You can safely run it by mistake. The command exists so that the name lvm is taken and so that the plan for the future setup is kept in one place (see Planned setup).
Quick start
/go/lvm
Nothing is printed. The only effect is a new line in /var/log/go/lvm.log.
Syntax
/go/lvm
The command takes no arguments. Anything you add is written to the log and otherwise ignored.
Output
| Outcome | What you get |
|---|---|
| Any run | No output, exit status 1. |
The exit status is 1 even though no error happened. A script that runs /go/lvm will treat the call as failed.
Each call is logged with a timestamp, for example:
[Nov 20 10:15:02]# lvm
Examples
# Run it and look at the exit status
/go/lvm; echo $?
1
# See the calls that were logged
cat /var/log/go/lvm.log
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
The command prints nothing and returns 1 |
This is how the placeholder works. | Nothing to fix. |
| LVM isn't installed and no volume was created | The command doesn't do any of that yet. | Set up LVM by hand, following your distribution's documentation. |
| You want to see which disks you have | Not part of this command. | Run lsblk and speed. |
[!WARNING] If you set up LVM by hand, identify the disks with
lsblkfirst./dev/sdais very often the disk the operating system runs from, and turning a disk into an LVM physical volume destroys the data on it.
Details
What the script does today
- Logs the call to
/var/log/go/lvm.log. - Exits with status
1.
Planned setup (not run)
The script keeps a draft of what the command might do one day. None of this runs.
| Step | Draft action |
|---|---|
| 1 | Install lvm2 with apt (Debian and Ubuntu only) and start the service. |
| 2 | Turn /dev/sda, /dev/sdb, /dev/sdc, and /dev/sdd into LVM physical volumes. |
| 3 | Create one volume group named hdd from those four disks. |
| 4 | Create one logical volume named p01 that uses all the free space. |
| 5 | Format it as ext4. |
| 6 | Create /home2 and mount the volume there. |
| 7 | Add a line to /etc/fstab so the volume mounts at boot. |
The draft also has a commented alternative that mounts the same volume at /var/lib/vz, which is the default storage folder of Proxmox VE. This suggests the command is aimed at servers set up with proxmox.
Before this can be turned into a real command
The draft is a set of notes, not a finished script. If it is implemented, it will need to:
- Choose disks safely. The disk names are fixed in the draft, and it would erase whatever is on them, including a system disk. It needs to detect unused disks and ask for confirmation.
- Handle failures. A volume group spread over four disks has no redundancy. If one disk fails, the data in the volume can be lost.
- Write
/etc/fstabproperly. In the draft, the/etc/fstabline is a bare line, not a command that appends to the file, and would fail if run. - Support more systems. The draft uses
aptonly, and starts LVM with aninit.dscript instead ofsystemctl. - Run as root. Some commands have no
sudo.
See also
| Command | Description |
|---|---|
speed |
Check hard disk type, speed, and health |
proxmox |
Install Proxmox VE |
storage |
Auto-mount the /storage folder on boot using rclone |
quota |
Enable disk quotas in GoAdmio |
s3 |
Mount an S3 bucket on a GoAdmio server |