Expanding the file system on Solaris

Source: Internet
Author: User

Solaris:

How to add extra disk and increase ZFS file system spaces

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'll be the disk name


3:lable the new disk:
Format
You'll be added disk had been format

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

can use Command:df-h to find out the Zpool_name

Command
Zlogin Zone17 df-h/data/t30
Or
Df-h/t30

You'll 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
 
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.