Operating System - HP-UX
1821546 Members
1995 Online
109633 Solutions
New Discussion юеВ

Re: "unrecognized file system" after newfs.

 
SOLVED
Go to solution
stephen peng
Valued Contributor

"unrecognized file system" after newfs.

Guys,
I've got following issue:
[RX6600_4][root][/dev/vgpeng]#newfs /dev/vgpeng/rpeng1
newfs: /etc/default/fs is used for determining the file system type
version 6 layout
1048576 sectors, 1048576 blocks of size 1024, log size 16384 blocks
largefiles supported
[RX6600_4][root][/dev/vgpeng]#mount /dev/vgpeng/rpeng1 /peng
mount: /dev/vgpeng/rpeng1 is an invalid operand
[RX6600_4][root][/dev/vgpeng]#mount /dev/vgpeng/peng1 /peng
/dev/vgpeng/peng1: unrecognized file system
[RX6600_4][root][/dev/vgpeng]#newfs -F vxfs -o largefiles /dev/vgpeng/rpeng1
version 6 layout
1048576 sectors, 1048576 blocks of size 1024, log size 16384 blocks
largefiles supported
[RX6600_4][root][/dev/vgpeng]#mount -o largefiles /dev/vgpeng/peng1 /peng
/dev/vgpeng/peng1: unrecognized file system

never seen that, what could this be?

regards
Stephen
21 REPLIES 21
madhuchakkaravarthy
Trusted Contributor

Re: "unrecognized file system" after newfs.

hi

run fsck -F vxfs -o full /dev/vgpeng/lpeng1

regards

MC
Ismail Azad
Esteemed Contributor

Re: "unrecognized file system" after newfs.

Hi,

Well a guess.... Could there be something wrong with your "block" device file as the newfs argument with the "raw" device file seems to work. Probably your peng block device file is missing??

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
stephen peng
Valued Contributor

Re: "unrecognized file system" after newfs.

Guys,
[RX6600_4][root][/dev/vgpeng]#fsck -F vxfs -o full /dev/vgpeng/rpeng1
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
pass3 - checking reference counts
pass4 - checking resource maps
OK to clear log? (ynq)y
flush fileset headers? (ynq)y
set state to CLEAN? (ynq)y
[RX6600_4][root][/dev/vgpeng]#mount /dev/vgpeng/peng1 /peng
/dev/vgpeng/peng1: unrecognized file system
[RX6600_4][root][/dev/vgpeng]#ll
total 0
crw-r--r-- 1 root sys 64 0x060000 Apr 1 13:49 group
brw-r----- 1 root sys 64 0x060001 Apr 1 13:51 peng1
crw-r----- 1 root sys 64 0x060001 Apr 1 13:51 rpeng1

I just created this lv and newfs it, then it was told to be unrecognized, this confused me.

regards
Stephen
madhuchakkaravarthy
Trusted Contributor

Re: "unrecognized file system" after newfs.

hi

what does the fstyp -v /dev/vgpeng/peng1 shows.

regards

MC
stephen peng
Valued Contributor

Re: "unrecognized file system" after newfs.

RX6600_4][root][/]#fstyp -v /dev/vg00/lvol7
unknown_fstyp (no matches)
[RX6600_4][root][/]#fstyp -v /dev/vgpeng/peng1
unknown_fstyp (no matches)

look like something was wrong.
Zinky
Honored Contributor

Re: "unrecognized file system" after newfs.

cd out of the vg directory
try lvremoving your lvol
then recreate the filesystem:

mkfs -F vxfs -o bsize=8192,largefiles /dev/vgpeng/rpeng1

mkdir /a
mount /dev/vgpeng/peng1 /a

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
stephen peng
Valued Contributor

Re: "unrecognized file system" after newfs.

Alzhy├п┬╝
[RX6600_4][root][/]#mkfs -F vxfs -o bsize=8192,largefiles /dev/vgpeng/rpeng1
version 6 layout
1048576 sectors, 131072 blocks of size 8192, log size 2048 blocks
largefiles supported
[RX6600_4][root][/]#mount /dev/vgpeng/peng1 /peng
/dev/vgpeng/peng1: unrecognized file system

regards
Stephen
Zinky
Honored Contributor

Re: "unrecognized file system" after newfs.

how's about:

add in /etc/fstab:

/dev/vgpeng/peng1 /peng vxfs delaylog 0 2


and :

mount /peng

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
stephen peng
Valued Contributor

Re: "unrecognized file system" after newfs.

Alzhy,
It works! How could this happen? It is a 11.31 box.

regards
Stephen
Zinky
Honored Contributor
Solution

Re: "unrecognized file system" after newfs.

Maybe the default manual mount option is for hfs in your environment? Can' recall though where it's set or if it is even possible. Without specifying -F Fstype - I always thought default is vxfs.


Maybe you can try unmounting and do an explicit mount:

mount -F vxfs /dev/vgpeng/peng1 /peng


Glad it is working though.
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Zinky
Honored Contributor

Re: "unrecognized file system" after newfs.

Hmmm -- 11.31 mount (1M) man pages say:

-F FStype Specify FStype, the file system type on which to
operate. See fstyp(1M). If this option is not
included on the command line, then it is
determined from either /etc/fstab, by matching
special with an entry in that file, or from file
system statistics of special, obtained by
statfsdev() (see statfsdev(3C)).


So something weird in your environment. Far out but maybe mount command is an alias in your environment?

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
stephen peng
Valued Contributor

Re: "unrecognized file system" after newfs.

Alzhy,
[RX6600_4][root][/dev/vgpeng]#mount -F vxfs /dev/vgpeng/peng1 /peng
vxfs mount: V-3-22168: Cannot open portal device: No such file or directory

and /peng does mounted. the sad thing is that everything happened is beyond my knowledge!

regards
Stephen
Zinky
Honored Contributor

Re: "unrecognized file system" after newfs.

Is this an uber-new 11.31 installation ? Maybe the Sep 2010 release?

What version of VxFS is installed?

swlist|grep -i vxfs

Maybe you have the latest and greates VxVM/VxFS and there've been changes?

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
stephen peng
Valued Contributor

Re: "unrecognized file system" after newfs.

No,mount command is not a alias.
and what do you think about this:
RX6600_4][root][/]#fstyp -v /dev/vg00/lvol7
unknown_fstyp (no matches)
[RX6600_4][root][/]#fstyp -v /dev/vgpeng/peng1
unknown_fstyp (no matches)



regards
Stephen
Zinky
Honored Contributor

Re: "unrecognized file system" after newfs.

yes fstyp returning an unknown filesystem is puzzling too...

There is certainly something unique in your 11.31 environment.

Pls. send VxFS versions.
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
stephen peng
Valued Contributor

Re: "unrecognized file system" after newfs.

the following are output from swlist which I consider useful:
2010Mar1131 2010.03 HPUX 11.31 Megpatch for Mar 2010
Base-VXFS B.11.31 Base VxFS File System 4.1 Bundle for HP-UX
Base-VxFS-50 B.05.00.01 Veritas File System Bundle 5.0 for HP-UX
FEATURE11i B.11.31.0909.341b Feature Enablement Patches for HP-UX 11i v3, September 2009

regars
Stephen
stephen peng
Valued Contributor

Re: "unrecognized file system" after newfs.

And:
QPKAPPS B.11.31.0909.341a Applications Patches for HP-UX 11i v3,
September 2009
QPKAPPS B.11.31.1009.353a Applications Patches for HP-UX 11i v3,
September 2010
QPKBASE B.11.31.0909.341a Base Quality Pack Bundle for HP-UX 11i
v3, September 2009
QPKBASE B.11.31.1009.353a Base Quality Pack Bundle for HP-UX 11i
v3, September 2010
Zinky
Honored Contributor

Re: "unrecognized file system" after newfs.

I too have the same bits 4.1 base and 5.0.1 Vxfs bundle. But your QPKs are latest and greatest (mine is Sep 2008)

I suggest you raise a support ticket with HP and see if this is now the normal behaviour or something's fishy.

My tools/scripts will certainly break if fstyp is "broken"...

Cheers!
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
madhuchakkaravarthy
Trusted Contributor

Re: "unrecognized file system" after newfs.

hi

I've got following issue:
[RX6600_4][root][/dev/vgpeng]#newfs /dev/vgpeng/rpeng1
newfs: /etc/default/fs is used for determining the file system type
version 6 layout
1048576 sectors, 1048576 blocks of size 1024, log size 16384 blocks
largefiles supported -------------------->

if u note that there might be no entry in /etc/default/fs

if not add entry vxfs.

if no entry present it looks for /etc/fstab.

after that Alzhay said make an entry in fstab,so it worked fine.

my suggestion is look in /etc/default/fs.

that why i asked you to send the output of fstyp.

regards

MC
stephen peng
Valued Contributor

Re: "unrecognized file system" after newfs.

MC,
[RX6600_4][root][/]#more /etc/default/fs
LOCAL=vxfs

so /etc/default/fs is ok.

regards
Stephen
stephen peng
Valued Contributor

Re: "unrecognized file system" after newfs.

It turned out to being the missing of /etc/vxportal.