- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: where from here: /dev/root
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
10-20-2003 03:39 AM
10-20-2003 03:39 AM
where from here: /dev/root
Scenario:
after primary boot disk failure, the disk replacement and re-mirroring, the box couldn't boot from primary.
So, secondary disk has been used to enter ISL
and from there into lvm maintenance mode:
ISL> hpux -lq -lm
Now bdf looks like:
Filesystem kbytes used avail %used Mounted on
/dev/root 143360 42129 96798 30% /
/dev/vg00/lvol1 83733 29220 46139 39% /stand
Now box is running, apps and dbs are up.
What would be recommended action from here ( /dev/root ) back to normal ?
Thanks,
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 03:47 AM
10-20-2003 03:47 AM
Re: where from here: /dev/root
to get the thing straight back, just
rm /etc/mnttab
mount -p
bdf
it only an apparent issue, all is right.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 03:59 AM
10-20-2003 03:59 AM
Re: where from here: /dev/root
ISL> hpux -lq -lm
NEVER!
Very likely that your O/S file systems became corrupt.
REBOOT! And come up to run level three normally:
# set_boot -p 0/0.#.# (* HW path of alternate boot disk *)
-or- single user mode without LVM maintenance and then init 3!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 04:30 AM
10-20-2003 04:30 AM
Re: where from here: /dev/root
So, it would be dangerous to proceed with
re-mirroring right now,
once the box is back to init 3 normally,
as you suggested, re-mirroring can be done again, am I correct ?
Thx,
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 05:31 AM
10-20-2003 05:31 AM
Re: where from here: /dev/root
To make the primary disk bootable, never forget these steps:
1. pvcreate -B /dev/rdsk/
2. vgextend /dev/vg00 /dev/dsk/
3. mkboot /dev/dsk/
4. mkboot -a "hpux -lq" /dev/rdsk/
5. lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/
6. lvlnboot -R
If you have forgot one of these steps, then I fear you'll have to recreate and remirror the primary disk.
HTH
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 06:29 AM
10-20-2003 06:29 AM
Re: where from here: /dev/root
Your step about mirroring should be -m 0 b/c it is his Primary disk that is bad currently...
However, he shouldnt need to worry about the mirror if he vgsync after making the disk bootable...
Here is what I did once on a bad mirrored root disk that failed.
lvreduce -m 0 /dev/vg00/dump /dev/dsk/c4t6d0
lvreduce -m 0 /dev/vg00/var /dev/dsk/c4t6d0
lvreduce -m 0 /dev/vg00/stand /dev/dsk/c4t6d0
lvreduce -m 0 /dev/vg00/root /dev/dsk/c4t6d0
lvreduce -m 0 /dev/vg00/opt /dev/dsk/c4t6d0
lvreduce -m 0 /dev/vg00/usr /dev/dsk/c4t6d0
lvreduce -m 0 /dev/vg00/swap dev/dsk/c4t6d0
vgreduce /dev/vg00 /dev/dsk/c4t6d0
pvcreate -B /dev/rdsk/c4t6d0
vgextend /dev/vg00 /dev/dsk/c4t6d0
mkboot /dev/rdsk/c4t6d0
mkboot -a "hpux -lq" /dev/rdsk/c4t6d0
lifcp /dev/dsk/c4t6d0:AUTO
mkboot -b updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c4t6d0
mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c4t6d0
vgcfgrestore -n /dev/vg00 /dev/rdsk/c4t6d0
vgchange -a y /dev/vg00
vgsync /dev/vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 06:54 AM
10-20-2003 06:54 AM
Re: where from here: /dev/root
These are the steps to be taken AFTER the disk has been replaced.
Cheers,
Paulo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 07:00 AM
10-20-2003 07:00 AM
Re: where from here: /dev/root
All that the entry of /dev/root means in your bdf is that at sometime you booted into -lm.
It does not indicate corruption of any type and can be easily fixed once you do a clean reboot to multi-user mode.
All you will need to do is to clear the mnttab.
If you want to make a backup, then do:
cd /etc
cp mnttab mnttab.bojan
rm mnttab
mount -a
This will clear up the /dev/root line.
Best regards,
Kent M. Ostby
PS with regards to booting -lm then going up, while it is not recommended, I havent seen any huge problems with it.
I suggest that any changes you have made in that mode are fine. Just do a clean reboot to make sure that it will all come up fine the next time.
Best regards,
Kent M. Ostby