Aliases not getting saved in OK prompt


 
Thread Tools Search this Thread
Operating Systems Solaris Aliases not getting saved in OK prompt
# 1  
Old 09-20-2013
Aliases not getting saved in OK prompt

Hi Guys,
After setting below paths:
ok nvalias rootdisk /pci@1c,600000/scsi@2/disk@0,0:a
ok nvalias rootmirror /pci@1c,600000/scsi@2/disk@1,0:a
ok nvstore
to check:
ok devalias

devailas does show set path but after reboot
The alias for disks are not getting saved.
I get this error:-
Code:
----------
System is operating in Service Mode.
Rebooting with command: boot rootdisk
Boot device: rootmirror  File and args: rootdisk
Evaluating:
Can't locate boot device

Please advise.
# 2  
Old 09-20-2013
Please provide an output of printenv from ok prompt.
This User Gave Thanks to DukeNuke2 For This Post:
# 3  
Old 09-20-2013
Hi Guys,

Thanks for reply!

here is my disks info:-

Code:
AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>  ROOTDSK
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>  ROOTMIRR
          /pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number):

here is my disks path info:-

Code:
bash-2.03$ ls -l /dev/dsk/c1t0d0s0
lrwxrwxrwx   1 root     root          43 Nov  6  2003 /dev/dsk/c1t0d0s0 -> ../../devices/pci@1c,600000/scsi@2/sd@0,0:a
bash-2.03$ ls -l /dev/dsk/c1t1d0s0
lrwxrwxrwx   1 root     root          43 Nov  6  2003 /dev/dsk/c1t1d0s0 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:a
bash-2.03$

this is what I did:-

Code:
nvalias rootdisk /pci@1c,600000/scsi@2/disk@0,0:a

nvalias rootmirror /pci@1c,600000/scsi@2/disk@1,0:a

nvstore

This is my devalias output:-

Code:
{1} ok devalias
rootmirror               /pci@1c,600000/scsi@2/disk@1,0:a
rootdisk                 /pci@1c,600000/scsi@2/disk@0,0:a
rootmirror               /pci@1c,600000/scsi@2/sd@1,0:a
rootdisk                 /pci@1c,600000/scsi@2/sd@0,0:a
xnet2                    /pci@1d,700000/pci@1/SUNW,hme@0,1:dhcp,
xnet1                    /pci@1e,600000/pci@3/SUNW,hme@0,1:dhcp,
xnet                     /pci@1e,600000/pci@2/SUNW,hme@0,1:dhcp,
net3                     /pci@1d,700000/network@2,1
net2                     /pci@1d,700000/network@2
net1                     /pci@1f,700000/network@2,1
net                      /pci@1f,700000/network@2
cdrom                    /pci@1e,600000/ide@d/cdrom@0,0:f
ide                      /pci@1e,600000/ide@d
disk3                    /pci@1c,600000/scsi@2/disk@3,0
disk2                    /pci@1c,600000/scsi@2/disk@2,0
disk1                    /pci@1c,600000/scsi@2/disk@1,0
disk0                    /pci@1c,600000/scsi@2/disk@0,0
disk                     /pci@1c,600000/scsi@2/disk@0,0
scsi                     /pci@1c,600000/scsi@2
sc-control               /pci@1e,600000/isa@7/rmc-comm@0,3e8
ttyb                     /pci@1e,600000/isa@7/serial@0,2e8
ttya                     /pci@1e,600000/isa@7/serial@0,3f8
name                     aliases
{1} ok

This is my other info:-

Code:
{1} ok printenv boot-device
boot-device =           disk
{1} ok setenv boot-device rootdisk rootmirror
boot-device =           rootdisk rootmirror
{1} ok printenv boot-device
boot-device =           rootdisk rootmirror
{1} ok printenv diag-device
diag-device =           disk
{1} ok setenv diag-device rootdisk rootmirror
diag-device =           rootdisk rootmirror
{1} ok printenv diag-device
diag-device =           rootdisk rootmirror
{1} ok

After setting alises, If I do
OK boot rootdisk ,the system boots

but if I do init 0 and get to OK prompt and do
OK boot

it through below error:-



This is the error which I get:-

Code:
System is operating in Service Mode.

Rebooting with command: boot rootdisk
Boot device: rootmirror  File and args: rootdisk
Evaluating:

Can't locate boot device

{1} ok printenv boot-device
boot-device =           rootdisk rootmirror
{1} ok devalias rootdisk
rootdisk : no such alias
{1} ok devalias rootmirror
rootmirror : no such alias

I also did reset-all after doing nvstore, but still that aliases do NOT get save.

Please advise.

Thanks,
Manali
# 4  
Old 09-20-2013
OK, so you wrote down all this stuff except the ONE thing you've been asked for... I can't help you with the provided information.
This User Gave Thanks to DukeNuke2 For This Post:
# 5  
Old 09-20-2013
Quote:
Originally Posted by DukeNuke2
OK, so you wrote down all this stuff except the ONE thing you've been asked for... I can't help you with the provided information.
I can not reboot the server now to check that output and I did not copy printenv output.SmilieSmilieSmilie
# 6  
Old 09-21-2013
System is operating in Service Mode.

I guess I need to set it to NORMAL mode and then reset it.
so aliases will gt saved.

Am I right?

please confirm.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Squares in saved code

can you help i am merging 2 files together and saving to a third file with awk and its working with this code awk 'OFS="";NR==FNR{a=$0;next} {print a,"\n","\b",$0}' file1 file2 > file3the problem is in file3 when its saved i get a small square at the start of every 2nd line (see picture) ... (6 Replies)
Discussion started by: bob123
6 Replies

2. Solaris

Unable to move from rsc prompt to ok prompt

Hi, on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies

3. UNIX for Dummies Questions & Answers

Script Not getting Saved

Hi , Script File Is Not Getting Saved This Are The Steps I Am Following For Saving And Executing A Script 1). vi ( To Open Vi Editor ) 2). vi filename ( vi firstprog.ksh) #!bin\kash date 3) !wq :( Saving And Quit) When I Am Saving The Scrpit I Am Getting The Below... (1 Reply)
Discussion started by: anudeepkumar123
1 Replies

4. UNIX for Dummies Questions & Answers

where alias saved?

step 1 # alias alias cp='cp -i' alias l.='ls -d .* --color=tty' alias ll='ls -l --color=tty' alias ls='ls --color=tty' alias mv='mv -i' alias rm='rm -i' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' step 2 # cat ~/.bashrc # .bashrc (3 Replies)
Discussion started by: cqlouis
3 Replies

5. UNIX and Linux Applications

Bluefish: where are the preferences saved?

I have just tried out Bluefish as an alternative to my regular text editor. If I save the modified preferences and reboot, the preferences have to be reentered again. Does anyone know which file the preferences are saved in? The command find / -mmin -5 | grep bluefish yields zero hits. Thanks... (2 Replies)
Discussion started by: figaro
2 Replies

6. Shell Programming and Scripting

Can STDERR be saved to a variable

Guys i'm trying to save STDERR to a variable for a portion of my ksh script on solaris. I know i can create redirects to files as such: exec 4>/tmp/lava print "This will be saved to /tmp/lava and not screen"; >&4 print "This will be seen on screen" >&2 I want to save the STDOUT of a... (4 Replies)
Discussion started by: lavascript
4 Replies

7. Shell Programming and Scripting

How can I identify the last saved log?

Our system produce logs when a script is run which may not be daily, the logs have a format: name_YYMMDD.log - both name and .log are consistent, date changes as per the day the script is run. Is there a way of finding the last saved log? (20 Replies)
Discussion started by: gugs
20 Replies

8. UNIX for Advanced & Expert Users

Sudo file not saved

Hi all, I have edited my sudoers file. I am using visudo command I have added the following lines and saved the file. I am saving the lines as :wq But I am very amazed to see that these lines are not written in the sudoers file. I have retried the above process many times, when I... (0 Replies)
Discussion started by: Asteroid
0 Replies

9. UNIX for Advanced & Expert Users

only root's crontab gets not saved

Hi, Something funny is happening over here: when a regular user edits his cron-file (crontab -e) saves and exits vi the correct new cron-file gets installed and saved to disk. But if root does the same, vi saves it but if I then check the cron-file it has the previous contents! I did strace (==... (1 Reply)
Discussion started by: flok
1 Replies
Login or Register to Ask a Question