在Solaris 上扩大文件系统

Solaris :

How to add extra disk and increase ZFS file system space

1: Request new disk from Storage
2: Scan for the new disk
3: Verify the new disk
4: Lable the new disk
5: Add the new disk to ZFS pool
6: extend the file system

-------

1: Once the new disk is provisioned, log in to the global zone and run the following command as root user:

cfgadm -al

2: Verify the new disk

echo | format | grep <LUN_ID>
where the <LUN_ID> is the storage admin provide to you
you will see the disk name


3: Lable the new disk:
format
you will see the added disk had been format

4: Add the new disk to ZFS disk pool
zpool add <zpool_name> <disk_name>

 you can use command : df -h  to find out the Zpool_name

command:
  zlogin zone17 df -h /data/t30
  or
  df -h /t30
 
you will find below result:

Filesystem  size used avail capacity Mounted On
trvst_app/t30 196G 57G  139G 30%    /t30


Add the new disk into /trcst_app pool:

  zpool add trcst_app  c6t3747488474758DHFJFGKHHKKK  (disk name)
 
 
5 Veryfication the caonfigration of the pool:
zpool status trcst_app


6: extend the file system:

  Check the quato:
  zfs get quota <ZFS_name>
 
  Set the new Quato:
  zfs set quota=<new_size> <zfs_name>
 
example:
  zfs get quota trvst_app/t30
  Name   Property value Source
  trvst1_app quota  100G local
 
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shenghuiping2001

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值