Вы находитесь на странице: 1из 8

What is mean by volume?

Volume is nothing but logical partition of aggregate.


How to create a new volume?
Syntax:
Vol create <vol_name> <aggr_name> <size of vol>
Example:
Vijay> vol create vijayvol aggr1 50m
Creation of volume 'vijayvol' with size 50m on containing aggregate
'aggr1' has completed.
Vijay>
How to Check the volume status?
Example:
vijay> vol status
Volume State
nfsvol

Status
online

vol1234

online

vol0

online

testvol1

online

winvol

online

muthu

online

vijay>

Options
raid_dp, flex ignore_inconsistent=on,
wafl inconsistent create_ucode=on,
needs check
convert_ucode=on
raid_dp, flex ignore_inconsistent=on,
wafl inconsistent create_ucode=on,
needs check
convert_ucode=on
raid0, flex
root, no_atime_update=on,
create_ucode=on,
convert_ucode=on,
maxdirsize=2621,
guarantee=volume(disabled)
raid_dp, flex ignore_inconsistent=on,
wafl inconsistent create_ucode=on,
needs check
convert_ucode=on
raid_dp, flex ignore_inconsistent=on,
wafl inconsistent create_ucode=on,
needs check
convert_ucode=on
raid_dp, flex ignore_inconsistent=on,
wafl inconsistent create_ucode=on,
needs check
convert_ucode=on

How to Check the particular Volume status?


vijay> vol status muthu
Volume State
muthu

Status
online

Options
raid_dp, flex ignore_inconsistent=on,
wafl inconsistent create_ucode=on,
needs check
convert_ucode=on
Containing aggregate: 'aggr1'

Vijay>
How to increase the volume size?
Syntax:
Vijay> vol size <vol_name> +<size>
Example:
vijay> vol size muthu +30m
vol size: Flexible volume 'muthu' size set to 80m.
vijay>
How to decrease the volume size?
Syntax:
Vijay> vol size <vol_name> -<size>
Example:
vijay> vol size muthu -30m
vol size: Flexible volume 'muthu' size set to 50m.
vijay>
How to rename the volume?
Syntax:
Vijay> vol rename <old_name> <new_name>
Example:
vijay> vol rename muthu kumar
'muthu' renamed to 'kumar'
vijay>

How to view the volume total, used, available sizes?


Example:
vijay> df -Vh
Filesystem
/vol/vol0/
/vol/vol0/.snapshot
/vol/nfsvol/
/vol/nfsvol/.snapshot
/vol/winvol/
/vol/winvol/.snapshot
vijay>

total
used
241MB
78MB
0TB
0TB
27MB
24MB
3072KB 48KB
27MB
23MB
3072KB
0KB

avail
163MB
0TB
2980KB
3024KB
3836KB
3072KB

capacity Mounted on
32% /vol/vol0/
---% /vol/vol0/.snapshot
89% /vol/nfsvol/
2% /vol/nfsvol/.snapshot
86% /vol/winvol/
0% /vol/winvol/.snapshot

How to view the particular volume total, free spaces?


Example:
vijay> df -Vh kumar
Filesystem
total
used
/vol/kumar/
40MB 104KB
/vol/kumar/.snapshot 10MB
0MB
vijay>

avail capacity
39MB
0%
10MB
0%

Mounted on
/vol/kumar/
/vol/kumar/.snapshot

how to view the particular volume inode details(total, free, used)?


Example:
vijay> df -i kumar
Filesystem
iused
/vol/kumar/
100
vijay>

ifree %iused Mounted on


2314
4% /vol/kumar/

Hoe to view the total inode status?


Example:
Filesystem
/vol/vol0/
/vol/nfsvol/
/vol/winvol/
/vol/testvol1/
/vol/vol1234/
/vol/kumar/
vijay>

iused
6178
130
148
100
100
100

ifree %iused
13812 31%
751 15%
733 17%
781 11%
781 11%
2314
4%

Mounted on
/vol/vol0/
/vol/nfsvol/
/vol/winvol/
/vol/testvol1/
/vol/vol1234/
/vol/kumar/

How to view the tatal & particular volume reserved space?


Total reserved space:
Example:
vijay> df -r
Filesystem
kbytes
used
avail reserved Mounted on
/vol/vol0/
247664
79984 167680
0 /vol/vol0/
/vol/vol0/.snapshot
0
0
0
0 /vol/vol0/.snapshot
/vol/nfsvol/
27648
24668
2980
0 /vol/nfsvol/
/vol/nfsvol/.snapshot
3072
48
3024
0 /vol/nfsvol/.snapshot
/vol/winvol/
27648
23812
3836
0 /vol/winvol/
/vol/winvol/.snapshot
3072
0
3072
0 /vol/winvol/.snapshot
/vol/testvol1/
24576
88
24488
0 /vol/testvol1/
/vol/testvol1/.snapshot
6144
0
6144
0 /vol/testvol1/.snapshot
/vol/vol1234/
24576
88
24488
0 /vol/vol1234/
/vol/vol1234/.snapshot
6144
0
6144
0 /vol/vol1234/.snapshot
/vol/kumar/
40960
104
40856
0 /vol/kumar/
/vol/kumar/.snapshot
10240
0
10240
0 /vol/kumar/.snapshot
vijay>
Particular volume reserved space:
Example:
vijay> df -r kumar
Filesystem
kbytes
used
avail reserved Mounted on
/vol/kumar/
40960
104
40856
0 /vol/kumar/
/vol/kumar/.snapshot
10240
0
10240
0 /vol/kumar/.snapshot
vijay>
How to view the volume sizes in KB, MB, GB formats?
Example:
KB size:
vijay> df -k
Filesystem
total
used avail capacity Mounted on
/vol/vol0/
247664KB 80080KB 167584KB
32% /vol/vol0/
/vol/vol0/.snapshot
0KB
0KB
0KB ---% /vol/vol0/.snapshot
/vol/nfsvol/
27648KB 24668KB 2980KB
89% /vol/nfsvol/
/vol/nfsvol/.snapshot 3072KB
48KB 3024KB
2% /vol/nfsvol/.snapshot
/vol/winvol/
27648KB 23812KB 3836KB
86% /vol/winvol/
vijay>

MB Size:
Filesystem
/vol/vol0/
/vol/vol0/.snapshot
/vol/nfsvol/
/vol/nfsvol/.snapshot
/vol/winvol/
/vol/winvol/.snapshot
vijay>

total
241MB
0MB
27MB
3MB
27MB
3MB

used
avail capacity Mounted on
78MB
163MB
32% /vol/vol0/
0MB
0MB ---% /vol/vol0/.snapshot
24MB
2MB
89% /vol/nfsvol/
0MB
2MB
2% /vol/nfsvol/.snapshot
23MB
3MB
86% /vol/winvol/
0MB
3MB
0% /vol/winvol/.snapshot

GB Size:
vijay> df -g
Filesystem
total
/vol/vol0/
0GB
/vol/vol0/.snapshot
0GB
/vol/nfsvol/
0GB
/vol/nfsvol/.snapshot 0GB
/vol/winvol/
0GB
/vol/winvol/.snapshot 0GB
/vol/testvol1/
0GB
/vol/testvol1/.snapshot0GB
/vol/vol1234/
0GB
/vol/vol1234/.snapshot0GB
/vol/kumar/
0GB
/vol/kumar/.snapshot 0GB
vijay>

used
avail capacity Mounted on
0GB
0GB
32% /vol/vol0/
0GB
0GB ---% /vol/vol0/.snapshot
0GB
0GB
89% /vol/nfsvol/
0GB
0GB
2% /vol/nfsvol/.snapshot
0GB
0GB
86% /vol/winvol/
0GB
0GB
0% /vol/winvol/.snapshot
0GB
0GB
0% /vol/testvol1/
0GB
0GB
0% /vol/testvol1/.snapshot
0GB
0GB
0% /vol/vol1234/
0GB
0GB
0% /vol/vol1234/.snapshot
0GB
0GB
0% /vol/kumar/
0GB
0GB
0% /vol/kumar/.snapshot

How to view the Compressed Files space?


Example:
vijay> df -S
Filesystem
/vol/vol0/
/vol/nfsvol/
/vol/winvol/
/vol/testvol1/
/vol/vol1234/
/vol/kumar/
vijay>

used
79984
24668
23812
88
88
104

compressed
a-sis %saved
0
0
0%
0
0
0%
0
0
0%
0
0
0%
0
0
0%
0
0
0%

How to put a particular volume into restricted state?


Syntax:
Vijay> vol restrict <vol_name>
Example:
vijay> vol restrict kumar
Volume 'kumar' is now restricted.
vijay>
Then see the changes using vol status command.
vijay> vol status kumar
Volume State
Status
Options
kumar
restricted
raid_dp, flex
wafl inconsistent
needs check
Containing aggregate: 'aggr1'
vijay>
How to bring the volume from restrict to normal state?
Example:
vijay> vol online kumar
Volume 'kumar' is now online.
vijay>
Then see the changes using vol status command.
vijay> vol status kumar
Volume State
Status
Options
kumar
online
raid_dp, flex ignore_inconsistent=on,
wafl inconsistent create_ucode=on,
needs check
convert_ucode=on
Containing aggregate: 'aggr1'
vijay>
How to take a volume offline?
Syntax:
Vijay> vol offline <vol_name>
Example:
vijay> vol offline kumar
Tue Mar 16 07:49:54 GMT [wafl.vvol.offline:info]: Volume 'kumar' has been set
temporarily offline
Volume 'kumar' is now offline.

How to bringing a volume online?


Synatx:
Vijay> vol online <vol_name>
Example:
vijay> vol online kumar
Volume 'kumar' is now online.
vijay>
How to view the maximum no of files allowed on a particular volaume?
Syntax:
:
Vijay> maxfiles <vol_name>
Example:
vijay> maxfiles kumar
Volume kumar: maximum number of files is currently 2414 (100 used).
vijay>
How to increase the maximum no of files allowed on a particular volaume?
Syntax:
Maxfiles <vol_name> <max_num_files>
Example:
vijay> maxfiles kumar 2000
maxfiles: New count must be larger than current count of 2414.
vijay>
How to set the volume to grow automatically?
Syntax:
Vijay> vol autosize <vol_name> -m <size>
Size= kb,mb,gb
Example:
vijay> vol autosize kumar -m 80m

vol autosize: Flexible volume 'kumar' autosize settings UPDATED.


vijay> Tue Mar 16 07:58:59 GMT [wafl.spacemgmnt.policyChg:info]: The space
management policy for volume kumar has changed: autosize volume maximum size
81920KB.
How to set the automatic free space preservation for a volume ?
Syntax:
Vijay> vol options <vol_name> try_first {vol_grow| snap_delete}
Example:
vijay>
vijay> vol options kumar try_first volume_grow
vijay> vol options kumar try_first snap_delete
vijay>
How to delete a particular volume?
Syntax:
Vijay> vol destroy <vol_name>
Example :
Step 1:
First bring the volume into offline.
vijay> vol offline kumar
Tue Mar 16 08:08:32 GMT [wafl.vvol.offline:info]: Volume 'kumar' has been set
temporarily offline
Volume 'kumar' is now offline.
vijay>
Step 2:
Then destroy the volume.
vijay> vol destroy kumar
Are you sure you want to destroy this volume? y
Tue Mar 16 08:08:45 GMT [wafl.vvol.destroyed:info]: Volume kumar destroyed.
Volume 'kumar' destroyed.
vijay>

Вам также может понравиться