Download - Veritas VxVM Tasks

Transcript
Page 1: Veritas VxVM Tasks

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

run “vxdiskadm” select option 4 to “remove a disk for replacement”1.run option 11 to take disk offline2.run luxadm remove_device [-f] <array>,<slot> (remember to do this both sides in a cluster)3.replace disk4.run luxadm insert_device <array>,<slot> (remember to do this both sides in a cluster)5.run vxdctl enable6.run “vxdiskadm” select option 5 to “replace a failed or removed disk”7.run "vxtask list" to make sure volumes have been sync'd if mirrors are involved8.

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>

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

1 of 2 3/1/14 11:24 AM

Page 2: Veritas VxVM Tasks

To abort the precommit:

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

To confirm that disk group is ok: # vxprint -g <diskgroup>

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

2 of 2 3/1/14 11:24 AM


Top Related