#401 Issue closed
: lvm data on san disks are wiped¶
Labels: support / question
cocampbe opened issue at 2014-05-01 15:59:¶
I am not sure what I am missing. I have looked at case #291 but it did
not provide me with an answer. I figures out how to exclude backups of
my san disks on case #398. Now the issue is that the san disks are
wiped during the recovery. What I need is rear to only backup vg00 (the
OS). All other disks can be excluded. And when the recovery is complete,
the system should boot up and all san volumes should be mounted intact.
I have been working with lvm volumes and ocfs file systems and they are
wiped everytime. Here is my local.conf
file:
OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL="nfs://192/168.1.34/var/opt/ignite/rear/"
NETFS_KEEP_OLD_BACKUP_COPY=1
ONLY_INCLUDE_VG=( vg00 )
EXCLUDE_MOUNTPOINTS=($(df -Pl | grep -v 'vg00\|boot\|tmpfs\|Filesystem' | awk '{print $6}'))
EXCLUDE_RECREATE=( "${EXCLUDE_RECREATE[@]}" )
EXCLUDE_RECREATE+=($(df -Pl | grep -v 'vg00\|boot\|tmpfs\|Filesystem' | awk '{print "fs:"$6}'))
This only backs up vg00 data. Here is the content of the disklayout.conf file.
disk /dev/sda 450064605184 msdos
part /dev/sda 524288000 1048576 primary boot /dev/sda1
part /dev/sda 449539211264 525336576 primary lvm /dev/sda2
#disk /dev/sdb 21474836480 msdos
#disk /dev/sdc 26843545600 msdos
#disk /dev/sdd 10737418240 msdos
#disk /dev/sde 21474836480 msdos
#disk /dev/sdf 26843545600 msdos
#disk /dev/sdg 10737418240 msdos
#disk /dev/sdh 21474836480 msdos
#disk /dev/sdi 26843545600 msdos
#disk /dev/sdj 10737418240 msdos
#disk /dev/sdk 21474836480 msdos
#disk /dev/sdl 26843545600 msdos
#disk /dev/sdm 10737418240 msdos
#lvmdev /dev/vgtest /dev/mapper/test IMreTj-ZCep-joFo-eY28-cD2b-SGXN-3qJeQK 41943040
lvmdev /dev/vg00 /dev/sda2 YOpd1n-4cgu-bQ19-O8p9-vFJp-JGhq-swDcCY 878006272
#lvmgrp /dev/vgtest 4096 5116 20955136
lvmgrp /dev/vg00 4096 107178 439001088
#lvmvol /dev/vgtest test 5116 41910272
lvmvol /dev/vg00 lv_swap 992 8126464
lvmvol /dev/vg00 lvol3 512 4194304
lvmvol /dev/vg00 lvol4 1280 10485760
lvmvol /dev/vg00 lvol5 2560 20971520
lvmvol /dev/vg00 lvol6 512 4194304
lvmvol /dev/vg00 lvol7 2560 20971520
lvmvol /dev/vg00 lvol8 2560 20971520
lvmvol /dev/vg00 lvol9 1280 10485760
fs /dev/mapper/vg00-lvol3 / ext4 uuid=b9348931-1e3b-4d33-bfcd-1b3b5168f1e6 label= blocksize=4096 reserved_blocks=2% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/sda1 /boot ext4 uuid=ee7ad465-fff4-4089-927d-e5fe6f528d4a label= blocksize=1024 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=4063 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol4 /home ext4 uuid=ecfadc88-4a7e-4ef9-8af3-2c113241d0c7 label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol9 /oma ext4 uuid=d03e8613-3fa5-4127-a27b-c945f16a45d8 label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol5 /opt ext4 uuid=93093ee1-0268-4a22-b1d7-e733a4e1e208 label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol6 /tmp ext4 uuid=1fdbbb47-8285-488d-b16d-74838b144121 label= blocksize=4096 reserved_blocks=2% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol7 /usr ext4 uuid=d532f502-ffcc-4171-bb58-e1e89aee2caa label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol8 /var ext4 uuid=28b27949-286f-4966-aa1d-8e00190f3e0d label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
#fs /dev/mapper/vgtest-test /test ext4 uuid=ce7fdd15-a660-40e9-ad18-b9bac5b3c411 label= blocksize=4096 reserved_blocks=4% max_mounts=-1 check_interval=0d bytes_per_inode=16371 default_mount_options=user_xattr,acl options=rw
swap /dev/mapper/vg00-lv_swap uuid=369d10ed-6e53-40cd-848d-fbe8d0233185 label=
logicaldrive /dev/sda 0|A|1 raid=1 drives=1I:1:1,1I:1:2, spares= sectors=32 stripesize=256
smartarray 0
#multipath /dev/mapper/test_ocfs /dev/sdc,/dev/sdf,/dev/sdi,/dev/sdl
#multipath /dev/mapper/test /dev/sdb,/dev/sde,/dev/sdh,/dev/sdk
#multipath /dev/mapper/fmw_ocfs /dev/sdd,/dev/sdg,/dev/sdj,/dev/sdm
I saw that the multipath disks were commented out. So I assumed that the AUTOEXCLUDE_MULTUIPATH was already set to a default of y. I am not sure which part of the restore is removing the lvm headers on those disks. Here is a copy of the disktodo.conf. Hopefully this is enough info. Thanks.
todo /dev/sda disk
todo /dev/sda1 part
todo /dev/sda2 part
done /dev/sdb disk
done /dev/sdc disk
done /dev/sdd disk
done /dev/sde disk
done /dev/sdf disk
done /dev/sdg disk
done /dev/sdh disk
done /dev/sdi disk
done /dev/sdj disk
done /dev/sdk disk
done /dev/sdl disk
done /dev/sdm disk
done pv:/dev/mapper/test lvmdev
todo pv:/dev/sda2 lvmdev
done /dev/vgtest lvmgrp
todo /dev/vg00 lvmgrp
done /dev/mapper/vgtest-test lvmvol
todo /dev/mapper/vg00-lv_swap lvmvol
todo /dev/mapper/vg00-lvol3 lvmvol
todo /dev/mapper/vg00-lvol4 lvmvol
todo /dev/mapper/vg00-lvol5 lvmvol
todo /dev/mapper/vg00-lvol6 lvmvol
todo /dev/mapper/vg00-lvol7 lvmvol
todo /dev/mapper/vg00-lvol8 lvmvol
todo /dev/mapper/vg00-lvol9 lvmvol
todo fs:/ fs
todo fs:/boot fs
todo fs:/home fs
todo fs:/oma fs
todo fs:/opt fs
todo fs:/tmp fs
todo fs:/usr fs
todo fs:/var fs
done fs:/test fs
todo swap:/dev/mapper/vg00-lv_swap swap
done /dev/mapper/test_ocfs multipath
done /dev/mapper/test multipath
done /dev/mapper/fmw_ocfs multipath
gdha commented at 2014-05-01 19:04:¶
Could you upload the diskrestore.sh script which is created during recover workflow?
Gratien
Op 1-mei-2014 om 17:59 heeft Court notifications@github.com het volgende geschreven:
I am not sure what I am missing. I have looked at case #291 but it did not provide me with an answer. I figures out how to exclude backups of my san disks on case #398. Now the issue is that the san disks are wiped during the recovery. What I need is rear to only backup vg00 (the OS). All other disks can be excluded. And when the recovery is complete, the system should boot up and all san volumes should be mounted intact. I have been working with lvm volumes and ocfs file systems and they are wiped everytime. Here is my local.conf file:
OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL="nfs://192/168.1.34/var/opt/ignite/rear/"
NETFS_KEEP_OLD_BACKUP_COPY=1
ONLY_INCLUDE_VG=( vg00 )
EXCLUDE_MOUNTPOINTS=($(df -Pl | grep -v 'vg00|boot|tmpfs|Filesystem' | awk '{print $6}'))
EXCLUDE_RECREATE=( "${EXCLUDE_RECREATE[@]}" )
EXCLUDE_RECREATE+=($(df -Pl | grep -v 'vg00|boot|tmpfs|Filesystem' | awk '{print "fs:"$6}'))This only backs up vg00 data. Here is the content of the disklayout.conf file.
disk /dev/sda 450064605184 msdos
part /dev/sda 524288000 1048576 primary boot /dev/sda1
part /dev/sda 449539211264 525336576 primary lvm /dev/sda2
#disk /dev/sdb 21474836480 msdos
#disk /dev/sdc 26843545600 msdos
#disk /dev/sdd 10737418240 msdos
#disk /dev/sde 21474836480 msdos
#disk /dev/sdf 26843545600 msdos
#disk /dev/sdg 10737418240 msdos
#disk /dev/sdh 21474836480 msdos
#disk /dev/sdi 26843545600 msdos
#disk /dev/sdj 10737418240 msdos
#disk /dev/sdk 21474836480 msdos
#disk /dev/sdl 26843545600 msdos
#disk /dev/sdm 10737418240 msdos
#lvmdev /dev/vgtest /dev/mapper/test IMreTj-ZCep-joFo-eY28-cD2b-SGXN-3qJeQK 41943040
lvmdev /dev/vg00 /dev/sda2 YOpd1n-4cgu-bQ19-O8p9-vFJp-JGhq-swDcCY 878006272
#lvmgrp /dev/vgtest 4096 5116 20955136
lvmgrp /dev/vg00 4096 107178 439001088
#lvmvol /dev/vgtest test 5116 41910272
lvmvol /dev/vg00 lv_swap 992 8126464
lvmvol /dev/vg00 lvol3 512 4194304
lvmvol /dev/vg00 lvol4 1280 10485760
lvmvol /dev/vg00 lvol5 2560 20971520
lvmvol /dev/vg00 lvol6 512 4194304
lvmvol /dev/vg00 lvol7 2560 20971520
lvmvol /dev/vg00 lvol8 2560 20971520
lvmvol /dev/vg00 lvol9 1280 10485760
fs /dev/mapper/vg00-lvol3 / ext4 uuid=b9348931-1e3b-4d33-bfcd-1b3b5168f1e6 label= blocksize=4096 reserved_blocks=2% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/sda1 /boot ext4 uuid=ee7ad465-fff4-4089-927d-e5fe6f528d4a label= blocksize=1024 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=4063 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol4 /home ext4 uuid=ecfadc88-4a7e-4ef9-8af3-2c113241d0c7 label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol9 /oma ext4 uuid=d03e8613-3fa5-4127-a27b-c945f16a45d8 label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol5 /opt ext4 uuid=93093ee1-0268-4a22-b1d7-e733a4e1e208 label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol6 /tmp ext4 uuid=1fdbbb47-8285-488d-b16d-74838b144121 label= blocksize=4096 reserved_blocks=2% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol7 /usr ext4 uuid=d532f502-ffcc-4171-bb58-e1e89aee2caa label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
fs /dev/mapper/vg00-lvol8 /var ext4 uuid=28b27949-286f-4966-aa1d-8e00190f3e0d label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16384 default_mount_options=user_xattr,acl options=rw
#fs /dev/mapper/vgtest-test /test ext4 uuid=ce7fdd15-a660-40e9-ad18-b9bac5b3c411 label= blocksize=4096 reserved_blocks=4% max_mounts=-1 check_interval=0d bytes_per_inode=16371 default_mount_options=user_xattr,acl options=rw
swap /dev/mapper/vg00-lv_swap uuid=369d10ed-6e53-40cd-848d-fbe8d0233185 label=
logicaldrive /dev/sda 0|A|1 raid=1 drives=1I:1:1,1I:1:2, spares= sectors=32 stripesize=256
smartarray 0
#multipath /dev/mapper/test_ocfs /dev/sdc,/dev/sdf,/dev/sdi,/dev/sdl
#multipath /dev/mapper/test /dev/sdb,/dev/sde,/dev/sdh,/dev/sdk
#multipath /dev/mapper/fmw_ocfs /dev/sdd,/dev/sdg,/dev/sdj,/dev/sdmI saw that the multipath disks were commented out. So I assumed that the AUTOEXCLUDE_MULTUIPATH was already set to a default of y. I am not sure which part of the restore is removing the lvm headers on those disks. Here is a copy of the disktodo.conf. Hopefully this is enough info. Thanks.
todo /dev/sda disk
todo /dev/sda1 part
todo /dev/sda2 part
done /dev/sdb disk
done /dev/sdc disk
done /dev/sdd disk
done /dev/sde disk
done /dev/sdf disk
done /dev/sdg disk
done /dev/sdh disk
done /dev/sdi disk
done /dev/sdj disk
done /dev/sdk disk
done /dev/sdl disk
done /dev/sdm disk
done pv:/dev/mapper/test lvmdev
todo pv:/dev/sda2 lvmdev
done /dev/vgtest lvmgrp
todo /dev/vg00 lvmgrp
done /dev/mapper/vgtest-test lvmvol
todo /dev/mapper/vg00-lv_swap lvmvol
todo /dev/mapper/vg00-lvol3 lvmvol
todo /dev/mapper/vg00-lvol4 lvmvol
todo /dev/mapper/vg00-lvol5 lvmvol
todo /dev/mapper/vg00-lvol6 lvmvol
todo /dev/mapper/vg00-lvol7 lvmvol
todo /dev/mapper/vg00-lvol8 lvmvol
todo /dev/mapper/vg00-lvol9 lvmvol
todo fs:/ fs
todo fs:/boot fs
todo fs:/home fs
todo fs:/oma fs
todo fs:/opt fs
todo fs:/tmp fs
todo fs:/usr fs
todo fs:/var fs
done fs:/test fs
todo swap:/dev/mapper/vg00-lv_swap swap
done /dev/mapper/test_ocfs multipath
done /dev/mapper/test multipath
done /dev/mapper/fmw_ocfs multipath—
Reply to this email directly or view it on GitHub.
cocampbe commented at 2014-05-01 20:42:¶
#!/bin/bash
LogPrint "Start system layout restoration."
mkdir -p /mnt/local
if create_component "vgchange" "rear" ; then
lvm vgchange -a n >&8
component_created "vgchange" "rear"
fi
set -e
set -x
if create_component "/dev/sda" "disk" ; then
# Create /dev/sda (disk)
Log "Erasing MBR of disk /dev/sda"
dd if=/dev/zero of=/dev/sda bs=512 count=1
sync
LogPrint "Creating partitions for disk /dev/sda (msdos)"
parted -s /dev/sda mklabel msdos >&2
parted -s /dev/sda mkpart '"primary"' 1048576B 525336575B >&2
parted -s /dev/sda set 1 boot on >&2
parted -s /dev/sda mkpart '"primary"' 525336576B 450064547839B >&2
parted -s /dev/sda set 2 lvm on >&2
partprobe -s /dev/sda >&2
# Wait some time before advancing
sleep 10
# Make sure device nodes are visible (eg. in RHEL4)
my_udevtrigger
my_udevsettle
component_created "/dev/sda" "disk"
else
LogPrint "Skipping /dev/sda (disk) as it has already been created."
fi
if create_component "/dev/sda1" "part" ; then
# Create /dev/sda1 (part)
component_created "/dev/sda1" "part"
else
LogPrint "Skipping /dev/sda1 (part) as it has already been created."
fi
if create_component "/dev/sda2" "part" ; then
# Create /dev/sda2 (part)
component_created "/dev/sda2" "part"
else
LogPrint "Skipping /dev/sda2 (part) as it has already been created."
fi
if create_component "pv:/dev/sda2" "lvmdev" ; then
# Create pv:/dev/sda2 (lvmdev)
LogPrint "Creating LVM PV /dev/sda2"
lvm vgchange -a n vg00 || true
lvm pvcreate -ff --yes -v --uuid "YOpd1n-4cgu-bQ19-O8p9-vFJp-JGhq-swDcCY" --restorefile /var/lib/rear/layout/lvm/vg00.cfg /dev/sda2 >&2
component_created "pv:/dev/sda2" "lvmdev"
else
LogPrint "Skipping pv:/dev/sda2 (lvmdev) as it has already been created."
fi
if create_component "/dev/vg00" "lvmgrp" ; then
# Create /dev/vg00 (lvmgrp)
LogPrint "Restoring LVM VG vg00"
if [ -e /dev/vg00 ] ; then
rm -rf /dev/vg00
fi
lvm vgcfgrestore -f /var/lib/rear/layout/lvm/vg00.cfg vg00 >&2
lvm vgchange --available y vg00 >&2
component_created "/dev/vg00" "lvmgrp"
else
LogPrint "Skipping /dev/vg00 (lvmgrp) as it has already been created."
fi
if create_component "/dev/mapper/vg00-lv_swap" "lvmvol" ; then
# Create /dev/mapper/vg00-lv_swap (lvmvol)
component_created "/dev/mapper/vg00-lv_swap" "lvmvol"
else
LogPrint "Skipping /dev/mapper/vg00-lv_swap (lvmvol) as it has already been created."
fi
if create_component "/dev/mapper/vg00-lvol3" "lvmvol" ; then
# Create /dev/mapper/vg00-lvol3 (lvmvol)
component_created "/dev/mapper/vg00-lvol3" "lvmvol"
else
LogPrint "Skipping /dev/mapper/vg00-lvol3 (lvmvol) as it has already been created."
fi
if create_component "/dev/mapper/vg00-lvol4" "lvmvol" ; then
# Create /dev/mapper/vg00-lvol4 (lvmvol)
component_created "/dev/mapper/vg00-lvol4" "lvmvol"
else
LogPrint "Skipping /dev/mapper/vg00-lvol4 (lvmvol) as it has already been created."
fi
if create_component "/dev/mapper/vg00-lvol5" "lvmvol" ; then
# Create /dev/mapper/vg00-lvol5 (lvmvol)
component_created "/dev/mapper/vg00-lvol5" "lvmvol"
else
LogPrint "Skipping /dev/mapper/vg00-lvol5 (lvmvol) as it has already been created."
fi
if create_component "/dev/mapper/vg00-lvol6" "lvmvol" ; then
# Create /dev/mapper/vg00-lvol6 (lvmvol)
component_created "/dev/mapper/vg00-lvol6" "lvmvol"
else
LogPrint "Skipping /dev/mapper/vg00-lvol6 (lvmvol) as it has already been created."
fi
if create_component "/dev/mapper/vg00-lvol7" "lvmvol" ; then
# Create /dev/mapper/vg00-lvol7 (lvmvol)
component_created "/dev/mapper/vg00-lvol7" "lvmvol"
else
LogPrint "Skipping /dev/mapper/vg00-lvol7 (lvmvol) as it has already been created."
fi
if create_component "/dev/mapper/vg00-lvol8" "lvmvol" ; then
# Create /dev/mapper/vg00-lvol8 (lvmvol)
component_created "/dev/mapper/vg00-lvol8" "lvmvol"
else
LogPrint "Skipping /dev/mapper/vg00-lvol8 (lvmvol) as it has already been created."
fi
if create_component "/dev/mapper/vg00-lvol9" "lvmvol" ; then
# Create /dev/mapper/vg00-lvol9 (lvmvol)
component_created "/dev/mapper/vg00-lvol9" "lvmvol"
else
LogPrint "Skipping /dev/mapper/vg00-lvol9 (lvmvol) as it has already been created."
fi
if create_component "fs:/" "fs" ; then
# Create fs:/ (fs)
LogPrint "Creating ext4-filesystem / on /dev/mapper/vg00-lvol3"
mkfs -t ext4 -b 4096 -i 16384 /dev/mapper/vg00-lvol3 >&2
tune2fs -U b9348931-1e3b-4d33-bfcd-1b3b5168f1e6 /dev/mapper/vg00-lvol3 >&2
tune2fs -m 0 -c -1 -i 0d -o user_xattr,acl /dev/mapper/vg00-lvol3 >&2
LogPrint "Mounting filesystem /"
mkdir -p /mnt/local/
mount -o rw /dev/mapper/vg00-lvol3 /mnt/local/
component_created "fs:/" "fs"
else
LogPrint "Skipping fs:/ (fs) as it has already been created."
fi
if create_component "fs:/boot" "fs" ; then
# Create fs:/boot (fs)
LogPrint "Creating ext4-filesystem /boot on /dev/sda1"
mkfs -t ext4 -b 1024 -i 4031 /dev/sda1 >&2
tune2fs -U ee7ad465-fff4-4089-927d-e5fe6f528d4a /dev/sda1 >&2
tune2fs -m 5 -c -1 -i 0d -o user_xattr,acl /dev/sda1 >&2
LogPrint "Mounting filesystem /boot"
mkdir -p /mnt/local/boot
mount -o rw /dev/sda1 /mnt/local/boot
component_created "fs:/boot" "fs"
else
LogPrint "Skipping fs:/boot (fs) as it has already been created."
fi
if create_component "fs:/home" "fs" ; then
# Create fs:/home (fs)
LogPrint "Creating ext4-filesystem /home on /dev/mapper/vg00-lvol4"
mkfs -t ext4 -b 4096 -i 16384 /dev/mapper/vg00-lvol4 >&2
tune2fs -U ecfadc88-4a7e-4ef9-8af3-2c113241d0c7 /dev/mapper/vg00-lvol4 >&2
tune2fs -m 5 -c -1 -i 0d -o user_xattr,acl /dev/mapper/vg00-lvol4 >&2
LogPrint "Mounting filesystem /home"
mkdir -p /mnt/local/home
mount -o rw /dev/mapper/vg00-lvol4 /mnt/local/home
component_created "fs:/home" "fs"
else
LogPrint "Skipping fs:/home (fs) as it has already been created."
fi
if create_component "fs:/oma" "fs" ; then
# Create fs:/oma (fs)
LogPrint "Creating ext4-filesystem /oma on /dev/mapper/vg00-lvol9"
mkfs -t ext4 -b 4096 -i 16384 /dev/mapper/vg00-lvol9 >&2
tune2fs -U d03e8613-3fa5-4127-a27b-c945f16a45d8 /dev/mapper/vg00-lvol9 >&2
tune2fs -m 5 -c -1 -i 0d -o user_xattr,acl /dev/mapper/vg00-lvol9 >&2
LogPrint "Mounting filesystem /oma"
mkdir -p /mnt/local/oma
mount -o rw /dev/mapper/vg00-lvol9 /mnt/local/oma
component_created "fs:/oma" "fs"
else
LogPrint "Skipping fs:/oma (fs) as it has already been created."
fi
if create_component "fs:/opt" "fs" ; then
# Create fs:/opt (fs)
LogPrint "Creating ext4-filesystem /opt on /dev/mapper/vg00-lvol5"
mkfs -t ext4 -b 4096 -i 16384 /dev/mapper/vg00-lvol5 >&2
tune2fs -U 93093ee1-0268-4a22-b1d7-e733a4e1e208 /dev/mapper/vg00-lvol5 >&2
tune2fs -m 5 -c -1 -i 0d -o user_xattr,acl /dev/mapper/vg00-lvol5 >&2
LogPrint "Mounting filesystem /opt"
mkdir -p /mnt/local/opt
mount -o rw /dev/mapper/vg00-lvol5 /mnt/local/opt
component_created "fs:/opt" "fs"
else
LogPrint "Skipping fs:/opt (fs) as it has already been created."
fi
if create_component "fs:/tmp" "fs" ; then
# Create fs:/tmp (fs)
LogPrint "Creating ext4-filesystem /tmp on /dev/mapper/vg00-lvol6"
mkfs -t ext4 -b 4096 -i 16384 /dev/mapper/vg00-lvol6 >&2
tune2fs -U 1fdbbb47-8285-488d-b16d-74838b144121 /dev/mapper/vg00-lvol6 >&2
tune2fs -m 0 -c -1 -i 0d -o user_xattr,acl /dev/mapper/vg00-lvol6 >&2
LogPrint "Mounting filesystem /tmp"
mkdir -p /mnt/local/tmp
mount -o rw /dev/mapper/vg00-lvol6 /mnt/local/tmp
component_created "fs:/tmp" "fs"
else
LogPrint "Skipping fs:/tmp (fs) as it has already been created."
fi
if create_component "fs:/usr" "fs" ; then
# Create fs:/usr (fs)
LogPrint "Creating ext4-filesystem /usr on /dev/mapper/vg00-lvol7"
mkfs -t ext4 -b 4096 -i 16384 /dev/mapper/vg00-lvol7 >&2
tune2fs -U d532f502-ffcc-4171-bb58-e1e89aee2caa /dev/mapper/vg00-lvol7 >&2
tune2fs -m 5 -c -1 -i 0d -o user_xattr,acl /dev/mapper/vg00-lvol7 >&2
LogPrint "Mounting filesystem /usr"
mkdir -p /mnt/local/usr
mount -o rw /dev/mapper/vg00-lvol7 /mnt/local/usr
component_created "fs:/usr" "fs"
else
LogPrint "Skipping fs:/usr (fs) as it has already been created."
fi
if create_component "fs:/var" "fs" ; then
# Create fs:/var (fs)
LogPrint "Creating ext4-filesystem /var on /dev/mapper/vg00-lvol8"
mkfs -t ext4 -b 4096 -i 16384 /dev/mapper/vg00-lvol8 >&2
tune2fs -U 28b27949-286f-4966-aa1d-8e00190f3e0d /dev/mapper/vg00-lvol8 >&2
tune2fs -m 5 -c -1 -i 0d -o user_xattr,acl /dev/mapper/vg00-lvol8 >&2
LogPrint "Mounting filesystem /var"
mkdir -p /mnt/local/var
mount -o rw /dev/mapper/vg00-lvol8 /mnt/local/var
component_created "fs:/var" "fs"
else
LogPrint "Skipping fs:/var (fs) as it has already been created."
fi
if create_component "swap:/dev/mapper/vg00-lv_swap" "swap" ; then
# Create swap:/dev/mapper/vg00-lv_swap (swap)
LogPrint "Creating swap on /dev/mapper/vg00-lv_swap"
mkswap -U 369d10ed-6e53-40cd-848d-fbe8d0233185 /dev/mapper/vg00-lv_swap >&2
component_created "swap:/dev/mapper/vg00-lv_swap" "swap"
else
LogPrint "Skipping swap:/dev/mapper/vg00-lv_swap (swap) as it has already been created."
fi
set +x
set +e
LogPrint "Disk layout created."
cocampbe commented at 2014-05-01 20:48:¶
I have to add that I made one change as I was waiting for a reply. I set AUTOEXCLUDE_MULTIPATH=n. I am not exactly sure how that would have affected it since my last run. But upon reboot the server halted on trying to mount /dev/mapper/vgtest-test.
cocampbe commented at 2014-05-06 12:54:¶
Well. I solved the mystery. Nothing wrong with rear. I was doing a rebuild on the servers before doing a recovery. I missed the fact that the kickstart script was wiping all partitions. Sorry for the ghost chase.
[Export of Github issue for rear/rear.]