[pve-devel] why disk count less than 6?

lyt_yudi lyt_yudi at icloud.com
Mon Feb 2 06:24:22 CET 2015


hi, PVE Developers
    why disk count less than 6 ? 
    why can't select all disk to zfs_raid_setup ?
……
sub get_zfs_raid_setup {

    my $filesys = $config_options->{filesys};

    my $dev_name_hash = {};

    my $devlist = [];
    my $bootdevlist = [];
    for (my $i = 0; $i < 6; $i++) {
	if (my $hd = $config_options->{"disksel$i"}) {
	    my ($disk, $devname, $size, $model) = @$hd;
	    die "device '$devname' is used more than once\n" 
		if $dev_name_hash->{$devname};
	    $dev_name_hash->{$devname} = $hd;
	    push @$devlist, $hd;
	}
    }

    my $diskcount = scalar(@$devlist);
    die "$filesys need at least one device\n" if $diskcount < 1;
…...

Thanks a lot! 


lyt_yudi
lyt_yudi at icloud.com



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2345 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20150202/7a87dbbb/attachment.bin>


More information about the pve-devel mailing list