HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with creating new space.

 
Jeffrey F. Goldsmith
Super Advisor

Problem with creating new space.

I work with HP-UX 11.23 on an rp3440-4 server. We use Informix 9. This morning I tried to create a new lv space on my server but for some reason I am not able to mount it.

Here are the steps that I took to create the space.

root: / ==> lvcreate -L 500 -n devtacs10 /dev/vg01
Warning: rounding up logical volume size to extent boundary at size "512" MB.
Logical volume "/dev/vg01/devtacs10" has been successfully created with
character device "/dev/vg01/rdevtacs10".
Logical volume "/dev/vg01/devtacs10" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf


When I tried to mount it I received this error:

root: / ==> mount /dev/vg01/devtacs10 /apps/devtacs10
/dev/vg01/devtacs10: unrecognized file system


So I checked the syslog and found this:

Jan 28 09:34:40 gravina LVM[11732]: lvcreate -L 500 -n devtacs10 /dev/vg01
Jan 28 09:34:41 gravina LVM[11732]: Volume Group configuration for /dev/vg01 has
been saved in /etc/lvmconf/vg01.conf


I figured that I would need to make sure the lv was in /etc/fstab. It wasn't there so I added it by making a copy of the orignal entry and modified the name.

/dev/vg01/devtacs10 /apps/devtacs10 vxfs delaylog 0 2


When I try to mount the lv I still get an error.

root: /dev/vg01 ==> mount /dev/vg01/devtacs10 /apps/devtacs10
/dev/vg01/devtacs10: unrecognized file system
root: /dev/vg01 ==> mount /apps/devtacs10
vxfs mount: not a valid vxfs file system


I have followed these same steps last year when I created my last lv and didn't have any problems.
Does anyone know what I am doing wrong?

5 REPLIES
Rita C Workman
Honored Contributor

Re: Problem with creating new space.

Did you create the file system?


Example:

newfs -F vxfs -o largefiles /dev/vg01/rdevtacs10

Then create a mountpoint and try to mount it.

Or did I miss reading that up there??

Rgrds,
Rita
Patrick Wallek
Honored Contributor

Re: Problem with creating new space.

Rita got it in one.

You created the LV, but neglected to create a filesystem on the LV.

The 'newfs' command Rita gave should do the trick for you.
Johnson Punniyalingam
Honored Contributor

Re: Problem with creating new space.

Hi Jeff,

>>>Does anyone know what I am doing wrong?
<< You have missed out "newfs" or fsadm command,.?

Basic steps to create a File system

1. lvcreate
2. newfs or fsadm (fsadm- used when Online JFS has been Installed)
3. edit the /etc/fstab file to add entry for newly created File System
4. mount -a

See below example:-
===================
user requested creat new mount point for 5GB,,

/usr/sbin/lvcreate -L 5120 vg06

newfs -F vxfs -o largefiles /dev/vg06/rlvol20

or

fsadm -F vxfs -o largefiles /dev/vg06/rlvol20

mkdir /oracle/kms/data05

cp /etc/fstab /etc/fstab.0111062334

vi /etc/fstab/dev/vg06/lvol20 /oracle/kms/data05 vxfs rw,suid,largefiles,delaylog,datainlog 0 2

mount /oracle/kms/data05

Hope this Helps.

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
sdass
Advisor

Re: Problem with creating new space.

You can use the following command to create the lv

The following creates a 500MB large LV named lvdata on any disk(s) of the VG vg01:
# lvcreate -n lvdata -L 500 vg01
# newfs -F vxfs -o largefiles /dev/vg01/rlvdata

donot forget to give largefiles if you are not using online JFS

Re: Problem with creating new space.

>sdas: not forget to give largefiles if you are not using Online JFS

I was able to use fsadm to set largefiles without Online JFS on 11.23.