The following tables show many tasks that help manage logical volume
storage. The tables group tasks by those that primarily affect logical
and physical volumes and those that primarily affect file systems. More
complicated tasks are described in subsequent sections of this chapter.
Perform the following tasks to manage users and groups. You must
have root authority to perform many of these tasks.
Managing Logical Volumes and Storage Tasks
|
Task
| SMIT Fast Path
| Command or File
|
Add a logical
volumeNote1
| smit mklv
|
|
Add a volume group
| smit mkvg
|
|
Activate a volume group
| smit varyonvg
|
|
Add and activate a new volume
group
| smit mkvg
|
|
Add fixed disk without data to
existing volume group
| smit extendvg
|
|
Add fixed disk without data to
new volume group
| smit mkvg
|
|
Change name of volume group
Note2
|
- smit varyoffvg
- smit exportvg
- smit importvg
- smit mountfs
|
- varyoffvg OldVGName
- exportvg OldVGName
- importvg NewVGName
- mount all
|
Check size of a logical volume
| smit lslv
|
|
Copy a logical volume to a new logical volumeNote3
| smit cplv
|
|
Copy a logical volume to an
existing logical volume of the same sizeAttn1
| smit cplv
|
|
Copy a logical volume to an
existing logical volume of smaller sizeAttn1
,Note3
| Do not use SMITAttn2
|
- Create logical volume. For example:
mklv -y hdX vg00 4
- Create new files system on new logical volume.
For example:
crfs -v jfs -d hdX -m /doc -A yes
- Mount file system. For example:
mount /doc
- Create directory at new mount point. For example:
mkdir /doc/options
- Transfer files system from source to destination
logical volume. For example:
cp -R /usr/adam/oldoptions/* /doc/options
|
Copy a logical volume to an
existing logical volume of larger sizeAttn1
| smit cplv
|
|
Deactivate a volume group
| smit varyoffvg
|
|
Implement mirroring and data
allocation
| smit mklvcopy
|
|
Implement mirroring only
| smit mklvcopy
|
|
Implement data allocation only
| smit chlv1
|
|
Implement write-verify and scheduling
| smit chlv1
|
|
Increase the maximum size of a
logical volume
| smit chlv1
|
|
Increase the size of a logical
volume
| smit lsvc
|
|
List all logical volumes by volume
group
| smit lslv2
|
|
List all physical volumes in
system
| smit lspv2
|
|
List contents of a physical
volume
| smit lspv
|
|
List all volume groups
| smit lsvg2
|
|
List contents of a volume group
| smit lsvg1
|
|
Power off a disk
| smit offdsk
|
|
Power on a removable disk
| smit ondsk
|
|
Remove a volume group
| smit reducevg2
|
|
Remove a disk with data from the
operating system
| smit exportvgrds
|
|
Remove a disk without data from
the operating system
| smit reducevgrds
|
|
Reorganize a volume group
| smit reorgvg
|
|
Set automatic activation for a
volume group
| smit chvg
|
|
Set logical volume policies
| smit chlv1
|
|
Unconfigure and power off a disk
| smit rmvdsk1 or
smit rmvdsk then
smit opendoor
|
|
Perform the following tasks to manage logical volumes and file
systems. You must have root authority to perform many of these
tasks.