Operating System - HP-UX
1837533 Members
3669 Online
110117 Solutions
New Discussion

Unable to create a new filesystem: No such device or address

 
JacobM
New Member

Unable to create a new filesystem: No such device or address

Dear ITRC Team,

I have created the new logical volume group and the new logical volume:

# lvcreate -L 100 -n lv1 /dev/vg01
Logical volume "/dev/vg01/lv1" has been successfully created with
character device "/dev/vg01/rlv1".
Logical volume "/dev/vg01/lv1" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

When I tried to create a new filesystem I've got this error:

# newfs -F vxfs /dev/vg01/rlv1
vxfs newfs: V-3-20113: Cannot open /dev/vg01/rlv1: No such device or address

LVG and LV are available:
# vgdisplay -v /dev/vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 3839
VGDA 2
PE Size (Mbytes) 4
Total PE 3839
Alloc PE 25
Free PE 3814
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0.0

--- Logical volumes ---
LV Name /dev/vg01/lv1
LV Status available/syncd
LV Size (Mbytes) 100
Current LE 25
Allocated PE 25
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk22
PV Status available
Total PE 3839
Free PE 3814
Autoswitch On
Proactive Polling On

# vgdisplay -v /dev/vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 3839
VGDA 2
PE Size (Mbytes) 4
Total PE 3839
Alloc PE 25
Free PE 3814
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0.0

--- Logical volumes ---
LV Name /dev/vg01/lv1
LV Status available/syncd
LV Size (Mbytes) 100
Current LE 25
Allocated PE 25
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk22
PV Status available
Total PE 3839
Free PE 3814
Autoswitch On
Proactive Polling On

# cd /dev/vg01
# ll
total 0
crw-r----- 1 root sys 64 0x010000 Mar 25 15:40 group
brw-r----- 1 root sys 64 0x010001 Mar 25 15:41 lv1
crw-r----- 1 root sys 64 0x010001 Mar 25 15:41 rlv1
#

What am I missing?

Thanks in advance,
Jacob
9 REPLIES 9
VK2COT
Honored Contributor

Re: Unable to create a new filesystem: No such device or address

Hello,

Interesting error. I could not find V-3-20113
error anywhere.

Here is what we can deduct from your message so far.

a) You are running HP-UX 11.31 and LVM uses
disk layout 1 (L1). That is obvious
from "VG Version 1.0.0".

b) You use agile view (good). Your physical
volume for vg01 is /dev/disk/disk22.

c) Your physical volume is possibly
a SAN LUN. The disk size is small:

PE Size (Mbytes) 4
Total PE 3839

3839 x 4 = 15356 MB

It would be good to know what kind of storage
you use...

Now, let's do some checks:

# ioscan -fn
# ioscan -fnN
# ioscan -m dsf /dev/disk/disk22
# strings /etc/lvmtab
# strings /etc/lvmtab_p
# vginfo -v
# lvdisplay -v /dev/vg01/lv1
# pvdisplay -v /dev/disk/disk22
# diskinfo /dev/rdisk/disk22
# vgcfgrestore -n vg01-lv
# scsimgr lun_map -C disk -I 22

Check top-level directory permissions:

# ls -ald /dev
# ls -ald /dev/vg01
# ls -als /etc/ioconfig
# ls -als /etc/ext_ioconfig

Check for hidden characters:

# ls -alsb /dev/vg01

I am not sure if you installed 11.31
March 2008 release. Try this too:

# lvmadm -t -V 1.0

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Robert-Jan Goossens
Honored Contributor

Re: Unable to create a new filesystem: No such device or address

Hi Jacob,

Try to activate the logical volume.

# lvchange -a y /dev/vg01/lvol1

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=959660

Regards,
Robert-Jan
VK2COT
Honored Contributor

Re: Unable to create a new filesystem: No such device or address

Hello,

I also originally thought about possibility
of reactivating the VG and/or LV, but the
status seemingly says they were already
active:

LV Name /dev/vg01/lv1
LV Status available/syncd

Unless there is some strange bug, your
LV does not need to be activated again :)

But, everything is possible... This
is weird world of computers :)

I would be very interested in seeing the
results of the various commands I listed
in the previous post.

VK2COT
VK2COT - Dusan Baljevic
JacobM
New Member

Re: Unable to create a new filesystem: No such device or address

Dear All,

We've got HPUX 11.31:

oradev1:/home/oracle# uname -a
HP-UX oradev1 B.11.31 U ia64 1290465185 unlimited-user license

and yes, this physical volume is SAN LUN (EMC Clariion CX500) and the size of this LUN is 15Gb.

I don't have any problems to create filesystems on a logical volume on the volume group vg00.

And I am able to create a filesystem on the SAN LUN physical volume:

/sbin/mkdir -p -m u=rwx,g=rx,o=rx /u04/oradata/FPRDS &&
/usr/sbin/mkfs -F vxfs /dev/rdisk/disk23 &&
/usr/sbin/mount -F vxfs -e /dev/disk/disk23 /u04/oradata/FPRDS &&
/usr/bin/cp -p /etc/fstab /etc/fstab.smh.old &&
/usr/bin/echo "/dev/disk/disk23 /u04/oradata/FPRDS vxfs defaults 0 2 " >> /etc/fstab

But I would like to use logical volumes.

Robert-Jan: that was my first try - unfortunately, didn't help.

Please find the output attached.

Thanks,
Jacob
psreedhar
Frequent Advisor

Re: Unable to create a new filesystem: No such device or address

Hi,
I am worried, HPUX 11.31 and EMC clarion doesn't make good pair.
In built Native multipathing of 11.31 can't support active passive devices as is.
So we have to install ALUA driver which provided by the device vendor.

If you have already installed such driver let me know.
VK2COT
Honored Contributor

Re: Unable to create a new filesystem: No such device or address

Hello,

Good, as I suspected you have multiple
legacy views for agile path:

Persistent DSF Legacy DSF(s)

========================================

/dev/disk/disk22 /dev/dsk/c8t0d0

/dev/dsk/c7t0d0

/dev/dsk/c6t0d0
/dev/dsk/c5t0d0

By the way, you mistyped one command.
Instead of:

# vgcfgrestore -n vg01-lv

It should be:

# vgcfgrestore -n vg01 -lv

And vginfo is in directory:

/usr/sam/lbin

I can think of two things to try:

a) By default, LVM proactively monitors the
health of all configured links. If
autoswitchback is enabled (the default),
this polling helps LVM detect and switch to
a better link when it becomes available.
If proactive polling of alternate links is
undesirable (as with EMC arrays), polling
can be disabled of alternate paths by using:

# pvchange -p n /dev/dsk/c7t0d0
and so on.

b) By the way, EMC SPC-2 option is mandatory
for HP-UX 11.31 support. EMC SPC-2 option
can only be enabled by their field engineers.

How to check for SPC-2:

Method 1:

# scsimgr -v get_info -D /dev/disk/disk22

Look for "SPC protocol revision".
If the revision is 4 (or greater), then
the SPC_2 option is enabled for the LUN. If
the revision is 2, then the option is not enabled for the LUN.

Method 2:

# diskinfo -v /dev/disk/disk22

Look for "ANSI version". If the version is 2
(or greater), then the SPC-2 option is enabled.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
psreedhar
Frequent Advisor

Re: Unable to create a new filesystem: No such device or address

what is this -v 1.0 in "lvmadm -t -V 1.0"
VK2COT
Honored Contributor

Re: Unable to create a new filesystem: No such device or address

Hello,

That is new in March 2008 release of HP-UX 11.31 :)

Basically, HP-UX 11.31 now has two LVM disk layouts (L1 and L2).

Here is an example: Up to now we all used to
run the following to create a new VG:

# mknod /dev/vgXYZ/group c 64 0x04000

That is actually disk layout 1 (L1).

Now the same VG in disk layout 2 (L2):

# mknod /dev/vgXYZ/group c 128 0x04000

Then, with disk layout 2, you can run
more elegant command to create
volume groups. For example:

# vgcreate -V 2.0 -S /dev/vgXYZ /dev/disk/disk34

"-S" units can be in
m (megabytes)
g (gigabytes)
t (terabytes)
p (petabytes)

L2 has many improved features over L1.

As yet, L2 cannot be used for boot disk.

So, to cut the story short, lvmadm and
L2 are new :)

Cheers,

VK2COT
VK2COT - Dusan Baljevic
VK2COT
Honored Contributor

Re: Unable to create a new filesystem: No such device or address

Ahh,

My bad typing.

The example should read:

# vgcreate -V 2.0 -S 8t /dev/vgXYZ /dev/disk/disk34
VK2COT - Dusan Baljevic