Hi,
I test a rescue plan (in home lab) for personal use only.
Context:
- i have a proxmox cluster
- on vm have an iSCSI for disk storage on a ZFS ZVOL (on FreeNas)
i have did:
- shutdown the VM
- snapshot the ZVOL called here "ORIGIN".
- exported the snaphost from "ORIGIN" to another zvol called here "RESCUE".
I have an other Linux server (with a Cent OS 7 also)
I manually mounted an iSCSI target that expose the ZVOL "RESCUE" (that mean this server didn't boot from this iSCSI disk)
I used "iscsiadm" for achieve that.
I can see that all seems ok :
in /dev/disk/by-path, i have
If i do a fdisk -l i have
So we can see, i have my /dev/sda2 that is a partition that came from my iSCSI target and seems to be an LVM storage.
but now, i try to "mount" the underlying LVM logical volume in order to have access to the files system.
i tried differents way to achieve that
such things like
or even
For checking if all goes well in my copy of the zvol.
I connected a VM on it through iSCSI inside proxmox and start to boot from.
It worked successfully, so my zvol "RESCUE" seems to be ok.
I didn't find the right way to mount my disk file-systems (that can be in read-only in this rescue plan)
If someone have any advice, they are welcomes
Séb.
I test a rescue plan (in home lab) for personal use only.
Context:
- i have a proxmox cluster
- on vm have an iSCSI for disk storage on a ZFS ZVOL (on FreeNas)
i have did:
- shutdown the VM
- snapshot the ZVOL called here "ORIGIN".
- exported the snaphost from "ORIGIN" to another zvol called here "RESCUE".
I have an other Linux server (with a Cent OS 7 also)
I manually mounted an iSCSI target that expose the ZVOL "RESCUE" (that mean this server didn't boot from this iSCSI disk)
I used "iscsiadm" for achieve that.
I can see that all seems ok :
in /dev/disk/by-path, i have
Code:
lrwxrwxrwx 1 root root 9 1 janv. 17:03 virtio-pci-0000:00:0a.0 -> ../../vda
lrwxrwxrwx 1 root root 10 1 janv. 17:03 virtio-pci-0000:00:0a.0-part2 -> ../../vda2
lrwxrwxrwx 1 root root 10 1 janv. 17:03 virtio-pci-0000:00:0a.0-part1 -> ../../vda1
lrwxrwxrwx 1 root root 10 1 janv. 17:03 virtio-pci-0000:00:0a.0-part3 -> ../../vda3
lrwxrwxrwx 1 root root 9 1 janv. 17:03 pci-0000:00:01.1-ata-2.0 -> ../../sr0
drwxr-xr-x 6 root root 120 1 janv. 17:03 ..
lrwxrwxrwx 1 root root 9 1 janv. 17:09 ip-xxx.xx.x.xxx:3260-iscsi-iqn.2016-12.fr.nephri.iscsi:rescue-lun-0 -> ../../sda
lrwxrwxrwx 1 root root 10 1 janv. 17:09 ip-xxx.xx.x.xxx:3260-iscsi-iqn.2016-12.fr.nephri.iscsi:rescue-lun-0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 1 janv. 17:09 ip-xxx.xx.x.xxx:3260-iscsi-iqn.2016-12.fr.nephri.iscsi:rescue-lun-0-part1 -> ../../sda1
drwxr-xr-x 2 root root 200 1 janv. 17:09 .
Code:
Disque /dev/vda : 8589 Mo, 8589934592 octets, 16777216 secteurs
Unités = secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x000cd5f9
Périphérique Amorçage Début Fin Blocs Id. Système
/dev/vda1 * 2048 2099199 1048576 83 Linux
/dev/vda2 2099200 3778559 839680 82 Linux swap / Solaris
/dev/vda3 3778560 16777215 6499328 83 Linux
Disque /dev/sda : 34.4 Go, 34359738368 octets, 8388608 secteurs
Unités = secteur de 1 × 4096 = 4096 octets
Taille de secteur (logique / physique) : 4096 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 1048576 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x000a69be
Périphérique Amorçage Début Fin Blocs Id. Système
/dev/sda1 * 2048 2099199 8388608 83 Linux
/dev/sda2 2099200 67108863 260038656 8e Linux LVM
but now, i try to "mount" the underlying LVM logical volume in order to have access to the files system.
i tried differents way to achieve that
such things like
Code:
#pvscan
No matching physical volumes found
#vgscan
Reading volume groups from cache.
#vgchange -aay
#ssm list
---------------------------------
Device Total Mount point
---------------------------------
/dev/sda 32.00 GB PARTITIONED
/dev/sda1 8.00 GB
/dev/sda2 23.99 GB
/dev/vda 8.00 GB PARTITIONED
/dev/vda1 1.00 GB /boot
/dev/vda2 820.00 MB SWAP
/dev/vda3 6.20 GB /
---------------------------------
---------------------------------------------------------------------
Volume Volume size FS FS size Free TypeMount point
---------------------------------------------------------------------
/dev/vda1 1.00 GB xfs 1014.00 MB 874.03 MB part/boot
/dev/vda3 6.20 GB xfs 6.19 GB 5.01 GB part/
---------------------------------------------------------------------
Code:
#vgimportclone --basevgname /dev/cl /dev/sda2
Failed to find physical volume "/dev/sda2".
Failed to find all devices.
I connected a VM on it through iSCSI inside proxmox and start to boot from.
It worked successfully, so my zvol "RESCUE" seems to be ok.
I didn't find the right way to mount my disk file-systems (that can be in read-only in this rescue plan)
If someone have any advice, they are welcomes
Séb.