03-06-2012
Lost Root Password on VXVM Encapsulated Root Disk
Hi All
Hope it's okay to post on this sub-forum, couldn't find a better place
I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under /etc/vx/reconfig.d/disk.d/c1t0d0). The root password has been lost and I need to reset it. I've found what looks like a decent document online that suggests that I need to unencapsulate the root disk prior to changing the shadow entry. Seems risky work for a simple change - i'm hoping there may be a shortcut but heyho otherwise... I'm probably being over cautious
As the disk is encapsulated, can I just remove one of the disks while the system is live (effectively splitting the mirror), then boot from CD, mount the root FS, edit the shadow directly, boot again and just replace the removed disk? Any idea if the FS would be marked as 'dirty' by vxvm if I did this and not be bootable?
Assuming my finger in the air solution above won't work. Any idea if the document will be okay to run with?
Thanks!
Sunny
Last edited by methyl; 03-06-2012 at 12:31 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I've forgotten root password on one of Solaris machines, i searched in forumes to find a similar case but there's no proceudre here to reinintialize root password, cause most of related commands & even single user mode needs root password that i don't have.
Any solution would be helpful.
--rgrds,... (9 Replies)
Discussion started by: nikk
9 Replies
2. UNIX for Advanced & Expert Users
Hello ...
I lost my password root !
maybe someone can to help me to log in HP_UX,
i started the server in " Singel - User" and i changed my
password to new password and it`s not working ..
what i must to do ??? (4 Replies)
Discussion started by: yanly
4 Replies
3. UNIX for Advanced & Expert Users
I have recently become the sys adm guy for our unix systems here for my shop. I have a pretty good understanding of the system, but there is just some stuff that I don't know. Right now one of those things is to recover the password for a unix system.
I know that there is a way that you can use... (2 Replies)
Discussion started by: GlockCW
2 Replies
4. Answers to Frequently Asked Questions
We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies
5. Linux
wish to know how to access root password it root password is forgotten in linux (1 Reply)
Discussion started by: wojtyla
1 Replies
6. UNIX for Dummies Questions & Answers
I'm attempting to blank out the root user password on a machine that we have forgotten the password for. I have been using the advice posted on this site to boot from CDROM in single user mode, then mounting the root slice and editing the /etc/shadow file. Each time I save the shadow file and... (1 Reply)
Discussion started by: gonzotonka
1 Replies
7. AIX
Hi how do you reset the root password in AIX.
I booted to single user mode and it asked for login and password.
I have AIX 4.3.
Thanks (4 Replies)
Discussion started by: Welfaric
4 Replies
8. UNIX for Advanced & Expert Users
This is a common question im sure... I bought a RS/6000 Model 240. Aix 4.3.3 loaded. No root password was supplied to me, but I do have the install media (4 disks). I want to drop into maint mode. So I place the cd into the drive, restart the box ( by pressing the power button, since i do not have... (3 Replies)
Discussion started by: JoeJohnSmith
3 Replies
9. Solaris
Hi All,
We had a Sun Netra T1 go down the other day, the root disk was mirrored using vxvm. Upon boot from either disk, we had the following error appear:
WARNING: Error writing ufs log state
WARNING: ufs log for / changed state to Error
WARNING: Please umount(1M) / and run... (4 Replies)
Discussion started by: badoshi
4 Replies
10. Solaris
Hello,
I have a Sparc system with encapsulated disks.
Because of disk errors I had to replace rootdisk,
I did it with
vxdiskadm 4)
replacement, vxdctl disable/enable,
vxdiskadm 5)
After it it the system boot failed, dropped back to the ok> prompt, message was:
The file... (0 Replies)
Discussion started by: ggi
0 Replies
NBDST(8) BSD System Manager's Manual NBDST(8)
NAME
nbdst -- NetBoot deferred shadow tool
SYNOPSIS
nbdst [-recycle | -preallocate size] devnode shadowfile
DESCRIPTION
nbdst is used during NetBoot to associate a shadow file with the disk image being used as the root device. After the shadow file is attached,
subsequent writes to the root device will be redirected to the shadow file, which normally resides on local storage. nbdst is invoked by
/etc/rc.netboot
ARGUMENTS
The following arguments must be specified:
devnode The device node of the root device, in the form "disk0"
shadowfile Path to a shadow file which will be created and associated with the NetBoot root device
OPTIONS
-recycle If a shadow file already exists, reset it and use it again. Otherwise, information written to an existing shadow file will reap-
pear. Reusing a previous shadow file without resetting it requires that the shadow file be created with the same base image.
-preallocate size
Set the shadow file to the given size up front. This forces a reset of the shadow file (like -recycle).
NOTE
nbdst can only be run as root.
SEE ALSO
hdiutil(1), hdik(8)
macOS 29 Apr 2003 macOS