Operating System - HP-UX
1833187 Members
2965 Online
110051 Solutions
New Discussion

Cannot create filesystem on EMC disk

 
Jouni Riekkinen
New Member

Cannot create filesystem on EMC disk


I have some disk space allocated on a EMC system. But I cannot create a filesystem on it. I run HP-UX 11.11.

I have entered the following commands:

bash# insf -eCdisk
bash# ioscan -fnCdisk
...
disk 4 0/2/0/0.97.8.255.1.3.0 sdisk CLAIMED DEVICE DGC LUNZ
/dev/dsk/c5t3d0 /dev/rdsk/c5t3d0

bash# newfs /dev/rdsk/c5t3d0
vxfs newfs: Cannot open /dev/rdsk/c5t3d0: Device busy

I got this Device busy message everytime trying to access the disk device. I know EMC disk resource is not accessed be anyone else.

Any tips are appreciated. Thanks in advance.
9 REPLIES 9
Arunvijai_4
Honored Contributor

Re: Cannot create filesystem on EMC disk

Any veritas related processes are running ? Check # ps -ef |grep -i vx

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
VEL_1
Valued Contributor

Re: Cannot create filesystem on EMC disk

VEL_1
Valued Contributor

Re: Cannot create filesystem on EMC disk

Hi,

Use the fuser & fsck to /dev/rdsk/c5t3d0.

Thanks.
Jouni Riekkinen
New Member

Re: Cannot create filesystem on EMC disk


This may not be a volume manager issue. I cannot access the disk by any means from the OS. Even pvcreate failed and returned device busy message
Bill Hassell
Honored Contributor

Re: Cannot create filesystem on EMC disk

Since you can see the disk (and the device ID string) with ioscan, the problem is likely a mapping problem in the SAN. You can try diskinfo which is also a low-level disk command:

diskinfo /dev/rdsk/c5t3d0

If this works, the LUN has been established but the SAN may be preventing write-access.


Bill Hassell, sysadmin
Stuart Abramson
Trusted Contributor

Re: Cannot create filesystem on EMC disk

the clue here is the "LUNZ" in the ioscan.

You have an EMC Clariion disk which is improperly configured. You have to talk to your storage team and get them to do it right. The zoning is correct, and the "storage group" is correct, but the "initiator" is probably defined wrong. If you have PowerPath you define it one way, if not then another.

Get a document from EMC called something like "HP-UX Clariion Storage Configuration Guide". Something like that...

Contact the EMC Software Assistance Center (SAC) and they can set you straight.
Steve Post
Trusted Contributor

Re: Cannot create filesystem on EMC disk

pardon me, but don't you have to run "pvcreate" before you use "newfs"?

steve
Mark Greene_1
Honored Contributor

Re: Cannot create filesystem on EMC disk

You need to reverse the order of the insf and the ioscan. Then you need to run powermt check, powermt config, and finally powermt display dev=all. You'll want to print or otherwise save the output from the last powermt command; you'll need to use the logical device ID from the Clarrion to cross-reference to the LUNs you created so you know which /dev/dsk/cxtxdx device corresponds to which LUNs. Then you should be able to do the pvcreate and then either mknod and vgcreate or vgextend if you're adding these to an existing volume group.

mark
the future will be a lot like now, only later
Kryno Bosman
Advisor

Re: Cannot create filesystem on EMC disk

If you would like to use that EMC-disk, you should do the following:

mkdir /dev/vg??
mknod /dev/vg?? c 64 0x??0000
pvcreate /dev/rdsk/c5t3d0

# If it is still busy of whatever. Be sure that the disks is totally yours to use.

pvcreate -f /dev/rdsk/c5t3d0
vgcreate vg?? /dev/dsk/c5t3d0
lvcreate -L vg??
newfs -F vxfs /dev/vg??/lvol1
mkdir /mountpoint
vi /etc/fstab
Simplicity is too difficult for idiots like you and me...