Hi everybody
I got a performance and disk space problem on my SAN (Datacore San Melody) due to the fact I've created/deleted too many VM's on the iSCSI LVM.
Datacore suggests us to zero disks before doing lvremove to tell the SAN the space is really available and to allow San Melody to reclaim the unused space.
I want to modify Storage.pm to add a the dd command before the lvremove, but the problem is that is lasts from seconds to minuts... and the GUI session waits for the end of the dd before allowing me to do anything else..
how to tell Proxmox VE to do it in batch like the migration does (showing status in an other frame) ?
You'll find below the code I've added (the first 4 lines)
thank you for you help
I got a performance and disk space problem on my SAN (Datacore San Melody) due to the fact I've created/deleted too many VM's on the iSCSI LVM.
Datacore suggests us to zero disks before doing lvremove to tell the SAN the space is really available and to allow San Melody to reclaim the unused space.
I want to modify Storage.pm to add a the dd command before the lvremove, but the problem is that is lasts from seconds to minuts... and the GUI session waits for the end of the dd before allowing me to do anything else..
how to tell Proxmox VE to do it in batch like the migration does (showing status in an other frame) ?
You'll find below the code I've added (the first 4 lines)
Code:
my ($sizepo, $formatpo) = file_size_info("/dev/$vg/$volname");
my $sizepoMo = int($sizepo/1024);
my $cmd = ['dd', 'bs=1M', "count=$sizepoMo", 'if=/dev/zero', "of=/dev/$vg/$volname"];
run_command ($cmd);
my $cmd = ['/sbin/lvremove', '-f', "$vg/$volname"];
run_command ($cmd);
thank you for you help