<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unix Sysadmin &#187; Veritas Volume Manager</title>
	<atom:link href="http://www.sysadmindayph.com/blog/category/veritas-volume-manager/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sysadmindayph.com/blog</link>
	<description>SysAdmin Blog, TechTips and Reviews</description>
	<lastBuildDate>Fri, 27 Jan 2012 04:36:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>VxVM vxassist ERROR V-5-1-5455 Operation requires a disk group</title>
		<link>http://www.sysadmindayph.com/blog/vxvm-vxassist-error-v-5-1-5455-operation-requires-a-disk-group/</link>
		<comments>http://www.sysadmindayph.com/blog/vxvm-vxassist-error-v-5-1-5455-operation-requires-a-disk-group/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 04:30:37 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Veritas Volume Manager]]></category>
		<category><![CDATA[veritas]]></category>
		<category><![CDATA[vxassist]]></category>
		<category><![CDATA[vxvm]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=288</guid>
		<description><![CDATA[On this post we will take a closer look at this veritas volume manager error when trying to display the available disk space in an existig datagroup. The error is &#8220;VxVM vxassist ERROR V-5-1-5455 Operation requires a disk group&#8221; This is a draft post as I currently have no answer yet.. Weird thing is, the &#8230; <a href="http://www.sysadmindayph.com/blog/vxvm-vxassist-error-v-5-1-5455-operation-requires-a-disk-group/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>On this post we will take a closer look at this veritas volume manager error when trying to display the available disk space in an existig datagroup. The error is &#8220;<strong>VxVM vxassist ERROR V-5-1-5455 Operation requires a disk group</strong>&#8221;</p>
<p>This is a draft post as I currently have no answer yet.. Weird thing is, the vxassist command works on one server and not in the other.. which is spitting out the error in subject.</p>
<p>Take this example:</p>
<p>Working server:</p>
<p><code><br />
# vxdg list<br />
NAME         STATE           ID<br />
datadg1      enabled              1169455228.81.sgtjcpb1<br />
datadg2      enabled              1169455429.95.sgtjcpb1<br />
# vxassist -g datadg1 maxsize layout=concat<br />
Maximum volume size: 390506496 (190677Mb)<br />
# vxassist -g datadg2 maxsize layout=concat<br />
Maximum volume size: 676767744 (330453Mb)<br />
# vxassist -g datadg1 maxsize layout=raid5<br />
Maximum volume size: 270483456 (132072Mb)<br />
# vxassist -g datadg2 maxsize layout=raid5<br />
Maximum volume size: 375160832 (183184Mb)<br />
</code></p>
<p>Looks fine right? But when I tried the same syntax on the other sever, I got this:</p>
<p><code># vxdg -g sysdg free<br />
DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS<br />
sysdg05      emcpower5s2  emcpower5    16777216  2029952   n<br />
sysdg06      emcpower3s2  emcpower3    16777216  2029952   n<br />
sysdg07      emcpower4s2  emcpower4    167772160 2020352   n<br />
# vxassist -d sysdg maxsize layout=concat<br />
VxVM vxassist ERROR V-5-1-5455 Operation requires a disk group<br />
#<br />
</code></p>
<p>I suspect it has something to do with the Veritas VX version or the OS it is running. Will investigate further and let you know.<br />
&#8211;</p>
<p>UPDATE.. saw the error after 5 minutes.. saw it? I found &#8220;d&#8221; error.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/vxvm-vxassist-error-v-5-1-5455-operation-requires-a-disk-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Veritas VxVM &#8211; Creating Filesystem Command Line</title>
		<link>http://www.sysadmindayph.com/blog/veritas-vxvm-creating-filesystem-command-line/</link>
		<comments>http://www.sysadmindayph.com/blog/veritas-vxvm-creating-filesystem-command-line/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 06:46:17 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Veritas Volume Manager]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=238</guid>
		<description><![CDATA[What diskgroups are Available: vxdg list Finding free space in Veritas diskgroups vxdg -g oradg free vxassist -g oradg maxsize layout=concat list the existing filesystem in datagroup # vxinfo -g datadg1 oracle raid5 Started database raid5 Started u05 raid5 Started u07 raid5 Started # vxinfo -g datadg2 database raid5 Started index raid5 Started u06 raid5 &#8230; <a href="http://www.sysadmindayph.com/blog/veritas-vxvm-creating-filesystem-command-line/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p><strong>What diskgroups are Available:</strong></p>
<p>vxdg list</p>
<p><strong>Finding free space in Veritas diskgroups</strong></p>
<p>vxdg -g oradg free<br />
vxassist -g oradg maxsize layout=concat</p>
<p><strong>list the existing filesystem in datagroup</strong></p>
<p># vxinfo -g datadg1<br />
oracle         raid5    Started<br />
database       raid5    Started<br />
u05            raid5    Started<br />
u07            raid5    Started<br />
# vxinfo -g datadg2<br />
database       raid5    Started<br />
index          raid5    Started<br />
u06            raid5    Started<br />
u08            raid5    Starte</p>
<p><strong><br />
To Create a Filesystem</strong><br />
 &#8211; create volume first (if disk group is there already, that is, just another request for another filesystem from free space)</p>
<p> &#8211; </p>
<p># vxdg init datadg disk01=c1t1d0s2 disk02=c1t2d0s2 disk03=c1t3d0s2 disk04=c1t4d0s2<br />
# vxassist -g datadg make vol01 2g layout=raid5</p>
<p>or<br />
# vxassist -g DG1 make VolS 10m layout=stripe c1t1d0 c1t2d0s2</p>
<p>bash-3.00# mount -F vxfs /dev/vx/dsk/DG1/VolS /stripe/<br />
bash-3.00# mount -F vxfs /dev/vx/dsk/DG1/VolM /mirror/</p>
<p>&#8212;</p>
<p>Reason: RFC13585613<br />
# vxdg list<br />
NAME         STATE           ID<br />
orapdg       enabled              1140953419.50.nsgct2-ivm01<br />
# vxassist -g orapdg maxsize layout=concat<br />
Maximum volume size: 872189952 (425874Mb)<br />
# vxinfo -g orapdg<br />
oralib         fsgen    Started<br />
archive        fsgen    Started<br />
redolog08      fsgen    Started<br />
archivelog     fsgen    Started<br />
usertable      fsgen    Started<br />
indextable     fsgen    Started</p>
<p>&#8212;&#8211;<br />
# create volume for /DBA01<br />
# vxassist -g orapdg make dba01 350g layout=fsgen  # <<&#8211; fsgen ??</p>
<p># create filesystem from volume<br />
# mkfs &#8211; F vxfs /dev/vx/rdks/orapdg/dba01</p>
<p># mount point<br />
# mkdir /DBA01<br />
# mount -F vxfs /dev/vx/dsk/orapdg/dba01 /DBA01</p>
<p># ownership<br />
# chown -R appdbmnt:appdba /DBA01</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/veritas-vxvm-creating-filesystem-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Veritas Volume Manager VxVM Basics Commands Cheats</title>
		<link>http://www.sysadmindayph.com/blog/veritas-volume-manager-vxvm-basics-commands-cheats/</link>
		<comments>http://www.sysadmindayph.com/blog/veritas-volume-manager-vxvm-basics-commands-cheats/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 09:11:05 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Veritas Volume Manager]]></category>
		<category><![CDATA[diskgroups]]></category>
		<category><![CDATA[veritas]]></category>
		<category><![CDATA[vxfs]]></category>
		<category><![CDATA[vxvm]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=181</guid>
		<description><![CDATA[Veritas Volume Manager VxVM Basics Commands Cheats.. The authority site for this topic, the VXVM on VXFS, if you do a Google search for any tutorial or command cheat sheet is Cuddletech. I want to post&#8230; say, borrowing, the content of that page to this post for my own personal reference&#8230; Love your own page &#8230; <a href="http://www.sysadmindayph.com/blog/veritas-volume-manager-vxvm-basics-commands-cheats/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Veritas Volume Manager <a href="http://www.sysadmindayph.com/blog/veritas-volume-manager-vxvm-basics-commands-cheats/">VxVM Basics Commands Cheats</a>.. The authority site for this topic, the VXVM on VXFS, if you do a Google search for any tutorial or command cheat sheet is Cuddletech.</p>
<p>I want to post&#8230; say, borrowing, the content of that page to this post for my own personal reference&#8230; Love your own page right? And since I am more likely to open SysadminPH that cuddletech, I thought we not copy the Veritas tutorial page here for my ease of access?</p>
<p><span id="more-181"></span></p>
<p>  The Cuddletech Veritas Cheat Sheet</p>
<p>		by: B. Rockwood<br />
	      benr@cuddletech.com</p>
<p>Overview:<br />
&#8212;&#8212;&#8211;</p>
<p>        The purpose of this paper is to<br />
quickly get you up to speed in Veritas,<br />
and to act as a quick referance.  All new<br />
users to Veritas are HIGHLY encouraged to<br />
first read the Veritas users guides enlucded<br />
with Veritas, and found on docs.sun.com</p>
<p>Remember!: Almost all commands can use several<br />
        diffrent options that are similar<br />
        across all commands.  The most used<br />
        of these is &#8220;-g <diskgroup>&#8221; which<br />
        specifies which Disk Group the command<br />
        will be executed on.  For instance,<br />
        vxinfo will only display volume information<br />
        for volumes in the rootdg, to see<br />
        volumes in the datadg, for instance, use:<br />
        Ex: &#8220;vxinfo -g datadg&#8221;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
        DISPLAY and MONITORING<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>vxdisk list<br />
        List all disks used by Veritas (VX).</p>
<p>vxdisk list <diskname><br />
        Display detailed information about a<br />
        single disk, including mutlipathing<br />
        information, size, type, Vx version,<br />
        and more.</p>
<p>vxprint<br />
        Display report style information about<br />
        the current status of all Vx componants,<br />
        including disks, subdisks, plexes, and<br />
        volumes.</p>
<p>vxprint <componant><br />
        Display report style information about<br />
        the current status of ONLY the componant<br />
        you request.  So for instance,<br />
        &#8220;vxprint vol01&#8243; shows information about<br />
        all subcomponants of vol01.  This works<br />
        for plexes, disk groups, etc.</p>
<p>vxprint -hrt<br />
	Display detailed information about all<br />
	Vx componanats, including stwdith,<br />
	ncolumns, offsets, layout type, read-<br />
	policy, and more.  This is best for<br />
	a true picture of your configuration.</p>
<p>vxdg list<br />
        Display listing and state information<br />
        of all Disk Groups.</p>
<p>vxdg list <diskgroup name><br />
        Display detailed information about<br />
        a diskgroup, including flags, version,<br />
        logs status, etc.</p>
<p>vxinfo<br />
        Display volume status and volume type.<br />
        By default, only displays &#8220;rootdg&#8221;,<br />
        to display a diffrent Disk Group,<br />
        use &#8220;vxinfo -g <dgname>&#8220;.</p>
<p>vxassist maxgrow <volume><br />
        This command will output the maximum size<br />
        the volume specified can increased by,<br />
        specified in sectors.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
        DISK TASKS and COMMANDS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>vxdiskadd <devname><br />
        Adds a disk to Vx by Initializing and Encapsolating<br />
        it.  Specified by its device name (ex: c0t1d0s2).<br />
        NOTE: You&#8217;ll need to reboot to finalize the<br />
        disk addition!</p>
<p>        This command, can also be used to add a disk to<br />
        a specified disk group.  Just follow the prompts.<br />
        No reboots needed for changing DG&#8217;s.</p>
<p>vxedit rename
<oldname> <newname><br />
        Rename a Vx disk. Ex: &#8220;vxedit rename disk01 disk05&#8243;</p>
<p>vxedit set reserve=on <diskname><br />
        Sets the &#8220;reserve&#8221; flag to a Vx disk.  This<br />
        is used to keep specific disks from being<br />
        accidentally, or generally used.</p>
<p>vxdisk offline <diskname><br />
        Used to &#8220;offline&#8221; a disk.  The disk should<br />
        be removed from its diskgroup before being<br />
        offlined.</p>
<p>vxdisk rm <devname><br />
        Used to remove disks from Vx control completely.<br />
        Ex: &#8220;vxdisk rm c0t1d0s2&#8243;  Make sure to<br />
        removed the disk from its diskgroup, and offline<br />
        the disk before removing it.</p>
<p>vxedit set spare=on <diskname><br />
        Sets the &#8220;spare&#8221; flag to a Vx disk.  This is used<br />
        to make the specified disk a hot spare, which<br />
        is then added to the &#8220;hot spare pool&#8221;.</p>
<p>vxedit set spare=off <diskname><br />
        Same as above but removes the disk from the<br />
        &#8220;hot spare pool&#8221;.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
        DISK GROUPS and COMMANDS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>vxdg init <diskgroup> <diskname>=<devname><br />
        Creates a new disk group, and assigns the naming<br />
        scheme to the first disk added to the group.<br />
        ex: &#8220;vxdg init newdg newdg01=c0t10d0s2&#8243;.<br />
        NOTE: This is kinda tricky because the disk that<br />
        you&#8217;re adding can&#8217;t be a member of ANY DG, but<br />
        must be initialized.  It&#8217;s easier to use<br />
        &#8220;vxdiskadd&#8221;, and add the disk to a newdg by<br />
        specifying a new DG name for the DG field.</p>
<p>vxdg deport <diskgroup><br />
        Disabled a diskgroup, but doesn&#8217;t remove it.  Often<br />
        used as an organized pool of disk to realocate, and<br />
        to moved DG&#8217;s from one system to another.</p>
<p>vxdg import <diskgroup><br />
        Reverse of above.  Enables local access to the specified<br />
        disk group.</p>
<p>vxdg -n <newdgname>
<olddgname>
        Change a Disk Groups name.</p>
<p>vxdg list <dgname><br />
        Use this to check the version numbers of Disk<br />
        Groups.  Shows other details about the DG too.</p>
<p>vxdg destroy <dgname><br />
        Removes the specified DG, and frees all its disks<br />
        back to general use by Vx.</p>
<p>-= Quick Chart!: Disk Group Version Number Translation</p>
<p>        VxVM          Introduced                Supported<br />
        Release         Version                 Versions<br />
        &#8212;&#8212;-       &#8212;&#8212;&#8212;&#8212;              &#8212;&#8212;&#8212;<br />
        1.2             10                        10<br />
        1.3             15                        15<br />
        2.0             20                        20<br />
        2.2             30                        30<br />
        2.3             40                        40<br />
        2.5             50                        50<br />
        3.0             60                       20-60</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
        SUBDISKS and COMMANDS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;                                       </p>
<p>vxmake sd <subdiskname> <disk>,<offset>,<length><br />
        Creates a subdisk with the specified name,<br />
        and by the offset and length specified.<br />
        ex: &#8220;vxmake sd disk02-01 disk02,0,8000&#8243;<br />
        NOTE: If you are going to add this subdisk<br />
        to a plex, its good to check the other<br />
        subdisks in that plex to see what their<br />
        lengths and offsets are, use the command:<br />
        &#8220;vxprint -st&#8221;</p>
<p>vxedit rm <subdiskname><br />
        Removes a subdisk.                       </p>
<p>vxsd assoc
<plexname> <subdiskname>,&#8230;.<br />
        Associates the specified subdisks to<br />
        the specified plex.  Example:<br />
        &#8220;vxsd assoc vol01-03 disk01-01,disk02-01&#8243;<br />
        NOTE: Striped volumes are diffrent,<br />
        you need to specify the column# so<br />
        use the following:                                           </p>
<p>vxsd -l<br />
<col#/offset> assoc
<plexname> <subdiskname>,&#8230;<br />
        Same as above, but used for associating<br />
	subdisks to a striped plex.  Use the command<br />
        &#8220;vxprint -st&#8221; to see what other subdisk<br />
        in the plex look like, and then set the<br />
        new subdisks column number and offset<br />
        (found in the seventh column of output)<br />
        to the appropriate value.</p>
<p>vxsd aslog
<plex> <subdiskname><br />
        Adds a log subdisk to the specified plex.<br />
        Ex: &#8220;vxsd aslog vol01-02 disk03-01&#8243; </p>
<p>vxsd dis <subdiskname><br />
        Disassociates the specified subdisk from its<br />
        current plex.                                                      </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
        PLEXS and COMMANDS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>vxmake plex
<plexname> sd=<subdiskname>,<subdiskname>,&#8230;.<br />
        Creates a new plex by the name specified and<br />
        assigns the specified subdisks to it.</p>
<p>vxmake plex
<plexname> layout=<layout> stwidth=<stwidth> ncolumn=<ncolumn> sd=&#8230;<br />
	Like above command, but specifies layout type<br />
	as defined by <layout>, which is used for creation<br />
	of striped and RAID5 plexes.  The layout is<br />
	constrained by the defined number of columns,<br />
	and stripe width.  Subdisks specified are<br />
	added to the created plex.	</p>
<p>vxplex att <volname>
<plexname>
        Associates specified plex with specified volume.<br />
        (Adds a mirror)<br />
        NOTE: Attachment will take a while.  Watch<br />
        it with Vxtask, or via vxprint</p>
<p>vxplex dis
<plexname>
        Disassociate specified plex from its connected<br />
        volume.</p>
<p>vxedit -r rm
<plexname>
        Remove the plex.</p>
<p>vxmend off
<plexname>
        Offlines a plex for repair to it&#8217;s disks.</p>
<p>vxplex det
<plexname>
        Detaches specified plex from its connected<br />
        volume, but maintians association with it&#8217;s<br />
        volume.  The plex is no longer used<br />
        for I/O untill it is (re)attached.</p>
<p>vxmend fix clean
<plexname>
        Used to clean plexes that are in the<br />
        &#8220;unclean&#8221; state.  Used with unstartable<br />
        volumes.</p>
<p>vxplex mv <originalplex> <newplex><br />
        Moves the data content from the origonal<br />
        plex onto a new plex.<br />
        NOTE: The old plex must be active (ENABLED).<br />
        The new plex should be the same length, or<br />
        larger than the old plex.  The new plex<br />
        must not be associated with another volume.<br />
        (duh)</p>
<p>vxplex cp <volume> <newplex><br />
        Copies the data from the specified volume<br />
        to a new plex.<br />
        NOTE: The new plex cannot be associated<br />
        with any other volume.  The new plex,<br />
        further, will NOT be attached to<br />
        the specified volume.  (Also, see notes<br />
        from above)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
        VOLUMES and COMMANDS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>vxassist make <volumename> <length><br />
        Creates a new volume with the name specified<br />
        and is made to the length specified.<br />
        Ex: &#8220;vxassist make newvol 10m&#8221;<br />
        NOTE: This command will pull disk space<br />
        from the generally avalible Vx disk space.</p>
<p>vxassist make <volname> <length> layout=<layouttype> <disk> <disk> &#8230;.<br />
        Like the above command, but with layout specified.<br />
        The most common layouts are: striped and raid5<br />
        ex: &#8220;vxassist make newvol 100m layout=raid5 disk01 disk02 disk03&#8243;<br />
        NOTE: See the vxassist(1M) man page for more information.</p>
<p>vxmake vol <volname> len=<length> plex=
<plexname>,&#8230;<br />
        Creates a new volume of specified length (usually<br />
        in sectors), and attachs the specified plexes to that<br />
        volume.  Useful for creating volumes to house<br />
        copied or moved plexes.<br />
        NOTE: See the vxmake(1M) man page for more information.</p>
<p>vxvol init <state> <volname> [plexname]<br />
        Manually sets the state of a volume.<br />
        NOTE: Not for the squimish.</p>
<p>vxassist maxsize [layout=raid5]<br />
        Returns the maximum size avalible via Vx to create<br />
        a new volume.  By adding &#8220;layout=raid5&#8243; to the command<br />
        the calulations take into account losse due<br />
        to raid5.  Output is in sectors and Megs.</p>
<p>vxassist maxgrow <volname><br />
        Returns the maximum ammount of Vx space that<br />
        can be added to the specified volume.</p>
<p>vxassist mirror <volname><br />
        Creates a mirror for the specified volume.<br />
        NOTE: Think of this as &#8220;handsfree plex creation&#8221;.<br />
        This is fast, but the disks you want used<br />
        may not be used&#8230; often best to do manually.</p>
<p>vxassist addlog <volname><br />
        Adds a Dirty Region Log (DRL) for the specified volume.</p>
<p>vxassist remove log <volname><br />
        Reverse of above.</p>
<p>vxvol start <volname><br />
        Starts a volume</p>
<p>vxvol stop <volname><br />
        Stops a volume.  Alternately you can use command as<br />
        such: &#8220;vxvol stopall&#8221; in order to stop all volumes.</p>
<p>vxassit growto/growby/shrinkto/shrinkby <volname> <length><br />
        Resizes the volume specified.  Use one of the<br />
        following: growto, growby, shrinkto, and shrinkby<br />
        in order to descide what <length> specifies.<br />
        By default length is specified in sectors.<br />
        This does not resize the filesystem inside the volume.<br />
        NOTE: Don&#8217;t shrink volumes to be less that<br />
        its contained filesystem! (duh)</p>
<p>vxvol set len=<length> <volname><br />
        An alternate to above command.  Sets the absolute<br />
        lenths of the specified volume to the length<br />
        specified, by default, in sectors.  This<br />
        does not resize the filesystem inside the volume.</p>
<p>        NOTE: There is also a resize(1M) command, used<br />
        for resizing both volume AND filesytem.  See<br />
        the man page for that one.</p>
<p>vxedit rm <volname><br />
        Removes the specified volume. (poof!)<br />
        NOTE: If the volume specified is in the ENABLED<br />
        state, you will need to use the command<br />
        &#8220;vxedit -f <volname>&#8220;.  Also, using the &#8220;r&#8221;<br />
        with &#8220;f&#8221; will remove all plexes and subdisks<br />
        with the volume.  If you didn&#8217;t guess, &#8220;r&#8221;<br />
        is Recursive, and &#8220;f&#8221; is Force.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Misc Stuff:</p>
<p>To calculate the size of a filesystem inside a volume, use<br />
the command:<br />
	fstyp -v <volume-device-path> | head -30 | grep ncg<br />
Ignore the errors.  Output will look this this:<br />
  # fstyp -v /dev/vx/rdsk/datadg/vol01 | head -30 | grep ncg<br />
  ncg     17152   size    70254592        blocks  65863396<br />
  # Broken Pipe<br />
  Unknown_fstyp (no matches)<br />
The size found after the label &#8220;size&#8221; is presented in kilobytes.<br />
You can convert to sectors by multiplying by 2.</p>
<p>		&#8212;&#8212;&#8212;&#8211;</p>
<p>To calculate the size of a volume, use vxprint, and look for the<br />
&#8220;len&#8221;.  The volume length is in sectors.  Convert to kilobytes<br />
by dividing by 2.</p>
<p>		&#8212;&#8212;&#8212;&#8212;-</p>
<p>Volume Growth Procudure:<br />
1) You can use vxassist to estimate the max size of<br />
a given volume based on the disks you wish to add:<br />
ex: # vxassist -g rootdg maxgrow vol01 disk01 disk02 disk03</p>
<p>2) Next, actually grow the volume (NOT THE FS) via the<br />
command (assuming maxgrow outputed 10639360 as the maxsize):<br />
ex:# vxassist -g rootdg growto vol01 10639360 disk01 disk02 disk03</p>
<p>3) Now VxVM grinds away, monitor with vxtask.</p>
<p>4) Now Grow the Filesystem, for UFS use:<br />
# /usr/lib/fs/ufs/mkfs -F ufs -M /export /dev/vx/rdsk/rootdg/vol01 10639360</p>
<p>for VXFS ufs:<br />
# /usr/lib/fs/vxfs/fsadm -b 10639360 -r /dev/vx/rdsk/rootdg/vol01 /mnt<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>5) Done!</p>
<p>	&#8212;&#8212;&#8212;-</p>
<p>Changing User/Group of a Raw Volume: (ex:)<br />
 vxedit -g xxxdg set group=dba data_vol_123<br />
 vxedit -g xxxdg set user=oracle data_vol_123</p>
<p>Thanks to Ben Rockwood! Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/veritas-volume-manager-vxvm-basics-commands-cheats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

