From 7cab5a1f4172b6e5ce5a74c5aa35002a64de9f0e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sun, 27 Oct 2013 15:22:50 -0400 Subject: [PATCH] Have mkstorage report the volumes created. --- xCAT-server/lib/xcat/plugins/svc.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/svc.pm b/xCAT-server/lib/xcat/plugins/svc.pm index c12b386f2..304db92fb 100644 --- a/xCAT-server/lib/xcat/plugins/svc.pm +++ b/xCAT-server/lib/xcat/plugins/svc.pm @@ -107,6 +107,7 @@ sub mkstorage { my %lunargs = (controller=>$controller, size=>$size, pool=>$pool); if ($name) { $lunargs{name} = $name; } my $lun = create_lun(%lunargs); + sendmsg($lun->{name}.": id: ".$lun->{wwn},$callback); my $wwns = get_wwns(@nodes); my %namemap = makehosts($wwns, controller=>$controller, cfg=>$storents); my @names = values %namemap; @@ -381,6 +382,7 @@ sub mkstorage_single { $lunargs{name} = $args{name}."-".$node; } my $lun = create_lun(%lunargs); + sendmsg($lun->{name}.": id: ".$lun->{wwn},$callback,$node); my $wwns = get_wwns($node); my %namemap = makehosts($wwns, controller=>$controller, cfg=>{$node=>$cfg}); my @names = values %namemap;