#466 Issue closed: LVs with stripes not managed correctly

Labels: enhancement, needs sponsorship

(unknown) opened issue at 2014-09-25 07:33:

I’m installing ReaR into a server using LVs with stripes, as the following exemple:

Server0:/var/lib/rear/layout # lvs -o +devices | grep LVSample1
LVSample1 VGTemp -wi-ao 60.00g /dev/mapper/temp_1(0),/dev/mapper/temp_2(0),/dev/mapper/temp_3(0),/dev/mapper/temp_4(0)

I see the layout generated ignores this configuration:

Server0:/var/lib/rear/layout # grep LVSample1 disklayout.conf
lvmvol /dev/VGTemp LVSample1 960 125829120
fs /dev/mapper/VGTemp-LVSample1 /sample1 reiserfs uuid=1d1e43d4-968f-46b9-bb55-ad6b773ae93c label= options=rw,notail,acl,user_xattr
Server0:/var/lib/rear/layout #

Commented at the Mailing List, and it seems to be an missing feature. I'm trying to attach the output of 'rear -vdD savelayout', as D'haese Gratien has suggested.

gdha commented at 2014-09-25 10:23:

@iaragones you mailed me the log file created, but I would rather see the log created by rear -vdD savelayout and attach it to gist.github.com

(unknown) commented at 2014-09-25 10:53:

There's only this log file available... I see no more output to send to you. Where is the log you need supposed to be located?

bcnabpccip01:/home/hpsivara # rear -vdD savelayout
Relax-and-Recover 1.15 / Git
Using log file: /var/log/rear/rear-bcnabpccip01.log
Creating disk layout
Excluding component /interfases/hr/emp
Excluding component /interfases/BPP
Excluding component /interfases/sapras
Excluding component /usr/sap/trans
Excluding component /sapmnt/BPP
You should also rm -Rf /tmp/rear.svTvtSl1Uius1SS
bcnabpccip01:
/home/hpsivara # ls -l /tmp/rear.svTvtSl1Uius1SS
total 8
drwxr-xr-x 2 root root 4096 Sep 25 12:45 rootfs
drwxr-xr-x 2 root root 4096 Sep 25 12:45 tmp
bcnabpccip01:/home/hpsivara # ls -l /tmp/rear.svTvtSl1Uius1SS/tmp/part
parted partitions partitions-data
bcnabpccip01:
/home/hpsivara # ls -l /tmp/rear.svTvtSl1Uius1SS/rootfs/
total 0
bcnabpccip01:~/home/hpsivara #

gdha commented at 2014-09-25 11:09:

The /var/log/rear/rear-bcnabpccip01.log file created just now will do.

(unknown) commented at 2014-09-25 12:05:

I only see the option of attaching images... I'm sending it via e-mail again.

gdha commented at 2014-09-26 15:01:

Our current code base does not (yet) support striped lvm lvols. It will take considerable time to get this implemented. We do accept a pull request...

gdha commented at 2014-10-01 06:53:

When cloning you are not sure what kind of disks you will have, so I think striping should not be blindly applied. It is better the way it is now. You can proof me wrong, of course...

(unknown) commented at 2014-10-01 07:18:

Usually, when you want to recover/clone a server, you already know how many disks you need to recover the same status the server were before a disaster... In my opinion, the recover process may leave the new server exactly with the same configurations the original was. Obviously, you ever can modify the layout to make it different, but in my opinion it’s better to make the defaults to be equal to the actual scenario.

From: gdha [mailto:notifications@github.com]
Sent: dimecres, 1 / octubre / 2014 08:54
To: rear/rear
Cc: Aragones, Ivan
Subject: Re: [rear] LVs with stripes not managed correctly (#466)

When cloning you are not sure what kind of disks you will have, so I think striping should not be blindly applied. It is better the way it is now. You can proof me wrong, of course...


Reply to this email directly or view it on GitHubhttps://github.com/rear/rear/issues/466#issuecomment-57425719.

gdha commented at 2018-01-12 08:07:

After 3 years still no sponsorship - close for it now


[Export of Github issue for rear/rear.]