1753278 Members
5715 Online
108792 Solutions
New Discussion юеВ

newfs error....

 
UnixT
Frequent Advisor

newfs error....

Hi,

I have been trying to create an fs on an ia server runs on 11.23. Till lvcrateion it looks good, bit after it gives an error as follows..

[root@sap1dbc1]/root>vgcreate -s 16 -p 100 vg_localP10 /dev/dsk/c10t1d1
Increased the number of physical extents per physical volume to 2224.
Volume group "/dev/vg_localP10" has been successfully created.
Volume Group configuration for /dev/vg_localP10 has been saved in /etc/lvmconf/vg_localP10.conf
[root@sap1dbc1]/root>lvcreate -L 6144 -n P10sap vg_localP10
Logical volume "/dev/vg_localP10/P10sap" has been successfully created with
character device "/dev/vg_localP10/rP10sap".
Logical volume "/dev/vg_localP10/P10sap" has been successfully extended.
Volume Group configuration for /dev/vg_localP10 has been saved in /etc/lvmconf/vg_localP10.conf


[root@sap1dbc1]/root>>newfs -F vxfs /dev/vg_localP10/rP10sap
sh: -F: not found.
[root@sap1dbc1]/root>mkfs -F vxfs /dev/vg_localP10/rP10sap
UX:vxfs mkfs: ERROR: V-3-20003: Cannot open /dev/vg_localP10/rP10sap: No such device or address
UX:vxfs mkfs: ERROR: V-3-20275: cannot open /dev/vg_localP10/rP10sap

Could anyone please help me on this.
7 REPLIES 7
Robert-Jan Goossens
Honored Contributor

Re: newfs error....

Hi,

try

# /usr/sbin/newfs -F vxfs /dev/vg_localP10/rP10sap

# ll /dev/vg_localP10

Regards,
Robert-Jan
UnixT
Frequent Advisor

Re: newfs error....

root>/usr/sbin/newfs -F vxfs /dev/vg_localP10/rP10sap
UX:vxfs newfs: ERROR: V-3-20113: Cannot open /dev/vg_localP10/rP10sap: No such device or address


/root>ll /dev/vg_localP10
total 0
brw-r----- 1 root sys 64 0x020001 Apr 12 13:02 P10sap
crw-r--r-- 1 root sys 64 0x020000 Apr 12 13:00 group
crw-r----- 1 root sys 64 0x020001 Apr 12 13:02 rP10sap
Bill Hassell
Honored Contributor

Re: newfs error....

> [root@sap1dbc1]/root>>newfs -F vxfs /dev/vg_localP10/rP10sap
> sh: -F: not found.

The first line is a big mistake. There is a ">" in front of newfs. What that did was to create a file called "newfs" in your current directory (/root). That's why -F was syntaxed as making no sense. If you have . (current working directory) in your path, subsequent newfs commands may try to run this null file. Especially for root, make sure that your $PATH value does not have two colons in a row (::), colon dot (:.) or a trailing colon at the end of $PATH.

You can tell where newfs is located (for your current shell) by using this command:

type newfs

When unexpected results appear with a command, always use a fullpath as mentioned before:

/usr/sbin/newfs -F vxfs /dev/vg_localP10/rP10sap


Bill Hassell, sysadmin
UnixT
Frequent Advisor

Re: newfs error....

[root@sap1dbc1]/root>/usr/sbin/newfs -F vxfs /dev/vg_localP10/rP10sap
UX:vxfs newfs: ERROR: V-3-20113: Cannot open /dev/vg_localP10/rP10sap: No such device or address
[root@sap1dbc1]/root>
Bill Hassell
Honored Contributor

Re: newfs error....

> UX:vxfs newfs: ERROR: V-3-20113: Cannot open /dev/vg_localP10/rP10sap: No such device or address

The error message looks like it is coming from the clustered filesystem code. Are you running Service Guard? If so, check out this link:

http://forums11.itrc.hp.com/service/forums/questionanswer.do


Bill Hassell, sysadmin
Bart Paulusse
Respected Contributor

Re: newfs error....

What kind of disk system are you creating the volume group on?
Are you using Clusterd File system / Service Guard?
Check out these threads:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1115494
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=959660
Fabio Ettore
Honored Contributor

Re: newfs error....

Hi,

"no such device or address" sounds to me that volume group vg_localP10 is not activated, even if I expect vgcreate should have activated it automatically.

Try vgdisplay vg_localP10 to check, if it's not so then active the vg and retry newfs command.

Best regards,
Fabio
WISH? IMPROVEMENT!