Vous êtes sur la page 1sur 2

Veritas VxVM Tasks

http://www.datadisk.co.uk/html_docs/veritas/veritas_lvm_tasks.htm

Veritas Volume Manager Tasks


Using slices to create minimal rootdg

veritas already installed

vxdctl add disk c0t0d0s4 type=simple


vxdisk -f init c0t0d0s4 type=simple
vxdg adddisk disk01=c0t0d0s4
You can now remove/move the remain disks from rootdg

veritas installed but not setup

vxconfigd d ( if already started use vxconfig m disabled)


vxdctl init
vxdg init rootdg
vxdctl add disk c0t0s0s4 type=simple
vxdisk -f init c0t0d0s4 type=simple
vxdg adddisk disk01=c0t0d0s4
vxdctl enable
rm /etc/vx/reconfig.d/state.d/install-db

Replace a disk in A5000


1.
2.
3.
4.
5.
6.
7.
8.

run vxdiskadm select option 4 to remove a disk for replacement


run option 11 to take disk offline
run luxadm remove_device [-f] <array>,<slot> (remember to do this both sides in a cluster)
replace disk
run luxadm insert_device <array>,<slot>
(remember to do this both sides in a cluster)
run vxdctl enable
run vxdiskadm select option 5 to replace a failed or removed disk
run "vxtask list" to make sure volumes have been sync'd if mirrors are involved

Restore a lost volume group (Volume manager 4.0)


Obtain a configuration file (if it exists):
# cd /etc/vx/cbr/bk/<diskgroup>.<diskgroupid>.<hostname>

You will see a file called "<diskgroupid>.<hostname>.cfgrec" this is the backed up configuration file for the disk
group
Display the configuration file in readable format:
# cat <diskgroup>.<diskgroupid>.<hostname>.cfgrec | vxprint -D - -htr (This should show you all the
volumes under the group)

To precommit the changes run the following:


# /etc/vx/bin/vxconfigrestore -p <diskgroup>

To commit the changes after the precommit:


# /etc/vx/bin/vxconfigrestore -c <diskgroup>

1 of 2

3/1/14 11:24 AM

Veritas VxVM Tasks

http://www.datadisk.co.uk/html_docs/veritas/veritas_lvm_tasks.htm

To abort the precommit:


# /etc/vx/bin/vxconfigrestore -d <diskgroup>

To confirm that disk group is ok:


# vxprint -g <diskgroup>

2 of 2

3/1/14 11:24 AM

Vous aimerez peut-être aussi