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

Les deux révisions précédentesRévision précédente
infrastructure:proxmox_mount_lvm_disk [2019/01/10 15:23] rguyaderinfrastructure:proxmox_mount_lvm_disk [2019/01/10 15:24] (Version actuelle) rguyader
Ligne 1: Ligne 1:
 <code bash> <code bash>
-  export LVMPATH="/dev/vg-sdb/vm-130-disk-1" +export LVMPATH="/dev/vg-sdb/vm-130-disk-1" 
-  lvchange -a y $LVMPATH +lvchange -a y $LVMPATH 
-  /sbin/fdisk -lu $LVMPATH +/sbin/fdisk -lu $LVMPATH 
-  losetup /dev/loop0 $LVMPATH -o $((XXXXX * 512)) # replace XXXXX by the offset of the partition +losetup /dev/loop0 $LVMPATH -o $((XXXXX * 512)) # replace XXXXX by the offset of the partition 
-  mkdir /mnt/tmp +mkdir /mnt/tmp 
-  mount /dev/loop0 /mnt/tmp+mount /dev/loop0 /mnt/tmp
 </code> </code>
  
-  # do+# do
      
 <code bash> <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> </code>
infrastructure/proxmox_mount_lvm_disk.1547133811.txt.gz · Dernière modification : 2019/01/10 15:23 de rguyader