Operating System - HP-UX
1753797 Members
7710 Online
108799 Solutions
New Discussion юеВ

Regarding File system problem.

 

Regarding File system problem.

HI

I have two hard disk .

I have Four file system in first hard disk and two in second.

like /well ---5gb
/ggg ----3gb

Now the problem is i have to delete the 3Gb file system and I have to create Four file system on the same hard disk(removing 3gb).

I have deleted the fils system of 3gb but i could not get any free space on the same hard disk.

I do not know why but i have no idea which command will give me the free space status?

Can anyone guide me how to see the file sytem and how to create the new file systems on the same hard disk.

When i have tried to create the file system it is giving me error " no disk space available on the disk"

I also tried to remove the file system from SAM and DISK and FILE SYSTEM then LOGICAL VOLUME and then just remove the UNUSED logical volume from the list.

But still i am getting error.

Can anyone has seen sch type of problem?


Regards

Nikhil
nikhil
3 REPLIES 3
Patrick Wessel
Honored Contributor

Re: Regarding File system problem.

what does a pvdisplay -v /dev/dsk/c... | more show you for this disk? are there any free PE's?
Does the lvol you removed still use PE???
There is no good troubleshooting with bad data

Re: Regarding File system problem.

I think your logical volume is still using space on the volume group.

Imagine your filesystem /ggg is on volumegroup vg01, logical volume lvgggg.

Do a "vgdisplay -v vg01 | more" :

Notice the "Free PE" ? PE stands for Physical Extents ; I think it is very low, as you get the error message "no space available".

Can you see your log-volume /dev/vg01/lvggg in the output ? If so, do following :
- umount /ggg (if this works ...)
- lvchange -a n /dev/vg01/lvggg
- lvremove /dev/vg01/lvggg

By doing this, you have removed the log-volume and freed up the physical extents (PE). If you do the vgdisplay again, you will see that the number of "Free PE's" is higher (means : you have more available space).

Now you can create new log-volumes and file-systems :
- lvcreate -n lvnew vg01
- lvextend -l /dev/vg01/lvnew
- newfs -F vxfs /dev/vg01/rlvnew
- mkdir /new
- change your /etc/fstab to remove the old mount-settings and add the new ones.
- mount -a *or* mount /new

I would suggest to read the man-pages of each command before applying them on the system. You never know ...
Venu_2
Regular Advisor

Re: Regarding File system problem.

Hi,

Say the file system /ggg- 3gb has the lv name /dev/vg01/lvolggg

Now give

vgdisplay -v /dev/vg01 | more

this lists all the lv's in the volume group.
In case the lv /dev/vg01/lvolggg is shown go to case 1 and case 2.

if not, go directly to case 2

case 1:

If the lv /dev/vg01/lvolggg is shown then you have to delete it.

umount /ggg

lvremove /dev/vg01/lvol1ggg

case 2:

If the filesystem is deleted succesfully
The o/p of the vgdisplay ( as said above)command shows the amount free PE in the volume group.

issue these commands for creating the new filesystems


lvcreate -L size_in_MB -n lvname1 /dev/vg01

newfs /dev/vg01/rlvname1


goodluck

venu