|
Tasks |
AIX Logical Volume |
Veritas Volume Manager |
|
Create a Volume Group |
mkvg |
vxdg init |
|
Create a Logical Volume |
mklv |
vxassist make |
|
Add a Physical Disk to a Volume Group |
extendvg |
vxdiskadd |
|
Add Physical Partitions to Logical |
extendlv |
vxassist growto |
|
Change characteristics of Logical |
chlv |
vxedit set |
|
Remove Physical Disk from Volume Group |
reducevg |
vxdiskadm |
|
Remove Logical Volume from Volume Group |
rmlv |
vxedit rm |
|
Remove definition of Volume Group from operating |
exportvg |
? |
|
Display information about physical volumes, volume groups or |
lspv |
vxstat |
|
Move Logical Volume to from one Physical Volume to another |
migratepv |
vxassist move |
|
Administer disks |
extendvg |
vxdiskadm |
|
Set up disks |
extendvg |
vxdisksetup |
|
Create configuration records for storage |
mkvg |
vxmake |
|
Manage plexes or Volume Groups |
mkvg |
vxplex |
|
Display Volume Group information |
lsvg |
vxprint |
|
Change size of Logical Volume |
extendlv |
vxresize |
|
Manage subdisk or physical volume |
chpv |
vxsd |
|
Manage volume |
chlv |
vxvol |
|
Set up sysboot information on VM disk |
bosboot |
vxbootsetup |
|
Manage VM disks |
N/A |
vxdisk |
|
Back up operating system |
mksysb |
Solstice Backup: |
|
Solstice Backup: nwadmin |
mksysb |
nwadmin |
Tags: commands
|
Solaris Useful commands at OK prompt. | ||
|
Dignostics: |
boot |
General |
|
banner this command shows the following systems hardware informatiion : Model,architecture, processor,keyboard, openboot version, Serial no. ethernet address & host id. Show ticks of real-time clock Monitor network broadcast packets Monitor broadcast packets on all net interfaces Show attached SCSI devices probe-scsi-all Show attached SCSI devices for all host adapters- internal & external. |
boot - boot kernel from default device. DEVALIAS ok>show-devs ok cd /pci@1f,4000/scsi@3 ok .properties ok f00809d8 tape f007ecdc disk ok CPU Speed :200.00MHz UPA Speed :100.00MHz PCI Bus A :66Mhz PCI Bus B :33Mhz |
printenv setenv <variable> set-default Reset the value of variable to the factory default. set-defaults Reset variable values to the factory defaults. |
|
Key Sequences These commands are disabled if the PROM security is on. Also, if your system has full security enabled, you cannot apply any of the suggested commands unless you have the password to get to the ok prompt. Stop - Bypass POST. This command does not depend on security-mode. (Note: some systems bypass POST as a default; in such cases, use Stop-D to start POST.) Stop-A Stop-D - Enter diagnostic mode (set diag-switch? to true). Stop-F - Enter Stop-N Reset NVRAM contents to default values. | ||
Start an OpenBoot Diagnostics
<STOP A>
OK setenv diag-switch? true
OK setenv auto-boot? false
OK reset-all
OK test-all or obdiag
Configure Graphics Console (e.g. Sun XVR-100 Graphics Accelerator) instead of serial TTYA
OK show-displays
Select the graphics accelerator, e.g. b
OK nvalias mydev <CTRL-Y>
OK setenv output-device mydev
OK setenv use-nvramrc? true
OK reset-all
1. In some cases you may need to add additional disk space if there is no space available on the existing drives. Follow the steps outlined above to complete that task.
2. Once you have disk space prepared we can begin the resize.
3. NOTE: If your particular volume configuration is relies on columns you will need to have extra space on a device within each column. Example, If you have a 3 column stripe you essentially have data on 3 disks. To increase the space in this volume you will have to locate equal free space on 3 devices, in order to grow each column in the volume. These may be the same devices currently in the volume or you may need to add additional devices. It would be possible to have 2x18G drives and 2x9G drives in a 3 column stripe; you’d just have the 2x9G drives concatenated in the same column to keep overall column balance.
4. Identify available free space
# vxdg –g disk-group-name free (this command will list all areas of free space on each disk in the disk group in 512-byte blocks; note, be sure to consider data redundancy in your calculations)
5. resize the volumes
a. # /etc/vx/bin/vxresize –F filesystem-type \
–g disk-group-name volume-name +size-to-add &
b. breaking down the command above, -F is either ufs or vxfs; when specifying size you can do it one of 2 ways. Either you say +size or just size. The difference being if veritas sees a plus sign he will add that much space to the existing volume. If if veritas doesn’t see a + sign he will attempt to resize the volume to what ever size you have specified. Don’t get these confused or else you could end up shrinking a volume you intended to grow.
c. # vxtask monitor (this will allow you to see the progress being made)
6. Keep in mind this is an activity that can be done on the fly, systems can remain up. It has been tested many times over and it has been proven safe.
1. Some options worth noting
a. –D : report on directory fragmentation
b. –E : report on extent reorganization
c. –d : defragment the directory structure
d. –e : reorganize extent structure
e. –s : report with a summary of work completed
f. –v : report on reorganization activity
2. Example commands
/usr/lib/fs/vxfs/fsadm –F vxfs –D –E –s –v –d –e mount-point
/usr/lib/fs/vxfs/fsadm –F vxfs –s –d –e mount-point
Recent comments