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
explaindev prints a plain english description of the device.
getsize
getsize prints the size of a device.
showconfig
showconfig essentially prints the explaindev string for all devices in the SVM configuration.
getphysdev
getphysdev prints out the physical device(s) underlying an SVM device.
getnextdev
getnextdev prints out the next free device. It does not take into account holes in the device list.
isdevfree
isdevfree prints the status (free or not free) for the given device.
showpart
showpart prints out the partitions for the specified disk(s). If no disk is specified, all disks partitions are printed.
showsp
showsp 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
getsubdevs prints the list of devices underlying those passed as argument(s). Only one level deep.
mpondisk
FIXME mpondisk prints the list of the filesystem present on a physical disk.
mpondev
mpondev prints the mountpoint(s) on a specified device.
devs4mp
devs4mp returns the device(s) sustaining the specified mount point.
disks4mp
disks4mp 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 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.
Solaris::Disk::SVM
in which you find this script.
Solaris::Disk::Partitions
is used to get raw disk partitions.
Solaris::Disk::MountTable
is used to get current mounted devices.
SDS / SVM manual pages
metastat(1M), metatool(1M), etc.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Jérôme'. Assuming CP1252
To install Solaris::Disk::SVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Solaris::Disk::SVM
CPAN shell
perl -MCPAN -e shell install Solaris::Disk::SVM
For more information on module installation, please visit the detailed CPAN module installation guide.