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
LEARN ABOUT OSF1
volencap
volencap(8) System Manager's Manual volencap(8)
NAME
volencap, volreconfig - Encapsulates disks, partitions, or AdvFS domains
SYNOPSIS
/usr/sbin/volencap [-g diskgroup] [-p volprefix] [privlen=nn] [nconfig=nn] { diskname | partition_name | domain_name }...
/usr/sbin/volencap -k { diskname | partition_name | domain_name }...
/usr/sbin/volencap -k -a
/usr/sbin/volencap -s
/sbin/volreconfig
OPTIONS
Puts the encapsulated disk into the disk group specified by disk group ID or disk group name. Instructs volencap to use the specified vol-
prefix as the prefix for LSM volume names generated. This is useful if the LSM volume names generated already exist. Instructs volencap to
remove any pending encapsulation requests for the specified disk(s), partition(s), or domain(s). Instructs volencap to remove all pending
encapsulation requests. Displays all pending encapsulation requests.
DESCRIPTION
Disk partitions that have data can be added to LSM using the encapsulation process. This enables users with existing data in disk parti-
tions to easily migrate to the use of LSM volumes instead of disk partitions.
The /usr/sbin/volencap command is used to encapsulate one or many disk partitions or AdvFS domains.
If an individual partition is specified for encapsulation, the volencap command creates a nopriv disk and a volume for that partition.
If an entire disk is specified, the volencap command creates a nopriv disk and volume for each in-use partition on the disk.
If an AdvFS domain is specified, all disk partitions in the domain are converted to LSM volumes.
You can use the volencap command to encapsulate the partitions on the boot disk, including the root file system, primary swap, usr and var
partitions, to place them under LSM control. See the Logical Storage Manager manual for more information on encapsulating these partitions.
The volencap command can be run directly or through the voldiskadm menus. The volencap command generates LSM commands that are later exe-
cuted by the /sbin/volreconfig command to perform the actual conversion of disk partitions to LSM volumes.
If the disk partition contains a mounted file system or is otherwise open or in use, the volreconfig command will reboot the system to com-
plete the encapsulation process. If you cannot reboot the system at the time you encapsulate the disk partition, either defer running the
volreconfig command until you can reboot the system, or unmount or close the disk partition, then run the volreconfig command.
See the Logical Storage Manager manual for more details.
ATTRIBUTES
Specifies the size of the LSM private region in bytes, for example, privlen=1024. Specifies the number of log copies and copies of the
configuration database, for example, nconfig=0.
EXAMPLES
To encapsulate all disk partitions on the boot disk called dsk0 to LSM volumes, enter: # volencap dsk0 # volreconfig
The volreconfig command will request confirmation prior to rebooting the system. The LSM command scripts created by the volencap
command will execute as the system reboots. To encapsulate only the root file system (dsk0a) and swap (dsk0b) partitions on the
boot disk, enter: # volencap dsk0a dsk0b # volreconfig
The volreconfig command will request confirmation prior to rebooting the system. The LSM command scripts created by the volencap
command will execute as the system reboots. To convert all disk partitions in the AdvFS domain called dom1 to LSM volumes, enter: #
volencap dom1 # volreconfig
The volreconfig command will determine if the domain is active, and if so, request confirmation prior to rebooting the system. The
LSM command scripts created by the volencap command will execute as the system reboots.
If the AdvFS filesets in domain dom1 are not mounted, then /sbin/volreconfig can be executed on the command line. To encapsulate
the specific partition dsk1g to an LSM volume, enter: # volencap dsk1g # volreconfig
The volreconfig command will determine if the partition is open, and if so, request confirmation prior to rebooting the system. The
LSM command scripts created by the volencap command will be executed as the system reboots.
SEE ALSO
volintro(8)
volencap(8)