[DRBD-user] Linstor - snapshot mouting
Michał Szamocki
mszamocki at cirrus.pl
Sat Jun 15 22:07:29 CEST 2019
Hi,
I wonder if it's safe to mount lvm snapshot after `linstor snapshot create` command and why it creates lv snapshot with k flag?
Background: I made path to LINSTORPlugin.pm:
< die "drbd snapshot is not implemented\n" if defined($snapname);
---
> sleep(5);
> die "drbd snapshot is not implemented\n" if defined($snapname) && $snapname ne 'vzdump';
223,224c224,231
< my $path = "/dev/drbd/by-res/$volname/0";
<
---
> my $path;
> if ( defined($snapname) ) {
> $path = "/dev/drbdpool/".$volname."_00000_snap_".$volname."_".$snapname;
> run_command( 'lvchange -ay -K '.$path, errmsg => "lv activate error" );
> } else {
> $path = "/dev/drbd/by-res/$volname/0";
> }
> print "path:$path\n";
472c479
< die "Snapshot not implemented on DRBD\n" if $snapname;
---
> die "Snapshot not implemented on DRBD\n" if $snapname && $snapname ne 'vzdump';
495c502
< die "Snapshot not implemented on DRBD\n" if $snapname;
---
> die "Snapshot not implemented on DRBD\n" if $snapname && $snapname ne 'vzdump';
BR,
Michał Szamocki
Cirrus
More information about the drbd-user
mailing list