cancel
Showing results for 
Search instead for 
Did you mean: 

creation of domain

sammer
Advisor

creation of domain

Hi,

Please let me know how to create a domain with number of disks such that the total connectivity to the disks comes to 35.
e.g. domain having 7 disks. Each disk has 5 paths from node A will have a BID value of 7X5=35 for Node A.

Could you please let me know how to do the setup as above requirement.

Thanks in Advance,
Shammer.
17 REPLIES
Vladimir Fabecic
Honored Contributor

Re: creation of domain

Please supply more details such as OS and PATCH version, storage type etc.
Each disk has 5 paths?
Why should it be a problem?
No matter how many paths you have, device file is just one (for example dsk10).
In vino veritas, in VMS cluster
Kapil Jha
Honored Contributor

Re: creation of domain

I think you are more in HPUX , in Tr464 you do not have to worry about alternate paths, it just has one device file so you can use normal command to create domain.
Hope this helps,
BR,
Kapil+
I am in this small bowl, I wane see the real world......
Rob Leadbeater
Honored Contributor

Re: creation of domain

Hi Shammer,

5 paths to a disk looks a bit odd to me. Most storage systems would usually have an even number of paths...

You create a file domain with mkfdmn. You would add a disk to the domain with addvol.

# man mkfdmn
# man addvol

Hope this helps,

Regards,

Rob
sammer
Advisor

Re: creation of domain

Hi,

Could you please give some information about BID .

Here mentioned like if each disk has 5 paths then BID value=(7*5=35).


Thanks,
Shammer.
Rob Leadbeater
Honored Contributor

Re: creation of domain

No idea what BID means. I've not come across it before.

Cheers,

Rob
Vladimir Fabecic
Honored Contributor

Re: creation of domain

Please post OS version.
It is very important for answering your question.
In vino veritas, in VMS cluster
sammer
Advisor

Re: creation of domain

Hi,

Version:V51B
Storage-EMC

Please let me know if you need further information..

Thanks,
Shammer.
Kapil Jha
Honored Contributor

Re: creation of domain

Hello Sammer,
I also have never come across term BID.WHat I know is in Tru64 multipathing is handlled by OS and we do not have to do anything in that , we just have to do configuration for only one disk which u can see in hwmgr v d.
as said above just use mkfdmn and addvol.
If you using LSM them follow LSM on how to add disks.
May be u can ask from EMC guys what they mean by BID.
Hope this help!!
BR,
Kapil+
I am in this small bowl, I wane see the real world......
sammer
Advisor

Re: creation of domain

Hi,

After doing some analysis i found the command which displays "Number of paths" for a disk.


$ hwmgr -show scsi

SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE VALID PATH
-------------------------------------------------------------------------
68: 0 reptile disk none 0 1 dsk0 [0/0/0]
69: 1 reptile disk none 0 1 dsk1 [0/1/0]
71: 4 reptile disk none 0 4 scp0 [2/0/0]
72: 5 reptile disk none 2 4 dsk2 [2/0/3]
73: 6 reptile disk none 2 4 dsk3 [2/0/4]
74: 7 reptile disk none 2 4 dsk4 [2/0/6]

And my requirement is that BID value should be equal to 35.

So am planning to do as below:

Since disks "dsk2 and dsk3" has "NUM PATH=4" and "dsk0 and dsk1" has "NUM PATHS=1" in the output pasted above .


And taking four partitions per disk(a,b,g,h) so for each disk i will be having 4*4=16(Number of Partitions * NUM PATHS=16).

Say for dsk2 result=(4*4=16)
For dsk3 result=(4*4=16)
Since dsk0 used for system disks so i can't use this disk
And dsk1 result=(Partitions * NUM PATHS i.e 4*1=4)
So total Value=16+16+4 = 35).

So totally 3 disks are required to meet the requirement of creating a domain which has BID value=35..

Please let me know how to create a domain with three disks by considering all above conditions...



Thanks,
Shammer.
Rob Leadbeater
Honored Contributor

Re: creation of domain


Without knowing what BID means I wouldn't like to comment...

It's not a term that I've seen used before on Tru64 Unix. Googling for it, doesn't throw up anything that looks relevant either.

The answer to how to make a domain with multiple volumes, has already been provided.

Cheers,

Rob
Rob Leadbeater
Honored Contributor

Re: creation of domain

Hi,

Can you post the output of :

# hwmgr show scsi -full

That will show more detail of your storage.

Note that you probably don't want to be mixing single pathed and multipathed disks into the same domain. When the single disk fails (I'm guessing it's a single SCSI disk, but the output above will tell us that for sure) the domain will panic.

Also, I don't understand where you've got the value of 35 from. Has someone told you that's what you must have, or is it just a number you've picked out of a hat ??

Cheers,

Rob
sammer
Advisor

Re: creation of domain

Hi Rob,

Posting the output of "hwmgr show scsi -full" is very lenghty since it has lot of disks.. So posting one disk output.

$ hwmgr show scsi -id 92 -full

SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE VALID PATH
-------------------------------------------------------------------------
92: 25 reptile disk none 0 4 dsk22 [2/0/111]


WWID:01000010:6000-1fe1-0006-3b20-0009-0251-1742-00c5


BUS TARGET LUN PATH STATE
---------------------------------
2 0 111 valid
2 1 111 valid
2 2 111 valid
2 3 111 valid


My team told that i must have value=35.So thats my to get value 35,as told in my previous update,using three disks with each disk taking 4 partitions.(4*4 + 4*4 + 1*3 = 35)

I know by "mkfdmn" command to create domain and by using "addvol" command to add volumes. But am asking about how to get those three disks for creating domain and adding volumes???.

I mentioned in theoritical form for using three disks in my previous update,Could you please give some suggestions by using "awk or some command how to get those three disks??

Like,by command "hwmgr show scsi" am able to display "NUMBER OF PATHS" so for getting number of paths i must use "awk or some commands" and along with "NUMBER OF PATHS" i must take particular disk which has NUMBER OF PATHS=4 and 1 in some cases to meet final value=35 and this disk should be stored in say Variable1.

Then i can create domain as follows:

mkfdmn "$variable1" domain_name.

Similarly i can apply same procedure for getting remaining disks right..

So could you please let me know for one disk partition how to get??

Hope you understood..
Please let me know,if you need further information...

Thanks,
Shammer.


sammer
Advisor

Re: creation of domain

Hi,

$ hwmgr show scsi

SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE VALID PATH
-------------------------------------------------------------------------
68: 0 mullins disk none 0 1 dsk0 [0/0/0]
69: 1 mullins disk none 0 1 dsk1 [0/1/0]
71: 4 mullins disk none 0 4 scp0 [2/0/0]
72: 5 mullins disk none 2 4 dsk2 [2/0/3]
73: 6 mullins disk none 2 4 dsk3 [2/0/4]
74: 7 mullins disk none 2 4 dsk4 [2/0/6]


From above output,i want 3 disks by checking NUM PATHS=4 and NUMPATHS=1
i need 2 disks which has NUM PATHS=4
and one disk which has NUM PATHS=1



Could you please help me in doing this.

Thanks,
Shammer.
Rob Leadbeater
Honored Contributor

Re: creation of domain

Shammer,

Can you please fill us in on the bigger picture.

Exactly what is the project that you are working on ?

You appear to be trying to set up scripts to do various tasks, which given your apparent lack of understanding of how the operating system works, seems to be a dangerous thing to be doing...

Cheers,

Rob
Kapil Jha
Honored Contributor

Re: creation of domain

Rob Leadbeater raise a very good point why u want to create a domain which has different number of paths.
ANyways whatever I have understood is , u need a weired confiruration , in which u need a domain having 3 disks out of which 2 disks have to have 4 paths and on disk 1 path.

do a hwmgr -show scsi -full
and pick 3 disks which has your required paths lets say dsk3,dsk4 and dsk5.
mkfdmn and them add these disks in domain by using addvol
addvol /dev/disk/dsk1c etc.

Hope this would help.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Ann Majeske
Honored Contributor

Re: creation of domain

Hi Shammer,

Contact me at my email, Ann.Majeske@HP.com and I'll see what I can do to help.

Ann
Rob Leadbeater
Honored Contributor

Re: creation of domain

Hi Shammer,

Apologies if my previous post sounded a bit blunt, I didn't intend it to, however it would be useful to know what the end game is here...

Given your comment:

> But am asking about how to get those three
> disks for creating domain and adding volumes???

the question you appear to be wanting answered, is how do you find out which disks in a system are not currently being used...

You can get a list of domains on the machine, and see which disk devices they are using, by looking at the directory structure and files under /etc/fdmns

You probably also want to be looking at the disklabel of each disk (eg. disklabel -r dsk2) to see what file systems are in use on that disk. You could have UFS file systems and swap partitions that wouldn't be shown in /etc/fdmns.

However, I would be vary wary of trying to write (and I would be reluctant to use) a script or program, that tries to find out this information programmatically without any knowledge of the underlying storage. It could be very easy to blast away some data that you shouldn't have done. Just by looking at the disklabel and domains etc. you won't know for certain that there's no data on the disk...

Cheers,

Rob