1834174 Members
2432 Online
110064 Solutions
New Discussion

Re: Problem using newfs

 

Problem using newfs

Hello All,

When I try use the command "newfs", I received the follow message:

cenesp04#newfs -F hfs /dev/vg07/rlvol0704
newfs (hfs): Cannot get status of /dev/vg07/rlvol0704
newfs (hfs): No such file or directory
Please, somebory knows what??s happened ??
Thanks for all .
rodriguescj
11 REPLIES 11
Jordan Bean
Honored Contributor

Re: Problem using newfs


better yet... how about `vgdisplay -v vg07`

Jordan Bean
Honored Contributor

Re: Problem using newfs


what does `vgdisplay vg07` tell you?

Patrick Wallek
Honored Contributor

Re: Problem using newfs

Is the VG active?

# vgchange -a y vg07

A. Clay Stephenson
Acclaimed Contributor

Re: Problem using newfs

The most likely answer is that /dev/vg07/rlvol0704 is a bogus entry.

Do a vgdisplay -v /dev/vg07 and an ls -l /dev/vg07 and let's see what they look like.
If it ain't broke, I can fix that.
John Poff
Honored Contributor

Re: Problem using newfs

Hello,

Did you create a logical volume named lvol0704 for vg07? If you do 'ls -l /dev/vg07' you should see rlvol0704 and lvol0704 in there. If you don't see them, you'll need to 'lvcreate' that logical volume.

JP

Re: Problem using newfs

When I execute "vgdisplay vg07", the system return the vg configuration, because this vg07, it is ok.
rodriguescj
Uday_S_Ankolekar
Honored Contributor

Re: Problem using newfs

Hello,


Try newfs with rdsk instead.

newfs -F hfs /dev/rdsk/device name

I guess you have already created pv,vg and coreesonding lv.

Goodluck
-USA..
Good Luck..
Patrick Wallek
Honored Contributor

Re: Problem using newfs

What about

# lvdisplay /dev/vg07/lvol0704

Re: Problem using newfs

FYI,
There??s already one lvol mounted in this vg07.
rodriguescj
Sridhar Bhaskarla
Honored Contributor

Re: Problem using newfs

Hi,

First of all, I would check if the file name in the command line is correct. Do an ll /dev/vg07/rlvol0704 and see if the device file exists.

Then see if the volume group is active (vgdisplay vg??). If not, activate the volume group.

Also see if this file is a device file.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Ashwani Kashyap
Honored Contributor

Re: Problem using newfs

Is there any space assigned to this logical volume . IF not use lvextend to assign space then use newfs to create file system .