Operating System - HP-UX
1836590 Members
2113 Online
110102 Solutions
New Discussion

newfs problem when creating lvol

 
Neil Harris
Regular Advisor

newfs problem when creating lvol

I am trying to create an lvol on a new vg. the vg creates with out problem. When I do the lvol i get

the command newfs used to create a new filesystem on /dev/vg03/rlvol has failed

the specific errors are
vxfs mkfs read failure at block xxxxxxxxx

vxfs mkfs: rvxfs invalid argument.

I thought at first this was a disk failure and replaced the disk this is now occuring on the replacement disk, any idea

An inveterate hacker
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: newfs problem when creating lvol

Hi Neil:

Are you specifying a size of are you simply specifying the raw lvol. Newfs should be able to determine the size of the lvol and create the filkesystem w/o a size argument.

I would try a disk read test on this lvol.
e.g. dd if=/dev/vg03/rlvol1 bs=64k of=/dev/null

and see if you get any i/o errors. Normally newfs on lvols is a piece of cake. I do assume you have fairly recent LVM/vxfs patches.

Clay



If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: newfs problem when creating lvol

Neil,

I hope you certainly followed the procedure. Just to recheck, I specifying the steps below.

#mkdir /dev/vgxx
#mknod /dev/vgxx/group c 64 0x0?0000
(replace ? with a uniq number less than maxvgs
kernel parameter)
#pvcreate /dev/dsk/cxtydz (use -f if it gives out error)
#vgcreate -s 8 vgxx /dev/dsk/cxtydz
#lvcreate -n some_lvol -L some_size_in_MB vgxx
#newfs -F vxfs /dev/vgxx/rsome_lvol

This procedure should work. If not, try a
dd from the whole disk. This will take a while but will verify the disk physically

#diskinfo /dev/rdsk/cxtydz
#dd if=/dev/rdsk/cxtydz of=/dev/null bs=1024k

This should return without any read errors.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try