#3316 Issue closed: Question : Does REAR can backup OracleASM shared disk ?

Labels: support / question, needs sponsorship, external tool, special hardware or VM, no-issue-activity

NewNow479 opened issue at 2024-09-09 00:39:

  • ReaR version ("/usr/sbin/rear -V"): Relax-and-Recover 2.7 / Git

  • OS version ("cat /etc/os-release" or "lsb_release -a" or "cat /etc/rear/os.conf"): RedHatEnterpriseServer 7

  • ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):

This is site.conf from VM 1. The same file exist for VM 2 with AUTOEXCLUDE_DISKS=y

OUTPUT=ISO
OUTPUT_URL=nfs://nfs-server/backup_in/REAR-TEST/

BACKUP=NETFS
BACKUP_PROG=tar
BACKUP_URL=nfs://nfs-server/backup_in/REAR-TEST/
BACKUP_TYPE=incremental

FULLBACKUPDAY="Mon"
AUTOEXCLUDE_DISKS=n
  • Hardware vendor/product = VM on VMWare KVM

  • Firmware = BIOS and bootloader = GRUB

  • Storage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe): Using vSAN (virtual SAN)

  • Storage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,LABEL,SIZE,MOUNTPOINT"):

[root@node1 ~]# lsblk -ip
NAME                          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
/dev/sda                        8:0    0  160G  0 disk
|-/dev/sda1                     8:1    0    1G  0 part /boot
`-/dev/sda2                     8:2    0  159G  0 part
  |-/dev/mapper/rhel-root     253:0    0 56,2G  0 lvm  /
  |-/dev/mapper/rhel-swap     253:1    0    5G  0 lvm  [SWAP]
  |-/dev/mapper/rhel-tmp      253:2    0  4,7G  0 lvm  /tmp
  `-/dev/mapper/rhel-u01      253:3    0 93,1G  0 lvm  /u01
/dev/sdb                        8:16   0   16G  0 disk
`-/dev/sdb1                     8:17   0   16G  0 part
/dev/sdc                        8:32   0   50G  0 disk
`-/dev/sdc1                     8:33   0   50G  0 part
/dev/sdd                        8:48   0   35G  0 disk
`-/dev/sdd1                     8:49   0   35G  0 part
  `-/dev/mapper/vg_app-lv_app 253:4    0   35G  0 lvm  /app
/dev/sr0                       11:0    1 1024M  0 rom
[root@node1 ~]# lsblk -ipf
NAME                          FSTYPE      LABEL UUID                                   MOUNTPOINT
/dev/sda
|-/dev/sda1                   xfs               0dfb72a7-4b5c-40a3-a112-bda4bb86377b   /boot
`-/dev/sda2                   LVM2_member       dkzOm0-K27j-PVot-QXBF-wBvb-qMgx-zXO5UF
  |-/dev/mapper/rhel-root     xfs               a10256eb-2cdd-430e-a80d-3bafbd8c2c44   /
  |-/dev/mapper/rhel-swap     swap              0387eafb-b07e-4b6c-8866-7880c8d1f868   [SWAP]
  |-/dev/mapper/rhel-tmp      xfs               81524856-ac81-4e57-9cc2-6402f2a5767f   /tmp
  `-/dev/mapper/rhel-u01      xfs               d10a1f41-7018-47fc-9f90-ce5e844d317a   /u01
/dev/sdb
`-/dev/sdb1                   oracleasm   OCR1
/dev/sdc
`-/dev/sdc1                   oracleasm   DATA1
/dev/sdd
`-/dev/sdd1                   LVM2_member       C1qVAh-w7oo-KbD4-4I10-8sem-RDGr-FJ4gOJ
  `-/dev/mapper/vg_app-lv_app xfs               c27ebec4-c8e0-4e4a-bc92-b8429a2a1785   /app
  • Description of the issue (ideally so that others can reproduce it):

I have two virtual machines (VMs) created, each connected to an NFS server that can store backup files as tar and ISO files. Each VM has four disks:

  1. /sda: Boot disk.
  2. /sdb: Shared disk for Oracle database.
  3. /sdc: Another shared disk for Oracle database.
  4. /sdd: Shared disk for log files.

The VMs are set up in an active/active cluster configuration. The main goal of this setup is to create a cluster of two or more VMs and to back up the shared disks.

For VM 1, I specified the option AUTOEXCLUDE_DISKS=n in my site.conf file to ensure all my partitions are recreated during recovery.

For VM 2, I set AUTOEXCLUDE_DISKS=y to avoid saving the shared disks, as VM 1 is responsible for this task.

However, I am encountering an issue on VM 1 where /sdb is not partitioned or specified in the disklayout.conf file when I boot from the rescue image with my backup on VM 1, while /sdc is.

Example here of disklayout.conf :

# Disk /dev/sda
# Format: disk <devname> <size(bytes)> <partition label type>
disk /dev/sda 171798691840 msdos
# Partitions on /dev/sda
# Format: part <device> <partition size(bytes)> <partition start(bytes)> <partition type|name> <flags> /dev/<partition>
part /dev/sda 1073741824 1048576 primary boot /dev/sda1
part /dev/sda 170720755712 1074790400 primary lvm /dev/sda2
# Disk /dev/sdb
# Format: disk <devname> <size(bytes)> <partition label type>
disk /dev/sdb 17179869184 msdos
# Partitions on /dev/sdb
# Format: part <device> <partition size(bytes)> <partition start(bytes)> <partition type|name> <flags> /dev/<partition>
# Disk /dev/sdc
# Format: disk <devname> <size(bytes)> <partition label type>
disk /dev/sdc 53687091200 msdos
# Partitions on /dev/sdc
# Format: part <device> <partition size(bytes)> <partition start(bytes)> <partition type|name> <flags> /dev/<partition>
part /dev/sdc 53686042624 1048576 primary none /dev/sdc1
# Disk /dev/sdd
# Format: disk <devname> <size(bytes)> <partition label type>
disk /dev/sdd 37580963840 msdos
# Partitions on /dev/sdd
# Format: part <device> <partition size(bytes)> <partition start(bytes)> <partition type|name> <flags> /dev/<partition>
part /dev/sdd 37579915264 1048576 primary lvm /dev/sdd1

As you can see in this example, there is a missing line for /dev/sdb specifying the partition size, partition start, and type, such as: part /dev/sdb <partition_size> <partition_start> primary none /dev/sdb1.
No partition is specified for /dev/sdb1

I'm also adding diskdeps.conf :

[root@node1 ~]#  cat /var/lib/rear/layout/diskdeps.conf
/dev/sda1 /dev/sda
/dev/sda2 /dev/sda
/dev/sdc1 /dev/sdc
/dev/sdd1 /dev/sdd
/dev/vg_app pv:/dev/sdd1
pv:/dev/sdd1 /dev/sdd1
/dev/rhel pv:/dev/sda2
pv:/dev/sda2 /dev/sda2
/dev/mapper/rhel-root /dev/rhel
/dev/mapper/rhel-swap /dev/rhel
/dev/mapper/rhel-tmp /dev/rhel
/dev/mapper/rhel-u01 /dev/rhel
/dev/mapper/vg_app-lv_app /dev/vg_app
fs:/ /dev/mapper/rhel-root
fs:/tmp /dev/mapper/rhel-tmp
fs:/tmp fs:/
fs:/u01 /dev/mapper/rhel-u01
fs:/u01 fs:/
fs:/app /dev/mapper/vg_app-lv_app
fs:/app fs:/
fs:/boot /dev/sda1
fs:/boot fs:/

And disk_mapping :

[root@node1~]# cat /var/lib/rear/layout/disk_mappings
/dev/sda /dev/sda
/dev/sdb /dev/sdb
/dev/sdc /dev/sdc
/dev/sdd /dev/sdd

And disktodo.conf :

[root@node1~]# cat /var/lib/rear/layout/disktodo.conf
todo /dev/sda disk
todo /dev/sda1 part
todo /dev/sda2 part
todo /dev/sdb disk
todo /dev/sdc disk
todo /dev/sdc1 part
todo /dev/sdd disk
todo /dev/sdd1 part
todo pv:/dev/sdd1 lvmdev
todo pv:/dev/sda2 lvmdev
todo /dev/vg_app lvmgrp
todo /dev/rhel lvmgrp
todo /dev/mapper/rhel-root lvmvol
todo /dev/mapper/rhel-swap lvmvol
todo /dev/mapper/rhel-tmp lvmvol
todo /dev/mapper/rhel-u01 lvmvol
todo /dev/mapper/vg_app-lv_app lvmvol
todo fs:/ fs
todo fs:/tmp fs
todo fs:/u01 fs
todo fs:/app fs
todo fs:/boot fs
todo swap:/dev/mapper/rhel-swap swap

As you can see, the todo /dev/sdb1 part is missing, but my partition is functional (see lsblk output below).

Can someone try to help me on this one ? @jsmeix

Steps to Reproduce

  1. Create two VMs connected to an NFS server.
  2. Configure the VMs with four disks as described.
  3. Set up rear backup with AUTOEXCLUDE_DISKS=n in site.conf (cf sife.conf below).
  4. Perform a rear backup. (The issue should already be evident at this step, check disklayout.conf)
  5. Boot from the rear rescue image and initiate recovery.
  6. Observe that /sdb is not partitioned or included in disklayout.conf.

Expected Behavior
Both /sdb and /sdc should be partitioned and included in the disklayout.conf file during the recovery process, ensuring all shared disks are correctly restored.

Actual Behavior
Only /sdc is partitioned, and /sdb is missing from the disklayout.conf file during the recovery process.

gdha commented at 2024-10-03 09:51:

@NewNow479 See my reply in issue https://github.com/rear/rear/issues/3284#issuecomment-2337377931

github-actions commented at 2024-12-03 02:49:

Stale issue message


[Export of Github issue for rear/rear.]