在Oracle ZFS storage上使用脚本创建和删除LU

来源:互联网 发布:开机时windows错误恢复 编辑:程序博客网 时间:2024/05/17 08:32

1. Create LUs.

snow-7330-h1:> script

("." to run)> for (i=1; i <= 32; i++) {
("." to run)> run('shares select iperf_32luns lun lu_' + i);
("." to run)> run('set volsize=128m');
("." to run)> run('commit');
("." to run)> }

("." to run)> .


2. Delete LUs.

snow-7330-h1:> script
("." to run)> for (i = 1; i < =32; i++){
("." to run)> printf("%d ",i);
("." to run)> run('confirm shares select iperf_32luns destroy lu_'+i);
("." to run)> }
("." to run)> .





0 0
原创粉丝点击