<?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>Sys-Admin Information&#039;s &#187; LVM</title>
	<atom:link href="http://sysinfo.bascomp.org/category/hpux/lvm/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rename Volume Group on HP-UX (quick &amp; dirty)</title>
		<link>http://sysinfo.bascomp.org/2009/03/rename-volume-group-on-hpux-quick-dirty/</link>
		<comments>http://sysinfo.bascomp.org/2009/03/rename-volume-group-on-hpux-quick-dirty/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 10:37:32 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[HPUX]]></category>
		<category><![CDATA[LVM]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=113</guid>
		<description><![CDATA[Can you explain how to rename a volume group (VG)?, How to rename your Volume Group on HP-UX ? and many more question about how to rename the volume group. here I show you the magic of how to rename your Volume Group.

bash&#62; bdf&#124;grep /rdbms/oradata/a
/dev/vg07/lvol1    5144576 3515198 1527542   70% /rdbms/oradata/a

We [...]]]></description>
			<content:encoded><![CDATA[<p>Can you explain how to rename a volume group (VG)?, How to rename your Volume Group on HP-UX ? and many more question about how to rename the volume group. here I show you the magic of how to rename your Volume Group.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> bdf<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #000000; font-weight: bold;">/</span>rdbms<span style="color: #000000; font-weight: bold;">/</span>oradata<span style="color: #000000; font-weight: bold;">/</span>a
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vg07<span style="color: #000000; font-weight: bold;">/</span>lvol1    <span style="color: #000000;">5144576</span> <span style="color: #000000;">3515198</span> <span style="color: #000000;">1527542</span>   <span style="color: #000000;">70</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>rdbms<span style="color: #000000; font-weight: bold;">/</span>oradata<span style="color: #000000; font-weight: bold;">/</span>a</pre></div></div>

<p>We will rename VG07 to VG20, backup your data first.</p>
<p>Backup VG config First</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> vgcfgbackup <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vg07
Volume Group configuration <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vg07 has been saved <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lvmconf<span style="color: #000000; font-weight: bold;">/</span>vg07.conf</pre></div></div>

<p>Ok, now deactivate the first volume group</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> vgchange <span style="color: #660033;">-a</span> n <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vg07
Volume group <span style="color: #ff0000;">&quot;/dev/vg07&quot;</span> has been successfully changed.</pre></div></div>

<p>Export Vg07 dengan nama 'vg20.map'</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> vgexport <span style="color: #660033;">-v</span> <span style="color: #660033;">-s</span> <span style="color: #660033;">-m</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>vg20.map <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vg07
Beginning the <span style="color: #7a0874; font-weight: bold;">export</span> process on Volume Group <span style="color: #ff0000;">&quot;/dev/vg07&quot;</span>.
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c5t0d0
Volume group <span style="color: #ff0000;">&quot;/dev/vg07&quot;</span> has been successfully removed.</pre></div></div>

<p>Create New Volume group (VG20)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vg20
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">mknod</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vg20<span style="color: #000000; font-weight: bold;">/</span>group c <span style="color: #000000;">64</span> 0x1a0000</pre></div></div>

<p>Import VG nya</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> vgimport <span style="color: #660033;">-v</span> <span style="color: #660033;">-s</span> <span style="color: #660033;">-m</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>vg20.map <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vg20
Beginning the import process on Volume Group <span style="color: #ff0000;">&quot;/dev/20&quot;</span>.
Logical volume <span style="color: #ff0000;">&quot;/dev/vg20/lvol1&quot;</span> has been successfully created
with lv number 1.
Volume group <span style="color: #ff0000;">&quot;/dev/vg20&quot;</span> has been successfully created.</pre></div></div>

<p>Last but not least, Enable the VG</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> vgchange <span style="color: #660033;">-a</span> y <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>vg20
Activated volume group
Volume group <span style="color: #ff0000;">&quot;/dev/vg20&quot;</span> has been successfully changed.</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2009/03/rename-volume-group-on-hpux-quick-dirty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
