System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Persistent Device Files recreation

 
Jacky Wing
Regular Advisor

Persistent Device Files recreation

I want to recreate the persistent device file to follow a certain counting. /dev/disk/disk14 then /dev/disk/disk15 then ...

I present the disk from the storage then:
ioscan -fnNC disk
I get /dev/disk/disk21 then I
rmsf /dev/disk/disk21
mksf -C disk -H hwpath -v /dev/disk/disk14
mksf -C disk -H hwpath -v -r /dev/rdisk/disk14

All works fine, but when I "ll /dev/disk" I get all the devices with 1 bytes and the one create with mksf is 31 bytes. I tried mksf with -d esdisk but it says other information for the drive is not there.

Any idea why?
5 REPLIES
Torsten.
Acclaimed Contributor

Re: Persistent Device Files recreation

>> when I "ll /dev/disk" I get all the devices with 1 bytes and the one create with mksf is 31 bytes


Can you show us the "ll" output?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
rariasn
Honored Contributor

Re: Persistent Device Files recreation

Hi Jacky:

Sample Persistent Device file list:
brw-r----- 1 bin sys 1 0x00001f Apr 25 09:42 disk338
brw-r----- 1 bin sys 1 0x000020 Apr 25 09:42 disk339
brw-r----- 1 bin sys 1 0x000021 Apr 25 09:42 disk340
brw-r----- 1 bin sys 1 0x000022 Apr 25 09:42 disk341

Sample Legacy Device file list:

brw-r----- 1 bin sys 31 0x0b0000 Apr 19 14:57 c11t0d0
brw-r----- 1 bin sys 31 0x0c5700 Apr 25 09:33 c12t5d7
brw-r----- 1 bin sys 31 0x0c6000 Apr 25 09:33 c12t6d0
brw-r----- 1 bin sys 31 0x0c6100 Apr 25 09:33 c12t6d1

#insf -L -v
insf: Legacy mode is enabled

rgs,



Re: Persistent Device Files recreation

You rae looking at the wrong column... the 2nd column on your "ls -l" shows the device file size (1 byte in both cases), the 5th column shows the device major number for the block device (you are looking in /dev/dsk and /dev/disk):

#lsdev | grep sdisk
13 1 esdisk disk
188 31 sdisk disk


So these are correct... if you look in /dev/rdsk and /dev/rdisk you will no doubt see 13 and 188 in these columns.

So this is correct - do you still have a problem?

HTH

Duncan

HTH

Duncan
Jacky Wing
Regular Advisor

Re: Persistent Device Files recreation

ll output:

brw-rw-rw- 1 bin sys 31 0x0e0400 May 26 11:15 disk14
brw-r----- 1 bin sys 1 0x000013 May 2 15:42 disk2_p1
brw-r----- 1 bin sys 1 0x000014 May 2 15:42 disk2_p2
brw-r----- 1 bin sys 1 0x000015 May 2 15:42 disk2_p3

crw-rw-rw- 1 bin sys 188 0x060400 May 26 11:19 disk14
crw-r----- 1 bin sys 13 0x000013 May 2 16:26 disk2_p1
crw-r----- 1 bin sys 13 0x000014 May 2 16:25 disk2_p2
crw-r----- 1 bin sys 13 0x000015 May 2 15:44 disk2_p3


why do I get a 31 next to the sys?
I am doing: mksf -C disk -H .... /dev/disk/disk14

when I try: mksf -d esdisk -H .....

I get: mksf: Couldn't find driver matching arguments

why do I get 31 (next to sys) for the manually created /dev/disk device file instead of 1. & 188 for the manually created /dev/rdisk device file instead of 13?

Jacky Wing
Regular Advisor

Re: Persistent Device Files recreation

I found my error. I was using the legacy hwpath to create persistent device file.
when I use the persistent hwpath it works normally.

Thank you.