<?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>Hacktopia &#187; Veritas Volume Manager</title>
	<atom:link href="http://www.hacktopia.net/wp/category/vvm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hacktopia.net/wp</link>
	<description>The zen of hacking</description>
	<lastBuildDate>Tue, 15 Jun 2010 17:40:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SDS (Solstice DiskSuite) Replacing a failed disk</title>
		<link>http://www.hacktopia.net/wp/sds-solstice-disksuite-replacing-a-failed-disk/</link>
		<comments>http://www.hacktopia.net/wp/sds-solstice-disksuite-replacing-a-failed-disk/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 22:16:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Soalris X86]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris Sparc]]></category>
		<category><![CDATA[Veritas Volume Manager]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=35</guid>
		<description><![CDATA[1. Detach each submirror ex. metadetach -f d0 d20 d0: submirror d20 is detached 2. Clear each submirror ex. metaclear d20 d20: Concat/Stripe is cleared 3. Delete the db replica on the failed drive (you can find the replica output by issuing metadb command with no arguments): ex. metadb -d c0t2d0s7 4. Remove failed drive. [...]]]></description>
			<content:encoded><![CDATA[<p>1. Detach each submirror</p>
<p>ex.  metadetach -f d0 d20<br />
d0: submirror d20 is detached</p>
<p>2.  Clear each submirror</p>
<p>ex.  metaclear d20<br />
d20: Concat/Stripe is cleared</p>
<p>3.  Delete the db replica on the failed drive (you can find the replica output by issuing metadb command with no arguments):</p>
<p>ex.  metadb -d c0t2d0s7</p>
<p>4.  Remove failed drive. Replace with new drive.</p>
<p>5.  Run the format command and place the correct partition table, using the layout of the non-replaced drive.</p>
<p>6. re-create the metadb replica on the new disk</p>
<p>ex.  metadb -a c0t2d0s7</p>
<p>7. Run metainit for each replaced submirror</p>
<p>ex. metainit d21 1 1 c0t2d0s1<br />
d21: Concat/Stripe is setup</p>
<p>8.  Run metattach for each submirror</p>
<p>ex. metattach d0 d20<br />
d0: submirror d20 is attached</p>
<p>ex. metattach d1 d21<br />
d1: submirror d21 is attached</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/sds-solstice-disksuite-replacing-a-failed-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to set permissinos on raw devices in veritas volume manager</title>
		<link>http://www.hacktopia.net/wp/how-to-set-permissinos-on-raw-devices-in-veritas-volume-manager/</link>
		<comments>http://www.hacktopia.net/wp/how-to-set-permissinos-on-raw-devices-in-veritas-volume-manager/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 16:56:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Veritas Volume Manager]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/how-to-set-permissinos-on-raw-devices-in-veritas-volume-manager/</guid>
		<description><![CDATA[vxedit -g sydata set user=sybase group=sybase mode=0666 rawdevicename]]></description>
			<content:encoded><![CDATA[<p>vxedit -g sydata set user=sybase  group=sybase  mode=0666 rawdevicename</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/how-to-set-permissinos-on-raw-devices-in-veritas-volume-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing Fiber Channel Drives</title>
		<link>http://www.hacktopia.net/wp/replacing-fiber-channel-drives/</link>
		<comments>http://www.hacktopia.net/wp/replacing-fiber-channel-drives/#comments</comments>
		<pubDate>Mon, 03 Dec 2007 21:21:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Veritas Volume Manager]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/replacing-fiber-channel-drives/</guid>
		<description><![CDATA[Copied from: https://yavin.homelinux.org/index.php?id=23 Systemgeek&#8217;s Resource Site Replacing Fiber Channel Drives Document ID: 40842 Title: Veritas Volume Manager &#8211; Procedure to Replace Internal FibreChannel (FC) Disks controlled by VxVM Solaris[TM] 9 Operating System(OS), Solaris[TM] 8 OS, or Solaris[TM] 7 with kernel patch 106541-08 or higher. This is required to get the functionality of the devfsadm command. [...]]]></description>
			<content:encoded><![CDATA[<p>Copied from:</p>
<p>https://yavin.homelinux.org/index.php?id=23</p>
<p>Systemgeek&#8217;s Resource Site</p>
<p>Replacing Fiber Channel Drives <font size="3">Document ID:    40842<br />
Title:    Veritas Volume Manager &#8211; Procedure to Replace Internal FibreChannel (FC) Disks controlled by VxVM<br />
Solaris[TM] 9 Operating System(OS),<br />
Solaris[TM] 8 OS, or<br />
Solaris[TM] 7 with kernel patch 106541-08 or higher.</font></p>
<p><font size="3">This is required to get the functionality of the devfsadm command.  Failure to follow this procedure could result in a duplicate entry for the replaced disk in VxVM. This is most notable when running a &#8216;vxdisk list&#8217; command.<br />
For example:<br />
# vxdisk list<br />
DEVICE       TYPE      DISK         GROUP        STATUS<br />
c1t0d0s2     sliced    rootdisk     rootdg       online<br />
c1t1d0s2     sliced    &#8211;            &#8211;            error<br />
c1t1d0s2     sliced    &#8211;            &#8211;            error</font></p>
<p><font size="3">The extra device will disappear after the next reboot, which seems to be the only way to remove it. Therefore, it is best to prevent the duplicate device from being created in the first place. This is accomplished by the following procedure. Steps 8a &#8211; 8c pertain only to Sun[TM] Cluster 3.x installations.  If the disk is not under VxVM control, you can skip steps 2,4,9-11<br />
Document Body:<br />
NOTE: All data on these devices should have been backed up.<br />
Before replacing any disk under VxVM control, it should be in either a &#8216;failed&#8217; or &#8216;removed&#8217; state:<br />
# vxdisk list<br />
DEVICE       TYPE      DISK         GROUP        STATUS<br />
c1t0d0s2     sliced    rootdisk     rootdg       online<br />
c1t1d0s2     sliced    &#8211;            &#8211;            online<br />
-            &#8211;         disk01       rootdg       failed was:c1t1d0s2</font></p>
<p><font size="3">If the disk does not show up as &#8220;failed was&#8221;, as shown above, then you should run &#8216;vxdiskadm&#8217; and choose option #4 to remove the disk for replacement. After running &#8216;vxdiskadm&#8217;, the output should look like this:<br />
# vxdisk list<br />
DEVICE       TYPE      DISK         GROUP        STATUS<br />
c1t0d0s2     sliced    rootdisk     rootdg       online<br />
c1t1d0s2     sliced    &#8211;            &#8211;            online<br />
-            &#8211;         disk01       rootdg       removed was:c1t1d0s2</font></p>
<p><font size="3">Cautions:<br />
If this is a root-disk or root-mirror, Please check the following removed disk information before this operation.<br />
You needs this information to change nvramrc.<br />
- WWN</font></p>
<p><font size="3">For example,</font></p>
<p><font size="3"># ls -al /dev/rdsk/c1t0d0s0<br />
lrwxrwxrwx   1 root     root          74 Mar  6  2003 c1t0d0s0 -&gt; ../../<br />
devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cfa19920,0:a,raw</font></p>
<p><font size="3">- devalias and boot-device in nvramrc</font></p>
<p><font size="3">For example,</font></p>
<p><font size="3"># eeprom nvramrc</font></p>
<p><font size="3">devalias rootdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100004cfa19920,0:a<br />
devalias mirrdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100004cfa19838,0:a</font></p>
<p><font size="3">boot-device=rootdisk mirrdisk<br />
1. If this is a root-disk or root-mirror, then ensure that the dump-device is not<br />
on the failed disk, using the dumpadm command. If it is, then move it to the<br />
good side of the mirror.</font></p>
<p><font size="3">i.e. dumpadm -d /dev/dsk/c1t0d0s1</font></p>
<p><font size="3">2. If vxdiskadm option 4 is used to remove the disk for replacement, instruct VxVM to re-read the device tree by running the command</font></p>
<p><font size="3"># vxdctl enable</font></p>
<p><font size="3">3.  Put the disk into the &#8220;offline&#8221; state with the following command:</font></p>
<p><font size="3"># vxdisk offline c1t1d0s2</font></p>
<p><font size="3">4. Verify the disk has been marked &#8220;offline&#8221; with &#8220;vxdisk list&#8221;:</font></p>
<p><font size="3"># vxdisk list<br />
DEVICE       TYPE      DISK         GROUP        STATUS<br />
c1t0d0s2     sliced    rootdisk     rootdg       online<br />
c1t1d0s2     sliced    &#8211;            &#8211;            offline<br />
-            &#8211;         disk01       rootdg       removed was:c1t1d0s2</font></p>
<p><font size="3"> 5. Once Veritas has recognized the disk as offline and ready for replacement, you need to tell the operating system. This is done as follows:</font></p>
<p><font size="3"># /usr/sbin/luxadm remove_device /dev/rdsk/c1t1d0s2</font></p>
<p><font size="3">This will produce output similar to the following:<br />
WARNING!!! Please ensure that no file systems are mounted on these device(s).<br />
All data on these devices should have been backed up.<br />
The list of devices which will be removed is:<br />
1: Device name: /dev/rdsk/c1t1d0s2 Node WWN: 20000020371b1f31<br />
Device Type: Disk device<br />
Device Paths: /dev/rdsk/c1t1d0s2<br />
Please verify the above list of devices and then enter c or &lt;CR&gt; to<br />
Continue or q to Quit. [Default: c]:c<br />
stopping: /dev/rdsk/c1t1d0s2&#8230;. Done<br />
offlining: /dev/rdsk/c1t1d0s2&#8230;. Done<br />
The drives are now off-line and spun down.<br />
Physically remove the disk and press the Return key.</font></p>
<p><font size="3">Hit &lt;Return&gt; after removing the device(s).</font></p>
<p><font size="3">&lt;date&gt; &lt;systemname&gt; picld[87]: Device DISK1 removed<br />
Device: /dev/rdsk/c1t1d0s2<br />
No FC devices found. &#8211; /dev/rdsk/c1t1d0s2</font></p>
<p><font size="3">Note: The picld daemon notifies the system that the disk has been removed.<br />
If no errors are printed, continue on to step 5.<br />
Otherwise, if you receive any errors during this step: physically pull the bad disk from the host<br />
run the commands:<br />
# vxdisk rm c1t1d0s2<br />
# luxadm -e offline /dev/rdsk/c1t1d0s2</font></p>
<p><font size="3">if the disk is multipathed, run the &#8216;luxadm -e offline&#8217; on the second path as well.<br />
6. Initiate devfsadm cleanup subroutines by entering the following command:</font></p>
<p><font size="3"># /usr/sbin/devfsadm -C -c disk</font></p>
<p><font size="3">The default devfsadm operation, is to attempt to load every driver in the system, and attach these drivers to all possible device instances. devfsadm then creates device special files in the /devices directory, and logical links in /dev. With the &#8220;-c disk&#8221; option, devfsadm will only update disk device files. This saves time and is important on systems that have tape devices attached. Rebuilding these tape devices could cause undesirable results on non-Sun hardware.<br />
The -C option cleans up the /dev directory, and removes any lingering logical links to the device link names.<br />
This should remove all the device paths for this particular disk. This can be verified with:<br />
# ls -ld /dev/dsk/c1t1d*</font></p>
<p><font size="3">This should return no devices.<br />
7. Verify that the reference to this disk is gone by running the commands</font></p>
<p><font size="3"># vxdisk list (if the disk is under vxvm control)<br />
# format</font></p>
<p><font size="3">It is now safe to physically replace the disk.<br />
8. After replacing the disk, create the necessary entries in the Solaris OS device tree with one of the following commands:</font></p>
<p><font size="3"># devfsadm</font></p>
<p><font size="3">or<br />
# /usr/sbin/luxadm insert_device &lt;enclosure_name,sx&gt;</font></p>
<p><font size="3">where sx is the slot number.<br />
Please note. In many cases, luxadm insert_device does not require the enclosure name and slot number.<br />
Use the following to find the slot number:<br />
# luxadm display &lt;enclosure_name&gt;</font></p>
<p><font size="3">To find the &lt;enclosure_name&gt; you can use:<br />
# luxadm probe</font></p>
<p><font size="3">Run &#8220;ls -ld /dev/dsk/c1t1d*&#8221; to verify that the new device paths have been created.<br />
Cautions:<br />
After inserting disk and running devfsadm(or luxadm),old ssd id was changed to new ssd id. So, you may ignore this changes.<br />
For example,<br />
When the error occurs on the following disks(ssd3).</font></p>
<p><font size="3">WARNING: /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cfa19920,0 (ssd3):<br />
Error for Command: read(10)                Error Level: Retryable<br />
Requested Block: 15392944                  Error Block: 15392958</font></p>
<p><font size="3">(After inserting disk)</font></p>
<p><font size="3">picld[287]: [ID 727222 daemon.error] Device DISK0 inserted<br />
qlc: [ID 686697 kern.info] NOTICE: Qlogic qlc(2): Loop ONLINE<br />
scsi: [ID 799468 kern.info] ssd10 at fp2: name w21000011c63f0c94,0, bus<br />
address ef<br />
genunix: [ID 936769 kern.info] ssd10 is /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@<br />
w21000011c63f0c94,0<br />
scsi: [ID 365881 kern.info]    &lt;SUN72G cyl 14087 alt 2 hd 24 sec 424&gt;<br />
genunix: [ID 408114 kern.info] /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c<br />
63f0c94,0 (ssd10) online</font></p>
<p><font size="3">9. Label the disk using format. If the disk is under VxVM control, be sure to<br />
write an SMI label(Solaris 9 4/03 OS or later):</font></p>
<p><font size="3"># format -e /dev/rdsk/c1t1d0s2<br />
&#8230;<br />
format&gt; l<br />
[0] SMI Label<br />
[1] EFI Label<br />
Specify Label type[1]: 0<br />
Auto configuration via format.dat[no]? no<br />
Auto configuration via generic SCSI-2[no]? yes<br />
Ready to label disk, continue? yes</font></p>
<p><font size="3">If the disk is not under VxVM control, you can label the disk to your requirements, otherwise, it could be labelled with a standard vtoc.<br />
Steps 9a &#8211; 9c are only required if this is a system running SunCluster 3.x<br />
9a. /usr/cluster/bin/scdidadm -C<br />
9b. /usr/cluster/bin/scdidadm -r<br />
9c. /usr/cluster/bin/scgdevs<br />
Note: It&#8217;s possible to get errors from c0t0d0 which is the cdrom/dvd drive on 480,880 etc..<br />
10. Instruct VxVM to re-read the device tree by running the command<br />
# vxdctl enable</font></p>
<p><font size="3">11. The disk will remain in the &#8220;offline&#8221; state until you initialize the new disk.<br />
To initialize it, you can use the command line first:<br />
# vxdisksetup -i c1t1d0</font></p>
<p><font size="3">Then, use &#8216;vxdiskadm&#8217; and choose option #5 to replace the failed or removed disk.<br />
- or -</font></p>
<p><font size="3">Run &#8216;vxdiskadm&#8217; and choose option #5 to initialize it and replace the failed or removed disk. If you choose to run &#8216;vxdiskadm&#8217; and choose option #5, you will be told that &#8220;Access is disabled&#8221; for this new disk (because it is still &#8220;offline&#8221;), and will be asked whether or not you wish to &#8220;enable access&#8221; to it. Answer &#8216;yes&#8217; to this question.<br />
12. Your disk should now be online, and functional within the operating system and VxVM. You can confirm this with &#8220;vxdisk list&#8221;.<br />
Cautions:<br />
Don&#8217;t reboot the system and Setp-13(modify nvramrc) until a synchronization is completed.<br />
If it is rebooted, it cannot boot from a new disk or modify devalias.<br />
You can confirm this with &#8220;vxtask list&#8221;.<br />
# vxtask list</font></p>
<p><font size="3">13. If you had to move swap then move it back: i.e. dumpadm -d /dev/dsk/c1t1d0s1<br />
14. If this was a root-disk or root-mirror, then ensure the nvram aliases are<br />
updated so you can boot.<br />
ls -al /dev/rdsk/&lt;new disk&gt;s0<br />
i.e. ls -al /dev/rdsk/c1t1d0s0</font></p>
<p><font size="3">Check the WWN from the ls output with the appropriate root alias entries in the NVRAM. (eeprom nvramrc) and look at rootmirror or rootdisk entries.<br />
Cautions:<br />
The change method of devalias in nvramrc.<br />
From removed disk information to new disk information.<br />
For example,</font></p>
<p><font size="3">- List before you modify nvramrc.<br />
(removed disk information)</font></p>
<p><font size="3"># eeprom nvramrc</font></p>
<p><font size="3">devalias rootdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100004cfa19920,0:a<br />
devalias mirrdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100004cfa19838,0:a</font></p>
<p><font size="3">- List the new disk information</font></p>
<p><font size="3"># ls -al /dev/rdsk/c1t0d0s0<br />
lrwxrwxrwx   1 root     root          74 Mar  6  2003 c1t0d0s0 -&gt; ../../<br />
devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c63f0c94,0:a,raw</font></p>
<p><font size="3">- Modify nvramrc</font></p>
<p><font size="3">(This example is written in the borne shell)</font></p>
<p><font size="3"># eeprom nvramrc=&#8217;devalias root-disk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@<br />
w21000011c63f0c94,0:a[enter]<br />
devalias rootmirror /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cfa19838<br />
,0:a&#8217;[enter]</font></p>
<p><font size="3">- List after you modify nvramrc.</font></p>
<p><font size="3"># eeprom nvramrc<br />
devalias rootdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c63f0c94,0:a<br />
devalias mirrdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100004cfa19838,0:a</font></p>
<p><font size="3">&#8221;If this is a root-disk or rootmirror then the device path contains the WWN of the new disk. It is necessary to update the nvramrc devalias entries to the new device path so the system will be able to boot from the newly  replaced rootdisk or rootmirror.&#8221;</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/replacing-fiber-channel-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>set permissions for raw volumes in Veritas Volume Manager</title>
		<link>http://www.hacktopia.net/wp/set-permissions-for-raw-volumes-veritas-volume-manager/</link>
		<comments>http://www.hacktopia.net/wp/set-permissions-for-raw-volumes-veritas-volume-manager/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 20:40:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Veritas Volume Manager]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=11</guid>
		<description><![CDATA[vxedit -g sydata set user= group= mode= NameRawPart]]></description>
			<content:encoded><![CDATA[<p>vxedit -g sydata set user=      group=     mode=    NameRawPart</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/set-permissions-for-raw-volumes-veritas-volume-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to replace a failed hard disk under Veritas Volume Manager</title>
		<link>http://www.hacktopia.net/wp/how-to-replace-a-failed-hard-disk-under-veritas-volume-manager/</link>
		<comments>http://www.hacktopia.net/wp/how-to-replace-a-failed-hard-disk-under-veritas-volume-manager/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 20:32:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Veritas Volume Manager]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=10</guid>
		<description><![CDATA[I will be explaining how to replace a failed disk that is under Varitas Volume Manager&#8217;s control. Take the disk out of Veritas Volume Manager vxdiskadm slect option 4 Remove a disk for replacement select the disk to be removed take the disk out of the machine put new disk into the machine then # [...]]]></description>
			<content:encoded><![CDATA[<p>I will be explaining how to replace a failed disk that is under Varitas Volume Manager&#8217;s control.</p>
<p>Take the disk out of Veritas Volume Manager</p>
<p>vxdiskadm</p>
<p>slect option<br />
4      Remove a disk for replacement<br />
select the disk to be removed<br />
take the disk out of the machine<br />
put new disk into the machine<br />
then</p>
<p># vxdctl enable</p>
<p>to casuse veritas Volume Manager to re read all the disks</p>
<p>5      Replace a failed or removed disk</p>
<p>no Encapsulate<br />
yes initialize</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/how-to-replace-a-failed-hard-disk-under-veritas-volume-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
