Outils pour utilisateurs

Outils du site


infrastructure:proxmox_mount_lvm_disk

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
infrastructure:proxmox_mount_lvm_disk [2018/08/01 15:16] – créée ronaninfrastructure:proxmox_mount_lvm_disk [2019/01/10 15:24] (Version actuelle) rguyader
Ligne 1: Ligne 1:
-  export LVMPATH="/dev/vg-sdb/vm-130-disk-1" +<code bash> 
-  lvchange -a y $LVMPATH +export LVMPATH="/dev/vg-sdb/vm-130-disk-1" 
-  /sbin/fdisk -lu $LVMPATH +lvchange -a y $LVMPATH 
-  losetup /dev/loop0 $LVMPATH -o $((XXXXX * 512)) # replace XXXXX by the offset of the partition +/sbin/fdisk -lu $LVMPATH 
-  mkdir /mnt/tmp +losetup /dev/loop0 $LVMPATH -o $((XXXXX * 512)) # replace XXXXX by the offset of the partition 
-  mount /dev/loop0 /mnt/tmp+mkdir /mnt/tmp 
 +mount /dev/loop0 /mnt/tmp 
 +</code> 
 + 
 +# do
      
-  # do +<code bash> 
-   +cd 
-  cd +umount /mnt/tmp 
-  umount /mnt/tmp +losetup -d /dev/loop0 
-  losetup -d /dev/loop0 +lvchange -a n $LVMPATH 
-  lvchange -a n $LVMPATH +</code>
infrastructure/proxmox_mount_lvm_disk.1533136594.txt.gz · Dernière modification : 2018/08/01 15:16 de ronan