Visit Our UNIX and Linux User Community


OBP - root / mirror disk syntax


 
Thread Tools Search this Thread
Operating Systems Solaris OBP - root / mirror disk syntax
# 1  
Old 07-28-2009
OBP - root / mirror disk syntax

Hi all

Can someone explain to me the different syntax regarding how root / mirror disks are represented. I never truely understand the namely / device tress etc.

Let me give you an example. On one my my servers, the root and mirror drives are :-

A domain on a sunfire 6800 :-
devalias vx-rootdisk /ssm@0,0/pci@1a,700000/pci@1/SUNW,isptwo@4/sd@0,0:a
devalias vx-rootmirror /ssm@0,0/pci@1a,700000/pci@1/SUNW,isptwo@4/sd@1,0:a


On another server, a v880 the root / mirror drives are :-

devalias sds-mirror /pci@8,600000/SUNW,qlc@2/fp@0,0/disk@1,0
devalias sds-disk /pci@8,600000/SUNW,qlc@2/fp@0,0/disk@0,0


On another server, a 280, the root / mirror are :-

nvramrc=devalias mirror /devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e010bfd1d1,0:a

i.e. some have :a or :b or :c on the end of the device path. Why's this ? Is it hardware related ? when it says disk0,0 Im assuming its disk 0, slice 0 ?

How come the dfference in naming ?? This always gets me, and Ive never really truely known why this is.

Cheers
# 2  
Old 07-28-2009
You should attend the Sun Support Readiness Training , where the instructor will teach you more in depth.
http://initialprogramload.blogspot.c...ames-work.html Smilie
# 3  
Old 07-28-2009
yes it depends on the hardware.


now, disk@0,0 (or sd@0,0) (sd = scsi disk) doesn't mean disk 0 slice 0

it means t0d0


disk@1,0 means t1d0


and so forth...


now the meaning of "a", "b", "c"...it means the slice


so c0t0d0s0 should be: disk@0,0:a

now, by default, if you don't specify the slice number it will take slice zero.

for example:
disk@0,0 means t0d0s0

disk@0,0:a means also t0d0s0

disk@0,0:f = t0d0s5

disk@1,0:b = t1d0s1

..............................


Now, the rest of the device name depends on the hardware, but there are things in common, take this example of yours:

/devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e010bfd1d1,0:a


Explanation:

pci@8,60000 = your system bus address
SUNW,qlc = the driver for QLogic card (for example, Emulex cards will look like this SUNW,emlx)...

fp@0,0 = means it's a fiber channel

ssd@w500000e010bfd1d1,0:a = WWN number is w500000e010bfd...

1,0:a = (as you already know) t1, slice 0


.....

all these things are documented by the way...you can go to each server's page in the system handbook, and check the hardware components and then go to the system board section, you should find more in-depth explanations.

so yes it depends on the hardware and the architecture of the system.

---------- Post updated at 01:23 AM ---------- Previous update was at 01:20 AM ----------

And by the way, you can do this to find out your system details:

For example:
Code:
# ls -l /dev/rdsk/c0t0d0s0

it should show you a link to the actual hardware
# 4  
Old 07-29-2009
Thanks Sunfire. Your explanation was great. Its always been something Ive wondered.

So, the :a is optional ? Or depending on hardware it is or isnt ?

SBK
# 5  
Old 07-29-2009
you can say "a" is optional..because if you don't supply the slice number it will take slice 0 by default (which is "a").

Good luck Smilie
# 6  
Old 07-31-2009
sunfire, last questions.

I understand now that ssd@0,0 is t / d of cxtxdx :a or b or c is the sx part. When I do a luxadm probe on the disk, what does the raw bit mean ?

E.G

/devices/pci@1,700000/SUNW,qlc@0,1/fp@0,0/ssd@w203500a0b8117594,0:c,raw


SBK
# 7  
Old 07-31-2009
It means that you're looking at the raw physical device itself...and this address is not to be used for booting. The device we use for booting is a link to the one you just printed.

Previous Thread | Next Thread
Test Your Knowledge in Computers #462
Difficulty: Medium
NTPv4 introduced a 256-bit date format: 128 bits for the second and 128 bits for the fractional-second.
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

Mirror root disk - V490

Got a V490 with one existing root disk. Other disk slot was never populated. Want to ensure we've got disk mirroring. Currently vfstab mounts the physical disk - no mirroring set up. Whats best way to achieve this without losing current disk? (1 Reply)
Discussion started by: psychocandy
1 Replies

2. Solaris

How to detach root mirror pool?

I have to do patching in single user mode in solaris 10 zfs root pool. Before that I have to detach the root mirror pool so that if patching fails then I can boot from detached root mirror pool. Please let me know how can I detach root pool bash-3.2# zpool status pool: rpool state: ONLINE... (5 Replies)
Discussion started by: hb00
5 Replies

3. HP-UX

What is the difference between DRD and Root Mirror Disk using LVM mirror ?

what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 Replies

4. AIX

Clone or mirror your AIX OS larger disk to smaller disk ?

hello folks, I have a 300GB ROOTVG volume groups with one filesystem /backup having 200GB allocated space Now, I cannot alt disk clone or mirrorvg this hdisk with another smaller disk. The disk size has to be 300GB; I tried alt disk clone and mirrorvg , it doesn't work. you cannot copy LVs as... (9 Replies)
Discussion started by: filosophizer
9 Replies

5. Solaris

Mirror the root disk

Hi all I wish to mirror for the root disk, but last time i do, make the server cannot boot up. :p So this time, hope you guys can assist me on it. =) At the last code, is the step i wish to do. Please help to check and correct me if got any wrong. root@leo # format </dev/null Searching for... (17 Replies)
Discussion started by: SmartAntz
17 Replies

6. Solaris

Root Mirror is broken

Hi all, Root mirror is broken under veritas control. so could you please help me how to boot the system now step by step procedure. i really thankful to all. regards krishna (3 Replies)
Discussion started by: murthy76
3 Replies

7. AIX

How to remove disk from mirror?

Hello, I've got 2 system disks (hdisk0 and hdisk1) in the mirror (RAID1) on AIX 5.3. Since the hdisk1 makes some troubles, we want to replace it with the new one. How can I disable this hdisk1 disk and prepare the mirror to use the new physical disk? As far as I know, I must remove disk from the... (3 Replies)
Discussion started by: Yac
3 Replies

8. UNIX for Dummies Questions & Answers

disk suite to mirror both d0 and d2

I have 2 drives on a sun solaris 8 server that is a live server. I am putting in an additional 2 drives and want to mirror the the first 2. I was thinking of using disksuite but one drive is the root drive with 1 maybe 2 free paritions. The other is only one partition (36G). I was wondering... (2 Replies)
Discussion started by: csgonan
2 Replies

9. HP-UX

HP UX Disk Mirror

Being somewhat extremely new to Unix, I have just had a system crash One of my Volume Groups has crashed However, this Volume Group is actually mirrored How do I switch to use the mirrored copy? Any assistance greatly appreciated Thanks (1 Reply)
Discussion started by: cobdeng
1 Replies

Featured Tech Videos