informatique:logiciels:proxmox
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatique:logiciels:proxmox [2025/02/14 14:16] – [Redimensionner la taille du stockage local-lvm] pteu | informatique:logiciels:proxmox [2025/02/28 06:27] (current) – Partager un stockage local entre les LXC pteu | ||
---|---|---|---|
Line 33: | Line 33: | ||
└─pve-data | └─pve-data | ||
</ | </ | ||
- | Proxmox utilise LVM pour organiser les espaces de stockage de la 3e partition nvme0n1p3 : il créé un PV (physical volume), puis un VG (volume group) qui est par défaut divisé en LV (logical volume) pour la partition de swap (LV " | + | Proxmox utilise LVM pour organiser les espaces de stockage de la 3e partition nvme0n1p3 : il créé un PV (physical volume), puis un VG (volume group) qui est par défaut divisé en LV (logical volume) pour la partition de swap (LV " |
N' | N' | ||
Line 149: | Line 149: | ||
+ | =====Partager un stockage local entre les LXC===== | ||
+ | |||
+ | (Inspiré de [[https:// | ||
+ | Pour partager [[informatique: | ||
+ | |||
+ | Dans la conf de chaque LXC : | ||
+ | <code bash> | ||
+ | echo "mp0: / | ||
+ | |||
+ | # uid map: from uid 0 map 1005 uids (in the ct) to the range starting 100000 (on the host), | ||
+ | # so 0..1004 (ct) → 100000..101004 (host) | ||
+ | lxc.idmap = u 0 100000 1005 | ||
+ | lxc.idmap = g 0 100000 1005 | ||
+ | # we map 1 uid starting from uid 1005 onto 1005, so 1005 → 1005 | ||
+ | lxc.idmap = u 1005 1005 1 | ||
+ | lxc.idmap = g 1005 1005 1 | ||
+ | # we map the rest of 65535 from 1006 upto 101006, so 1006..65535 → 101006..165535 | ||
+ | lxc.idmap = u 1006 101006 64530 | ||
+ | lxc.idmap = g 1006 101006 64530" >>/ | ||
+ | </ | ||
+ | |||
+ | Sur le système hôte: | ||
+ | <code bash> | ||
+ | echo " | ||
+ | echo " | ||
+ | chown -R 1005:1005 /mnt/datarv | ||
+ | </ | ||
+ | |||
+ | Puis redémarrer le conteneur: | ||
+ | <code bash> | ||
+ | lxc-stop 100 && lxc-start 100 | ||
+ | </ |
informatique/logiciels/proxmox.1739542570.txt.gz · Last modified: 2025/02/14 14:16 by pteu