Operating System - HP-UX
1748265 Members
3743 Online
108760 Solutions
New Discussion юеВ

Re: problerm creating new filesystem

 
Cathy Arora
Frequent Advisor

problerm creating new filesystem

Hi All;
I am creating a new filesystem on existing volume group.(vg00)
I was able to create logical vol successfully but then when I try to create new filesytem on that logical vol I am getting following error.
Please help.
# newfs /dev/vg00/lvol10 - (my input)
newfs: /etc/default/fs is used for -(sys msg) determining the file system type
vxfs newfs: /dev/vg00/lvol10 is not a character device
here are the steps I took before the error.

lvcreate -n /dev/vg00/lvol10
lvcreate -L 55 /dev/vg00/lvol10
cd /
mkdir /xxx
newfs /dev/vg00/lvol10

Thanks
raj
12 REPLIES 12
Pete Randall
Outstanding Contributor

Re: problerm creating new filesystem

You need to use the raw device:

/dev/vg00/rlvol10


Pete


Pete
James R. Ferguson
Acclaimed Contributor

Re: problerm creating new filesystem

Hi Cathy:

You need the "raw" ("character") device:

# newfs -F vxfs /dev/vg00/rlvol10

...note the "r"lvol

Regards!

...JRF...
Uday_S_Ankolekar
Honored Contributor

Re: problerm creating new filesystem

newfs requiers raw lvol number
use
newfs /dev/vg00/rlvol10

-USA..
Good Luck..
Elena Leontieva
Esteemed Contributor

Re: problerm creating new filesystem

You should do:

newfs -F vxfs /dev/vg00/rlvol10 ( or hfs)
notice 'r';

mount /dev/vg00/lvol10 /xxx

add this file system to the /etc/fstab

Elena.
Cathy Arora
Frequent Advisor

Re: problerm creating new filesystem

Thanks all,
I can not believe I missed that.I guess it is time for lunch..
raj
Cathy Arora
Frequent Advisor

Re: problerm creating new filesystem

I forgot to mention in my earlier message if someone can tell me where to find all the options for fstab entry.
meaning rw, suid, delaylog, detaillog, largefiles etc..
I normally use deafult but like to know what these means.

Thanks again;

raj
Pete Randall
Outstanding Contributor

Re: problerm creating new filesystem

Cathy,

Check the "man mount_vxfs" man page for those options.


Pete


Pete
James R. Ferguson
Acclaimed Contributor

Re: problerm creating new filesystem

Hi Cathy:

The various mount optins can be found in the man pages for 'mount(1M)', specifically by filesystem type; viz. 'mount_vxfs(1M)', 'mount_hfs(1M)', etc.

Regards!

...JRF...
Cathy Arora
Frequent Advisor

Re: problerm creating new filesystem

Thanks.
raj