Got it

Veritas Commands

Latest reply: Oct 12, 2021 04:27:23 272 1 2 0 0

Common Commands

1.vxdisk list
2.vxdisk list devicename
3.vxdisk -o alldgs list
4.vxdg list diskgroup
5.vxdg free
6.vxdg -g diskgroup free
7. vxdisksetup -i devicename//Initialize the disk.
8.vxdiskunsetup -i devicename
9. vxdg init diskgroup[cds=on] disk=devicename//Create a dg.
10. vxdg -g diskgroup adddisk diskname=devicename//Add a disk to a disk group.
11.vxdg [-g diskgroup] rmdisk diskname
12.vxdg destroy diskgroup
13.vxdg deport diskgroup
14.vxdg import diskgroup


Run the vxlicrep command to check whether the license is activated and install the license vxlicinst.

2. Check whether the VxVM status is normal (vxdctl mode).

vxdctl enable

3. Scan the disks mounted to the system.

vxdctl disable; vxdctl enable

4. Displaying Disk Information:

vxdisk list; vxdisk list sdb; vxdiskadm

5. Initialize the disk:

vxdisksetup -i sdi

6. Run the command to check whether the disk is initialized successfully.

vxdisk -o alldgs list

7. Creating a DG

vxdg init dgora dgora01=sdi

8. Adding Disk  to the DG

vxdg -g datayjdg adddisk datayjdg02=sdd

9. Create LVs.

vxassist -g dgora -U gen make lv_system 400 m dgora01
vxassist -g dgora -U fsgen make lv_arch2 400 m dgora01

10. Run the command to check the DG information. 

vxprint -g DGra -v

11. Export DG information:

vxdg deport dgdrora

12. Import DG information:

vxdg import dgdrora

13. Restoring the  in the DG

lv vxrecover -g dgdrora -sb

14. Run the  command to activate the lvs in the DG.

vxvol -g dgdrora startall

15. Modifying the LV Attribute:

vxedit -g dgdrora set user=drora group=dba mode=0660 lv_system

16. Run the command to view the DG information.

vxdg list

17. Run the command to check the available space of the DG.

vxassist -g dgname maxsize

18. Delete the DG

vxdg destroy dgname

19. Creating the Active RVG

vradmin -g dgname createpri rvgname lv01_name,lv02_name... srl_name5

20. Adding a slave RVG

vradmin -g dgname -sdg dgname addsec local_rvgname pri_hostname sec_hostname prlink=prlk_rvgname srlink=srlk_rvgname

21. Creating a SRL

vxassist -g dgname make srlname size

22. Querying SRL Information:

vxprint -g dgname -l srlname

23. Adding an DCM

vxassist -g dgname addlog lvname logtype=dcm ndcmlog=1

24. Deleting the LV

vxassist -g dgname remove volume lvname

25. Deleting an DCM

vxassist -g dgname remove log lvname

26. Deleting an RVG

vxedit -g dgname -rf rm rvgname

27. Rename diskname

vxedit -g dgname rename oldname newname

28. Rename DG

vxdg -n newname import oldname

29. Renaming the LV

vxedit -g dgname rename oldname newname

30. Expand the logical volume. 

vxassist -g dgname growto lvname new-length

31. Shrinking the  LV

vxassist -g dgname shrinkto lvname new-length
vxassist -f -g dgname shrinkto lvname new-length

32. Checking the RLink Status:

vxprint -g dgname -P{l}; vradmin -l printrvg

33. Run the command to check the RVG status.

vxprint -g dgname -V{l}

33. Synchronizing Data Between the PM and RM:

vradmin -g dgname -a startrep rvgname sec_hostname

34. Enabling the FastResync Function of a Volume:

vxvol -g data01dg set fastresync=on lvrootdbs

35. Create the Snapshot

vxassist -g data01dg snapstart lvrootdbs data01dg02

36. Checking Whether the Snapshot of the LV Is Successfully Created:

vxprint -g data01dg -p | grep SNAPDONE

37. Change the communication protocol used by the RLink to TCP

vxedit -g datadg set protocol=TCP prlk_data01rvg

38. Checking the Read/Write Status of Volumes and Disks:

vxstat -g data01dg -i2 -c10 -rvd

39. Remove the volume from the rvg

vxvol -g scpdg dis lvscu

40. Stopping the rvg

vxrvg -g scpdg -f stop scp01rvg

41. Viewing the Data Synchronization Process

vxrlink -g datadg -i 2 status prlk_data01rvg

40. Enable the VxVM

vxdctl enable function.

41. Starting the VVR

/etc/init.d/vras-vradmind.sh start

42. Stopping the VVR

/etc/init.d/vras-vradmind.sh stop


Useful post. Thanks.
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.