2022-01-16 18:20:39 +00:00
|
|
|
---
|
2022-02-04 08:24:02 +00:00
|
|
|
title: "Xen Volume Management"
|
|
|
|
tags: [ "Documentation", "xe", "virtualization", "volume" ]
|
2022-01-16 18:20:39 +00:00
|
|
|
---
|
2020-01-02 00:04:35 +00:00
|
|
|
# Make a local iso repository
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
mkdir -p */var/opt/xen/ISO_Store*
|
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
xe sr-create name-label=*LocalISO* type=iso device-config:location=*/var/opt/xen/ISO_Store* device-config:legacy_mode=true content-type=iso
|
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|
|
|
|
This creates a UUID for the new directory:
|
|
|
|
|
|
|
|
`e94e25bb-bcdc-801b-b62a-b51b686a3bdc`
|
|
|
|
|
2020-02-24 08:46:06 +00:00
|
|
|
# Main Console
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
xsconsole
|
|
|
|
```
|
2020-02-24 08:46:06 +00:00
|
|
|
|
|
|
|
# Volumes
|
|
|
|
|
|
|
|
List volumes:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
lvs
|
|
|
|
```
|
2020-02-24 08:46:06 +00:00
|
|
|
|
|
|
|
List groups:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
vgs
|
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|