1838670 Members
5921 Online
110128 Solutions
New Discussion

Creating a new FS hangs

 
Arunvijai_4
Honored Contributor

Creating a new FS hangs

Hi Gurus,

I am trying to create a new FS in HP-UX 11.11 using mkfs.

# mkfs -F vxfs /dev/rdsk/c9t0d0
version 4 layout
46080 sectors, 46080 blocks of size 1024, log size 1024 blocks
unlimited inodes, largefiles not supported
46080 data blocks, 44976 free data blocks
2 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 13312 data blocks


and it hangs here... /dev/rdsk/c9t0d0 is a symmetrix disk.

# /usr/symcli/bin/syminq

Device Product Device
----------------------- --------------------------- ---------------------
Name Type Vendor ID Rev Ser Num Cap (KB)
----------------------- --------------------------- ---------------------
/dev/rdsk/c0t0d0 TEAC DV-28E-B 2.2B N/A N/A
/dev/rdsk/c2t0d0 HP 36.4G ST336754LC HPC2 3KQ05BRZ 35566480
/dev/rdsk/c2t1d0 HP 36.4G ST336753LC HPC7 3HX27FE5 35566480
/dev/rdsk/c9t0d0 EMC SYMMETRIX 5670 2000000000 46080

Any ideas will helpful.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
14 REPLIES 14
Luk Vandenbussche
Honored Contributor

Re: Creating a new FS hangs

Have you done a pvcreate first

pvcreate -f /dev/rdsk/c9t0d9
RAC_1
Honored Contributor

Re: Creating a new FS hangs

I hope you did pvcreate before that.
Also what does diskinfo say??
Is disk good?? Run dd on it.
dd if=/dev/rdsk/cxtxdx of=/dev/null bs=1024k

Also run mkfs with -V option and post.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: Creating a new FS hangs

Hi again,

I tried pvcreate, diskinfo, mkfs -v /dev/rdsk/c9t0d0, and no output. I couldn't even kill the processes.

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

Re: Creating a new FS hangs

ioscan -fnCdisk. Is it claimed in ioscan??
If yes, insf -ev -Cdisk.

Looks like old mkfs command is hung, waiting on i/o. You can not kill it then.
There is no substitute to HARDWORK
Hakan Aribas
Valued Contributor

Re: Creating a new FS hangs

Create physical volume:
pvcreate /dev/rdsk/c9t0d0

Create dev file:
mkdir /dev/

Create volume group:
vgcreate -s 8 -e /dev/ /dev/dsk/c9t0d0
lvcreate -L /dev/

Create file system:
newfs -F vxfs -o largefiles /dev//rlvol

Create mount point:
mkdir /

Mount:
mount /dev//lvol //
Arunvijai_4
Honored Contributor

Re: Creating a new FS hangs

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336754LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 209 0/3/1/1.33.18.19.0.0.0 sdisk CLAIMED DEVICE EMC SYMMETRIX
/dev/dsk/c9t0d0 /dev/dsk/disk_query /dev/rdsk/c9t0d0 /dev/rdsk/disk_query

---------------------------------------------
# insf -ev -C disk
insf: Unable to load the driver: drmfglinsf: Unable to load the driver: drmfglrxinsf: Unable to load the driver: gvid_him_consinsf: Installing special files for sdisk instance 0 address 0/0/2/0.0.0.0
insf: Installing special files for sdisk instance 1 address 0/1/1/0.0.0
insf: Installing special files for sdisk instance 2 address 0/1/1/0.1.0
insf: Installing special files for sdisk instance 209 address 0/3/1/1.33.18.19.0.0.0
insf: Unable to unload the driver: drmfglinsf: Unable to unload the driver: drmfglrxinsf: Unable to unload the driver: gvid_him_cons
-----------------------------------------
"A ship in the harbor is safe, but that is not what ships are built for"
Mahesh Kumar Malik
Honored Contributor

Re: Creating a new FS hangs

Hi Arun

Following steps may help:

1. #pvcreate /dev/rdsk/c9t0d0
2. #insf -e
2. mkfs -F vxfs /dev/rdsk/c9t0d0

If system hangs during mkfs, there is possibility that disk is defective. Run "dd"command to verify the disk or if online diagnostics are installed, run disk diagnostic for thorough verification of media

Regards
Mahesh
Arunvijai_4
Honored Contributor

Re: Creating a new FS hangs

# dd if=/dev/rdsk/c9t0d0 of=/dev/null bs=1024k
45+0 records in
45+0 records out
============================================

"A ship in the harbor is safe, but that is not what ships are built for"
Anoop P_2
Regular Advisor

Re: Creating a new FS hangs

Arun,

This looks like a peculiar problem for me. I would advice you to try this, but to be frank enough, Im not sure, if it would work:

Reboot the system and bring it up in single user mode. (This would get rid of any previous mkfs / ioscan hung commands )

If required, mount the filesystems in vg00 manually.

pvcreate -F /dev/rdsk/c9t0d0 (This is a destructive command. Be sure of the disk path)

Look for any errors.

Your disk size is 47 GB.

Create a new vg. The commands are already in the above responses, but still...

mkdir /dev/vg09
mknod /dev/vg09/group c 64 0x090000
vgcreate /dev/vg09 /dev/dsk/c9t0d0
vgchange -a y vg09

If this was succesful, then we'll create a smaller lv...

lvcreate -L 1024 /dev/vg09

Lets try an HFS file system...

mkfs -F hfs /dev/vg09/lvol1

Keep your fingers crossed, to see if this completes succesfully. If it did, mount it to any folder, and look for errors while mounting. If it did'nt, call up the EMC guy and ask him to work with you to resolve this issue.

If it did complete, unmount it and create a vxfs file system...

mkfs -F vxfs /dev/vg09/lvol1

If succesful, you have reasons to be happy. If not, ??? Well, I think It would.

Mount this on to some folder and check.

Extend the lv size to say 40 GB

lvextend -L 40960 /dev/vg09/lvol1
fsadm -b 40960M
If you came thus far, you could still go near the 47 GB mark and see where it stops working. I would contact EMC to find out why I cant use the whole 47 GB in one shot...

Cheers!
Anoop
Devender Khatana
Honored Contributor

Re: Creating a new FS hangs

Hi,

It is not always required to create a PV,VG,LV on a disk to access it, allthough it is recommended. If intentionally you need to create a file system on disk without LVM, it should not take much time and should be completed. This is some issue with your EMC array and I remember a recent thread which invloved some EMC problem which was rectified later and sorted out similar problem.

Also ensure latest patches.

Anoop - We are not sure wheather onlineJFS is installed to extend file system online.

HTH,
Devender
Impossible itself mentions "I m possible"
Fabio Ettore
Honored Contributor

Re: Creating a new FS hangs

Hi,

I noticed /dev/dsk/disk_query into ioscan output. I should think that it is not so normal.
I usually saw it sometimes when creating a VG by SAM.
Did you extend this disk into this VG by SAM?

Anyway I would suggest:

- remove those special files:
rmsf /dev/dsk/disk_query
rmsf /dev/rdsk/disk_query

- vgreduce the VG about that disk:
vgreduce /dev/vgXX /dev/dsk/c9t0d0

- pvcreate again:
pvcreate -f /dev/rdsk/c9t0d0

- vgextend again:
vgextend /dev/vgXX /dev/dsk/c9t0d0

- and I usually prefer to use newfs even if it recalls mkfs:

newfs -F vxfs /dev/rdsk/c9t0d0

Let us know if it helps.

Best regards,
Fabio
WISH? IMPROVEMENT!
Anoop P_2
Regular Advisor

Re: Creating a new FS hangs

Devendar,

"I am trying to create a new FS in HP-UX 11.11 using mkfs. "

Online JFS is a part of HPUX 11.11 by default. Hence I'm sure that we could extend it online, unless there is a media issue.

Regards,
Anoop
Devender Khatana
Honored Contributor

Re: Creating a new FS hangs

Hi,

Online JFS is not part of standard OS bundle in any release? It is a seperate licensed product.

HTH,
Devender
Impossible itself mentions "I m possible"
Bill Hassell
Honored Contributor

Re: Creating a new FS hangs

At the beginning of the post, you are using newfs for the entire disk so it does not need to have pvcreate, vgcreate and lvcreate. Is this what you want to do? However, the output from ioscan and hangs from the other disk commands is likely the problem. Your system cannot communicate with the disk at the driver level. You'll have to review the EMC docs on how to connect the disk (and make it active) to your system. Until diskinfo works, there is no point trying anything else.


Bill Hassell, sysadmin