{"id":82,"date":"2026-03-03T14:07:47","date_gmt":"2026-03-03T14:07:47","guid":{"rendered":"https:\/\/techtoinou.com\/?p=82"},"modified":"2026-03-03T14:51:13","modified_gmt":"2026-03-03T14:51:13","slug":"comprendre-le-stockage-sous-proxmox-%f0%9f%a4%99","status":"publish","type":"post","link":"https:\/\/techtoinou.com\/?p=82","title":{"rendered":"Proxmox : Le Guide du Stockage et des Permissions (UID\/GID)"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><strong>1. La Hi\u00e9rarchie du Stockage : O\u00f9 sont les fichiers ?<\/strong><\/h3>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Le Montage Physique<\/strong><\/h4>\n\n\n\n<p>C&#8217;est ici que Proxmox &#8220;voit&#8221; vos disques internes. <strong>Exemple de configuration pour ton SSD :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \/etc\/fstab\n# &lt;file system> &lt;mount point> &lt;type> &lt;options> &lt;dump> &lt;pass>\n\/dev\/sdb1 \/mnt\/pve\/SSD1to ext4 defaults 0 2<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Le Cerveau du Stockage<\/strong><\/h4>\n\n\n\n<p>Ce fichier centralise tous vos acc\u00e8s, qu&#8217;ils soient locaux ou sur le r\u00e9seau (NAS). <strong>Exemple pour ton partage CIFS (SMB) et ton Backup NFS :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \/etc\/pve\/storage.cfg\n\ndir: local\n\tpath \/var\/lib\/vz\n\tcontent iso,vztmpl,backup\n\nnfs: BK-NAS-PX\n\texport \/volume1\/Backup_Proxmox\n\tserver 192.168.50.50\n\tcontent backup\n\toptions vers=4.1\n\ncifs: Torrent_Gluetun\n\tpath \/mnt\/pve\/Torrent_Gluetun\n\tserver 192.168.50.50\n\tshare Torrent_Gluetun\n\tcontent images\n\toptions uid=101000,gid=101000,file_mode=0775,dir_mode=0775\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note d&#8217;expert :<\/strong> Remarquez la ligne <code>options<\/code> sur le CIFS. C&#8217;est elle qui permet \u00e0 l&#8217;utilisateur <code>docker<\/code> (ID 1000) de votre container d&#8217;\u00e9crire sur le NAS.<\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Lier le Serveur au Container (Le Point de Montage)<\/strong><\/h3>\n\n\n\n<p>Pour qu&#8217;un container acc\u00e8de \u00e0 un dossier du serveur, on modifie son fichier de configuration. <strong>Fichier : <code>\/etc\/pve\/lxc\/108.conf<\/code><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>arch: amd64\ncores: 2\nhostname: Torrent-Gluetun\nmemory: 2048\nnet0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.50.1,ip=192.168.50.108\/24,type=veth\nostype: debian\nrootfs: local-lvm:vm-108-disk-0,size=8G\nunprivileged: 1\n\n# POINT DE MONTAGE (Le pont entre Proxmox et le Container)\nmp0: \/mnt\/pve\/Torrent_Gluetun,mp=\/downloads\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Comment v\u00e9rifier vos IDs en ligne de commande ?<\/strong><\/h3>\n\n\n\n<p>Si vous avez un doute sur qui poss\u00e8de quoi, utilisez la commande <code>ls -ln<\/code>. Le <code>-n<\/code> est crucial car il affiche les <strong>num\u00e9ros d&#8217;IDs<\/strong> au lieu des noms.<\/p>\n\n\n\n<p><strong>Sur Proxmox (H\u00f4te) :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@pve:~# ls -ln \/mnt\/pve\/Torrent_Gluetun\ndrwxrwxr-x 2 101000 101000 0 Feb 26 15:15 complete\ndrwxrwxr-x 2 101000 101000 0 Feb 26 14:51 incomplete\n<\/code><\/pre>\n\n\n\n<p><em>Ici, on voit clairement l&#8217;ID <strong>101000<\/strong> qui correspond \u00e0 notre mapping.<\/em><\/p>\n\n\n\n<p><strong>\u00c0 l&#8217;int\u00e9rieur du Container :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@pve:~# pct exec 108 -- id docker\nuid=1000(docker) gid=1000(docker) groups=1000(docker)\n<\/code><\/pre>\n\n\n\n<p><em>Le container, lui, ne voit que son ID <strong>1000<\/strong>. La magie de Proxmox fait la conversion de mani\u00e8re invisible !<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. R\u00e9sum\u00e9 : La check-list de survie<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Un fichier ne s&#8217;\u00e9crit pas ?<\/strong> V\u00e9rifiez le <code>uid=101000<\/code> dans <code>storage.cfg<\/code>.<\/li>\n\n\n\n<li><strong>Un disque ne monte pas au boot ?<\/strong> V\u00e9rifiez le <code>\/etc\/fstab<\/code>.<\/li>\n\n\n\n<li><strong>Le container ne voit pas le dossier ?<\/strong> V\u00e9rifiez le <code>mp0<\/code> dans le <code>.conf<\/code> du container.<\/li>\n\n\n\n<li><strong>Envie de tout restaurer ?<\/strong> Gardez une copie de ces trois types de fichiers !<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p>Avec ces exemples de code, vous avez d\u00e9sormais toutes les cl\u00e9s pour configurer un stockage Proxmox robuste et s\u00e9curis\u00e9. Plus d&#8217;erreurs &#8220;Permission Denied&#8221;, seulement un syst\u00e8me qui tourne rond !<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. La Hi\u00e9rarchie du Stockage : O\u00f9 sont les fichiers ? Le Montage Physique C&#8217;est ici que Proxmox &#8220;voit&#8221; vos disques internes. Exemple de configuration pour ton SSD : Le Cerveau du Stockage Ce fichier centralise tous vos acc\u00e8s, qu&#8217;ils soient locaux ou sur le r\u00e9seau (NAS). Exemple pour ton partage CIFS (SMB) et ton [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[6],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-proxmox","tag-proxmox"],"_links":{"self":[{"href":"https:\/\/techtoinou.com\/index.php?rest_route=\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techtoinou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techtoinou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techtoinou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techtoinou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=82"}],"version-history":[{"count":27,"href":"https:\/\/techtoinou.com\/index.php?rest_route=\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":86,"href":"https:\/\/techtoinou.com\/index.php?rest_route=\/wp\/v2\/posts\/82\/revisions\/86"}],"wp:attachment":[{"href":"https:\/\/techtoinou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techtoinou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techtoinou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}