
svm - manipulate, look in, create Solaris Volume Manager objects

svm [-c] [-D datadir] [-i id] command ...
[-D <datadir>] : datadir is the director where the data will be read
from
[-c] : turn coloured output on
[-h] : show this help text
[-i <newdevid>] : use newdevid as new metadevice id
instead of first avail.
showpart : show partitions of all the disks involved
getnextdev : retrieve the next free device
isdevfree [d]num : is the device <dnum> free ?
showconfig : view all the config
showsp [<dev|slice>+] : view all devices on device or slices
getphysdevs <dev> : show physical device(s) underlying
a SVM device
getsubdevs <dev> : show underlying device(s) for a SVM device
explaindev <dev> : tries to explain a SVM device in pure english
mpondev <dev> : mount point on <dev>
mpondisk <disk> : mount point on <disk> (in a form present
in SVM)
devs4mp </mountpoint> : what are the devices
underlying a mount point
disks4mp </mountpoint> : what are the physical devices
underlying a mount point

svm is a tool that reads from various sources your SDS/SVM configuration
explaindev deviceexplaindev prints a plain english description of the device.
getsize devicegetsize prints the size of a device.
showconfigshowconfig essentially prints the explaindev string for all devices in the SVM configuration.
getphysdev device [device...]getphysdev prints out the physical device(s) underlying an SVM device.
getnextdevgetnextdev prints out the next free device. It does not take into account holes in the device list.
isdevfree deviceisdevfree prints the status (free or not free) for the given device.
showpart diskshowpart prints out the partitions for the specified disk(s). If no disk is specified, all disks partitions are printed.
showsp softpart_containershowsp prints out the soft partitions for the specified soft partition container. If no container is specified, all soft-partitions for all containers (either device or disk slice) are printed.
getsubdevs devicegetsubdevs prints the list of devices underlying those passed as argument(s). Only one level deep.
mpondisk diskFIXME mpondisk prints the list of the filesystem present on a physical disk.
mpondevmpondev prints the mountpoint(s) on a specified device.
devs4mpdevs4mp returns the device(s) sustaining the specified mount point.
disks4mpdisks4mp returns the device(s) sustaining the specified mount point.

Jérôme Fenal <jfenal@free.fr> - http://jfenal.free.fr/Solaris/

This is version 0.01 of the svm script.

Copyright (C) 2004, 2005 Jérôme Fenal. All Rights Reserved
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

in which you find this script.
is used to get raw disk partitions.
is used to get current mounted devices.
metastat(1M), metatool(1M), etc.