Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1058780
  • 博文数量: 573
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 66
  • 用 户 组: 普通用户
  • 注册时间: 2016-06-28 16:21
文章分类

全部博文(573)

文章存档

2018年(3)

2016年(48)

2015年(522)

分类: LINUX

2015-12-07 15:35:31

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

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)> .

阅读(552) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~