~~socialite:icon reddit googleplus stumbleupon twitter~~ ===== Veritas Voulme Manager Tips (VXVM)===== ==== Calculating Free Space ==== To calculate the free space, the following can be used: vxdg free - length shown is free space in 512 byte blocks To find out the total free space in Kb, the following awk statement could be used: vxdg free | awk ' $6 ~ /^[0-9]/ { result += $6 } \ END { { answer = ( result * 512) / 1024 } print answer }' Alternatively use: vxassist maxsize vxassist maxsize layout=stripe - will give the maximum space available to create a stripe. ==== Wiping a Volume ==== To wipe a volume or convert a filesystem to a raw partition, do the following: 1. vxvol stop volume 2. vxmend fix empty volume 3. vxvol init zero volume ==== Removing a Volume (and plexes and subdisks) ==== vxedit -r rm volume ==== Finding VXVM minor numbers ==== ls -IL /dev/vx/dsk/*dg/* | grep minor ==== VXVM relayout ==== vxassist -g dg-name relayout volumename layout=stripe stripeunit=512k ncol=2 alloc=disk1,disk2,etc ==== VXVM resize ==== vxresize -b -F vxfs -g dg-name -x volumename newsize e.g. vxresize -g DG -F vxfs volume +25G vxdevicename **Still stuck? Maybe we can help.** Contact us [[https://www.upwork.com/o/profiles/users/_~01207a4bc438b48c6e|at Upwork]] Never miss a thing [[http://www.justsomestuff.co.uk/subscribe.php|subscribe to our newsletter]] {{glyphicon>envelope}} or follow us [[http://twitter.com/itsjustsomestuf|on twitter]] {{glyphicon>hand-left}} For more super cool techie stuff [[http://www.justsomestuff.co.uk/theblog|check out our blog!!]] ===Recent Changes=== {{changes>}} ====Contribute to this wiki==== Why not help others by sharing your knowledge? Contribute something to this wiki and [[http://www.justsomestuff.co.uk/hall_of_fame.html|join out hall of fame!]]\\ [[http://www.justsomestuff.co.uk/theblog/contact-page|Contact us]] for a user name and password