Metadevice Operations Action Status of metadevices Stripe with 3 slices Concat with 2 slices Raid5 mirror d1 Create Soft Partition on metadevice d0 Create Soft Partition on disk slice Validate Soft Partition configuration Delete a metadevice Replace a drive with another drive Add a submirror to mirror Remove a undermirror from the mirror.
Metadevice Operations Action Status of metadevices Stripe with 3 slices Concat with 2 slices Raid5 mirror d1 Create Soft Partition on metadevice d0 Create Soft Partition on disk slice Validate Soft Partition configuration Delete a metadevice Replace a drive with another drive Add a submirror to mirror Remove a undermirror from the mirror.
Metadevice Operations Action Status of metadevices Stripe with 3 slices Concat with 2 slices Raid5 mirror d1 Create Soft Partition on metadevice d0 Create Soft Partition on disk slice Validate Soft Partition configuration Delete a metadevice Replace a drive with another drive Add a submirror to mirror Remove a undermirror from the mirror.
Metadevice State Database (Replicas) Metadevice Operations
Action Command Line Action Command Line List configured metadb or metadb -i Status of metadevice metastat or metastat -p metadb's Create all metadevices metainit -a (reads the configuration of /etc/lvm/md.tab) Creating Initial metadb -af -c 3 c0t0d0s7 c1t0d0s7 c2t0d0s7 Replicas (-c 3 means 3 copies in each disk slice) Stripe with 3 slices metainit d1 1 3 c2t0d0s0 c3t0d0s0 c4t0d0s0 -i 32k
Adding Replica metadb -a [-f] c3t0d0s7 Concat with 2 slices metainit d1 2 1 /dev/dsk/c2t0d0s0 1 /dev/dsk/c3t0d0s0
Metaset Operations Mirror of metadevice d1 metainit d0 -m d1
Action Command Line Create Soft Partition on metainit d10 -p d0 5000M
metadevice d0 Create a metaset metaset -s [setname] -a -h host1 host2 Create Soft Partition on metainit d10 -p c5d0d0s0 1000M Add a disk to metaset metaset -s [setname] -a /dev/dsk/c4t0d0 disk slice Remove a disks from metaset -s [setname] -d [-f] Validate Soft Partition metarecover c5d0d0s0 -p metaset /dev/dsk/c4t0d0 /dev/dsk/c5t0d0 configuration Configuration/Status of metaset or metaset -s [setname] Delete a metadevice metaclear [-f] [-r] d0 metaset Replace a drive with the metareplace -e <mirror> <component> Take ownership of metaset -s [setname] -t [-f] same drive metareplace -e d0 /dev/dsk/c2t0d0s0 metaset Replace a drive with metareplace <mirror> <component> <new-device> Release ownership of metaset -s [setname] -r another drive metareplace d0 /dev/dsk/c2t0d0s0 /dev/dsk/c6t0d0s0 metaset Add a submirror to metattach <mirror> <submirror> Interact without Sun metaset -s [setname] -C {take | release | mirror metattach d0 d2 Cluster framework * purge} Remove a submirror metadetach [-f] <mirror> <submirror> Add mediator host to metaset -s [setname] -a -m host1 host2 from the mirror metadetach d0 d2 metaset * Place submirror offline metaoffline [-f] <mirror> <submirror> Create a multi-owner metaset -s [setname] -M -a -h host1 metaoffline d0 d2 metaset * host2 Place submirror online metaonline <mirror> <submirror> Join the host to multi- metaset -s [setname] -j metaonline d0 d2 owner metaset * Setup system files for / metaroot d0 (only for boot mirror) Withdrawn the host from metaset -s [setname] -w multi-owner metaset * Notes: - For all meta commands use option “-s [setname]” if using metasets. - Also for metadb command to configure metadb's for metasets. Purge a metaset metaset -s [setname] -P - In case of Sun Cluster use /dev/did/dsk/... instead of /dev/dsk/... * Commands for Sun Cluster only! Sun Proprietary/Confidential: Internal Use Only Page 1