- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /dev/vg00/lvol7 device file got corrupted.
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
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
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
08-18-2005 03:37 PM
08-18-2005 03:37 PM
/dev/vg00/lvol7 device file got corrupted.
In my HPUX 11.11 system /dev/vg00/lvol7 got corrupted which is mounted as /usr while doing some tar archive. System is a primary node on M/C Service Guard. Now I am not able to run the system commands. I have taken the Ignite backup from make_tape_recovery.
Can I recover the device file from the ignite backup? Now I am not able to access /usr, it is giving bad directory. All usr commands are not working.
While executing any command like bdf i am getting the below output.
# bdf
sh: bdf: not found
Please help me AEAP.
Thanks in advance,
Regards,
Kannan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:39 PM
08-18-2005 03:39 PM
Re: /dev/vg00/lvol7 device file got corrupted.
/sbin/ commands are statically linked so they don't require libraries that are normally in /usr/lib.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:49 PM
08-18-2005 03:49 PM
Re: /dev/vg00/lvol7 device file got corrupted.
Take the shutdown of this server and boot it from recovery tape. Other option would be boot using OS media and resore system files from it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:49 PM
08-18-2005 03:49 PM
Re: /dev/vg00/lvol7 device file got corrupted.
Restoring a device file itself will solve this problem or I have to restore the full /usr filesystem. What will be the best and how to do that?
If I want to restore first "mt" command itself not working becuase it is only available in /usr/bin.
Thanks,
Kannan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 04:33 PM
08-18-2005 04:33 PM
Re: /dev/vg00/lvol7 device file got corrupted.
The system is a primary node in M/C Service Guard. If I have to reboot the system i have to transfer the database to other node without that i may not able to reboot the server.
Is there anyway to recover the database file itself or /usr I have to restore.
What is the steps to restore a corrupted device file alone or the /usr file system without rebooting.
Thanks,
Regs,
Kannan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 08:31 PM
08-18-2005 08:31 PM
Re: /dev/vg00/lvol7 device file got corrupted.
You can recreate device files manually using mknod(1m)
Remove corrupted files lvol7 and rlvol7 and execute following commands:
#/sbin/mknod /dev/vg00/rlvol7 c 64 0x000007
#/sbin/mknod /dev/vg00/lvol7 b 64 0x000007
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 01:38 AM
08-19-2005 01:38 AM
Re: /dev/vg00/lvol7 device file got corrupted.
If the device file is not present then create it as said by Artyom.
Check the file system by fstyp /dev/vg00/lvol7 and mount it on /usr again . If nothing there under /usr then you have to restore /usr/files from another system. Make a tar copy of /usr from another node and try to restore using /sbin/tar.
To be at safer side do following steps
You can halt the pacakage running on that node using cmhaltpkg
Then start the package on secondary node using cmrunpkg < pkg-name>
Run cmhaltnode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 02:09 AM
08-19-2005 02:09 AM
Re: /dev/vg00/lvol7 device file got corrupted.
First as Nirmal said , what do u mean by "corrupting /dev/vg00/lvol7" ,
i) Does the device file is corrupted or its not present .
ii) Does the filesystem mounted on /dev/vg00/lvol7 i.e /usr is corrupted.
# ls -l /dev/vg00/lvol7 (pls give output).
Can u execute # /sbin/fstyp /dev/vg00/lvol7
What it gives , please give the output.
And also , what changes made before it corrupted. Please give the informations further ,we can help further and guide.
Many Thanks,
RVeri.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 02:25 AM
08-19-2005 02:25 AM
Re: /dev/vg00/lvol7 device file got corrupted.
Get the mt executable from other system. (Same OS version)
Put it in /usr/bin directory.
ldd /usr/bin/mt
Check what files it lists.
copy all those files into respective dirs from other system.
mt -f /dev/rmt/0mn fsf 1
tar -tvf /dev/rmt/0mn
Check the list and particularly USR dir.
mt -f /dev/rmt/0mn rew
cd /usr (or better copy it to some other dir and then move files to /usr)
mt -f /dev/rmt/0mn fsf 1
tar -xvf /dev/rmt/0mn usr
This should get you back. compare all files under /usr to that of a healthy system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 02:59 AM
08-19-2005 02:59 AM
Re: /dev/vg00/lvol7 device file got corrupted.
It is not the device file corruption. Device file hardly gets corrupted.
First find out wheather /usr is still mounted or not. As bdf is in /usr itself which is not accessible you can use /sbin/mount command to know this. Mount without any option will listed mounted file systems and their mount times and options.
It should be mounted. Then you need to transfer the package to other node having run the cluster commands from the other node of the cluster as cluster commands are located in /usr/sbin itself.
Also list the files in /usr. A lot of commands are listed in /sbin as well which includes all LVM commands so you can easily do certain things here. I would suggest to take tar backup of /usr in other system anyhow ( Should prefer shared storage or ftp etc. if working), transfer the tar archive to the system and restore that archive here using /sbin/tar.
HTH,
Devender