- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvsplit error code 1 (URGENT!)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 10:49 PM
06-13-2002 10:49 PM
lvsplit error code 1 (URGENT!)
It stopped working after firmeare upgrading FC10 disk array controllers and disk firmware.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:34 PM
06-13-2002 11:34 PM
Re: lvsplit error code 1 (URGENT!)
If it works manually and does not work from a script then there is an environmental variable problem.
In your script put the full path name to all commands, i.e.
/usr/sbin/lvsplit
and not lvolsplit.
Also ensure that path is correct in your script.
It would also be helpful if you could post your script.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:40 PM
06-13-2002 11:40 PM
Re: lvsplit error code 1 (URGENT!)
lvsplit blah lvol 2>/tmp/err
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:41 PM
06-13-2002 11:41 PM
Re: lvsplit error code 1 (URGENT!)
I run an FC10 on an N class 11.00 and this script works OK.
date >> ~/var/adm/n0cronlog
################################
# Flush memory
################################
sync
sync
################################
echo "Splitting disks"
lvsplit -s _copy /dev/avro/avro
################################
echo "FSCK on split disk"
################################
fsck /dev/avro/avro_copy
################################
echo "Making mount dir"
################################
mkdir /avrobackup
################################
echo "Mounting split disk to /avrobackup"
################################
mount /dev/avro/avro_copy /avrobackup
################################
echo "RM on /avroTWO dir"
################################
rm /avroTWO/COPYCOMPLETE
rm -R /avroTWO/*
################################
echo "CD to /avrobackup"
################################
cd /avrobackup
################################
echo "CD to /avrobackup and copy to avroTWO"
################################
find .|cpio -pudvm /avroTWO
################################
# Move clear of the mount disk
################################
cd /avro
################################
echo "Unmounting the split disk"
################################
umount /dev/avro/avro_copy
################################
echo "Removing the mount dir"
################################
rmdir /avrobackup
################################
echo "Merging the disk back online"
################################
lvmerge /dev/avro/avro_copy /dev/avro/avro
################################
echo "Avrocopy to avroTWO complete"
###############################
date >> ~/var/adm/n0cronlog
mailx -s "Mirror backup log" paula@avro.co.uk
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:57 PM
06-13-2002 11:57 PM
Re: lvsplit error code 1 (URGENT!)
No error messages at all in syslog or dmesg. Environment variables are correct...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 12:17 AM
06-14-2002 12:17 AM
Re: lvsplit error code 1 (URGENT!)
Can you post your script?
Can you also post your command line that works ?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 01:13 AM
06-14-2002 01:13 AM
Re: lvsplit error code 1 (URGENT!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 01:36 AM
06-14-2002 01:36 AM
Re: lvsplit error code 1 (URGENT!)
Physical volume "/dev/dsk/c9t0d0" does not belong to volume group ....
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.
I think that disk have its LVM headers not updated, due to a hardware or software issue.
Before do vgcfgrestore you can try this:
To see VGID:
vgexport -s -m /tmp/vgap -p /dev/vgxx
or:
VGID is recorded in each disk:
dd if=/dev/rdsk/cxtxtx bs=1024 skip=8 count=9 | dd bs=8 skip=2 count=1 | od -x | head -1 .
running dd for all disks of vg should show the same
See:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x19c7cf38d6bdd5118ff10090279cd0f9,00.html
Check also the lastest patch for LVM.
Regrads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 02:24 AM
06-14-2002 02:24 AM
Re: lvsplit error code 1 (URGENT!)
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.
Solved problem temporarely by changing order in /etc/lvmpvg, but soon I will change back the primary links to correct disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 02:49 AM
06-14-2002 02:49 AM
Re: lvsplit error code 1 (URGENT!)
Please see also: http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x022718276953d61190040090279cd0f9,00.html
Enjoy the forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 03:20 AM
06-14-2002 03:20 AM
Re: lvsplit error code 1 (URGENT!)
Always start *every* script with the courtesy loader string:
#!/usr/bin/sh
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.
When a script fails, whether run manually or by cron, run the script with the trace option as in:
sh -x MSycriptName options...
And just for reliability, place an explicit $PATH after the first line:
PATH=/sbin:/usr/sbin:/usr/bin:/usr/lbin
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.
Bill Hassell, sysadmin