<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: lvsplit error code 1 (URGENT!) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744615#M642763</link>
    <description>Hints on script writing:&lt;BR /&gt;&lt;BR /&gt;Always start *every* script with the courtesy loader string:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;That way, the system will always use the same shell to run the script. Without this directive in line 1, the current shell will try to run it.&lt;BR /&gt;&lt;BR /&gt;When a script fails, whether run manually or by cron, run the script with the trace option as in:&lt;BR /&gt;&lt;BR /&gt;sh -x MSycriptName options...&lt;BR /&gt;&lt;BR /&gt;And just for reliability, place an explicit $PATH after the first line:&lt;BR /&gt;&lt;BR /&gt;PATH=/sbin:/usr/sbin:/usr/bin:/usr/lbin&lt;BR /&gt;&lt;BR /&gt;That way, any problems (or security issues) with the current $PATH are eliminated. This statement in the script will not affect your current environment and often fixes problems with cron and other batch jobs.</description>
    <pubDate>Fri, 14 Jun 2002 10:20:49 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2002-06-14T10:20:49Z</dc:date>
    <item>
      <title>lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744605#M642753</link>
      <description>Can't seem to find a list of error codes. When running lvsplit in backupscript I get error code 1, but when I run lvsplit manually everything works fine!&lt;BR /&gt;It stopped working after firmeare upgrading FC10 disk array controllers and disk firmware.</description>
      <pubDate>Fri, 14 Jun 2002 05:49:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744605#M642753</guid>
      <dc:creator>Ola_5</dc:creator>
      <dc:date>2002-06-14T05:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744606#M642754</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;If it works manually and does not work from a script then there is an environmental variable problem.&lt;BR /&gt;&lt;BR /&gt;In your script put the full path name to all commands, i.e.&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/lvsplit&lt;BR /&gt;&lt;BR /&gt;and not lvolsplit.&lt;BR /&gt;&lt;BR /&gt;Also ensure that path is correct in your script.&lt;BR /&gt;&lt;BR /&gt;It would also be helpful if you could post your script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Jun 2002 06:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744606#M642754</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-06-14T06:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744607#M642755</link>
      <description>you should see something in the syslog.log and/or dmesg, but in either case, you should have _some_ output other than a return code.. are you redirecting your errors?&lt;BR /&gt;&lt;BR /&gt;lvsplit blah lvol 2&amp;gt;/tmp/err&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 14 Jun 2002 06:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744607#M642755</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-06-14T06:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744608#M642756</link>
      <description>Hi Again&lt;BR /&gt;&lt;BR /&gt;I run an FC10 on an N class 11.00 and this script works OK.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;date &amp;gt;&amp;gt; ~/var/adm/n0cronlog&lt;BR /&gt;################################&lt;BR /&gt;# Flush memory&lt;BR /&gt;################################&lt;BR /&gt;sync&lt;BR /&gt;sync&lt;BR /&gt;################################&lt;BR /&gt;echo "Splitting disks"&lt;BR /&gt;lvsplit -s _copy /dev/avro/avro&lt;BR /&gt;################################&lt;BR /&gt;echo "FSCK on split disk"&lt;BR /&gt;################################&lt;BR /&gt;fsck /dev/avro/avro_copy&lt;BR /&gt;################################&lt;BR /&gt;echo "Making mount dir"&lt;BR /&gt;################################&lt;BR /&gt;mkdir /avrobackup&lt;BR /&gt;################################&lt;BR /&gt;echo "Mounting split disk to /avrobackup"&lt;BR /&gt;################################&lt;BR /&gt;mount /dev/avro/avro_copy /avrobackup&lt;BR /&gt;################################&lt;BR /&gt;echo "RM on /avroTWO dir" &lt;BR /&gt;################################&lt;BR /&gt;rm /avroTWO/COPYCOMPLETE&lt;BR /&gt;rm -R /avroTWO/*&lt;BR /&gt;################################&lt;BR /&gt;echo "CD to /avrobackup"&lt;BR /&gt;################################&lt;BR /&gt;cd /avrobackup&lt;BR /&gt;################################&lt;BR /&gt;echo "CD to /avrobackup and copy to avroTWO"&lt;BR /&gt;################################&lt;BR /&gt;find .|cpio -pudvm /avroTWO&lt;BR /&gt;################################&lt;BR /&gt;# Move clear of the mount disk&lt;BR /&gt;################################&lt;BR /&gt;cd /avro&lt;BR /&gt;################################&lt;BR /&gt;echo "Unmounting the split disk"&lt;BR /&gt;################################&lt;BR /&gt;umount /dev/avro/avro_copy&lt;BR /&gt;################################&lt;BR /&gt;echo "Removing the mount dir"&lt;BR /&gt;################################&lt;BR /&gt;rmdir /avrobackup&lt;BR /&gt;################################&lt;BR /&gt;echo "Merging the disk back online"&lt;BR /&gt;################################&lt;BR /&gt;lvmerge /dev/avro/avro_copy /dev/avro/avro&lt;BR /&gt;################################&lt;BR /&gt;echo "Avrocopy to avroTWO complete"&lt;BR /&gt;###############################&lt;BR /&gt;date &amp;gt;&amp;gt; ~/var/adm/n0cronlog&lt;BR /&gt;mailx -s "Mirror backup log" paula@avro.co.uk &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 14 Jun 2002 06:41:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744608#M642756</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-06-14T06:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744609#M642757</link>
      <description>Thank's for alla the answers, but the thing is : backupscript worked before firmwareupgrading.&lt;BR /&gt;No error messages at all in syslog or dmesg. Environment variables are correct...</description>
      <pubDate>Fri, 14 Jun 2002 06:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744609#M642757</guid>
      <dc:creator>Ola_5</dc:creator>
      <dc:date>2002-06-14T06:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744610#M642758</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Can you post your script?&lt;BR /&gt;&lt;BR /&gt;Can you also post your command line that works ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 14 Jun 2002 07:17:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744610#M642758</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-06-14T07:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744611#M642759</link>
      <description>The problem is not related to the backupscript. I have run the command manually, exactly as in my script, and the attachement is output from the command, and some checks I made.</description>
      <pubDate>Fri, 14 Jun 2002 08:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744611#M642759</guid>
      <dc:creator>Ola_5</dc:creator>
      <dc:date>2002-06-14T08:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744612#M642760</link>
      <description>The file shows that one disk to not belog to this volume group :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Physical volume "/dev/dsk/c9t0d0" does not belong to volume group ....&lt;BR /&gt;&lt;BR /&gt;So, as long /etc/lvmpvg and LVM commands are showing it as configured for this volume group, maybe you must run a vgcfgrestore for that disk.  &lt;BR /&gt;&lt;BR /&gt;I think that disk have its LVM headers not updated, due to a hardware or software issue.&lt;BR /&gt;&lt;BR /&gt;Before do vgcfgrestore you can try this:&lt;BR /&gt;&lt;BR /&gt;To see VGID: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vgexport -s -m /tmp/vgap -p /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;or: &lt;BR /&gt;&lt;BR /&gt;VGID is recorded in each disk: &lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rdsk/cxtxtx bs=1024 skip=8 count=9 | dd bs=8 skip=2 count=1 | od -x | head -1 . &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;running dd for all disks of vg should show the  same &lt;BR /&gt;&lt;BR /&gt;See: &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x19c7cf38d6bdd5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x19c7cf38d6bdd5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Check also the lastest patch for LVM.&lt;BR /&gt;&lt;BR /&gt;Regrads.</description>
      <pubDate>Fri, 14 Jun 2002 08:36:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744612#M642760</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-06-14T08:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744613#M642761</link>
      <description>Problem solved!&lt;BR /&gt;We have FC10 with fibre disks, and some of the primary disks went offline for a short moment when reprogramming firmware, so the alternative link became primary path, and due to that, the order i /etc/lvmpvg did'nt correspond to output from vgdisplay -v conserning primary/alternative link.&lt;BR /&gt;Solved problem temporarely by changing order in /etc/lvmpvg, but soon I will change back the primary links to correct disks.</description>
      <pubDate>Fri, 14 Jun 2002 09:24:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744613#M642761</guid>
      <dc:creator>Ola_5</dc:creator>
      <dc:date>2002-06-14T09:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744614#M642762</link>
      <description>I realize you are a newcomer... &lt;BR /&gt;&lt;BR /&gt;Please see also: &lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x022718276953d61190040090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x022718276953d61190040090279cd0f9,00.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy the forum.</description>
      <pubDate>Fri, 14 Jun 2002 09:49:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744614#M642762</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-06-14T09:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: lvsplit error code 1 (URGENT!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744615#M642763</link>
      <description>Hints on script writing:&lt;BR /&gt;&lt;BR /&gt;Always start *every* script with the courtesy loader string:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;That way, the system will always use the same shell to run the script. Without this directive in line 1, the current shell will try to run it.&lt;BR /&gt;&lt;BR /&gt;When a script fails, whether run manually or by cron, run the script with the trace option as in:&lt;BR /&gt;&lt;BR /&gt;sh -x MSycriptName options...&lt;BR /&gt;&lt;BR /&gt;And just for reliability, place an explicit $PATH after the first line:&lt;BR /&gt;&lt;BR /&gt;PATH=/sbin:/usr/sbin:/usr/bin:/usr/lbin&lt;BR /&gt;&lt;BR /&gt;That way, any problems (or security issues) with the current $PATH are eliminated. This statement in the script will not affect your current environment and often fixes problems with cron and other batch jobs.</description>
      <pubDate>Fri, 14 Jun 2002 10:20:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvsplit-error-code-1-urgent/m-p/2744615#M642763</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-06-14T10:20:49Z</dc:date>
    </item>
  </channel>
</rss>

