1835210 Members
1873 Online
110077 Solutions
New Discussion

/dev/vg00/lvol3

 
Jeffrey F. Goldsmith
Super Advisor

/dev/vg00/lvol3

I have been working on my server for the past 2 days installing a smart array. I started doing a restore without mounting the volume that I needed to restore. The restore failed but now my lvol3 is showing 100%.

Where is lvol3 located and can I delete what was restored there?
9 REPLIES 9
goldboy
Trusted Contributor

Re: /dev/vg00/lvol3

Jeffrey,
lvol3 in HPUX is / (root)
what kind of a restore are you doing ? can you be more specific ?

Tal
"Life is what you make out of them!"
Bill Hassell
Honored Contributor

Re: /dev/vg00/lvol3

Here's what happened:

All mountpoints start as simple directories. When you mount a volume, the directory becomes glue to attach the new lvol to the current directory structure. But when you did not mount the lvol, the directory looks the same to your restore program but it is just a part of / (lvol3). So cleanup the / directory by removing the files inside the mountpoint directory.


Bill Hassell, sysadmin
perumal_2
Frequent Advisor

Re: /dev/vg00/lvol3

Hi

delete the restored file in lvol3. Since you haven't mounted the lvol before doing a restore it had dumped everything in the / in the specified directory.

Rgds
Perumal
Jeffrey F. Goldsmith
Super Advisor

Re: /dev/vg00/lvol3

Here is what happened. I installed a Smart Array SCSI controller into my server and had to rebuild the LVâ s that were on the disks. I created the LV with lvcreate. Most of the LVâ s are raw space. There are 14 LVâ s that I had to make mountable so I used this command:

newfs â F vxfs /dev/vg01/rarchive

The problem that I am having is that prior to mounting one of the LVâ s I started a restore job to restore the files. The restore ran for about 4 minutes before it canceled because it ran out of space. When I did a â bdfâ I found that /dev/vg00/lvol3 was full.

root: /root ==> bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 524264 24 100% /


Once I realized my mistake I mounted the LV and restarted the restore. Now I need to either figure out what is taking up the space in lvol3 and remove it or increase lvol3. Last year I installed online JFS so hopefully I can increase lvol3 without having to down my server.

Any help would be great.
Torsten.
Acclaimed Contributor

Re: /dev/vg00/lvol3

Let's asume the mountpoint is

/mnt01

If you restore your data into this directory without mounting a LVOL there, the data is just there (in " / " under /mnt01).

If you mount a LVOL there, the data is just "hidden" - umount the LVOL and you will see it.

Once you see it you may delete it.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Patrick Wallek
Honored Contributor

Re: /dev/vg00/lvol3

Unmount the LV you mounted.

Now cd to the directory that you started the restore for. You'll see files there. Now remove those files.

Now remount the LV you unmounted above.

It's not rocket science, you just need to stop and think about how things work in HP-UX. Bill gave a good explanation above.
Jeffrey F. Goldsmith
Super Advisor

Re: /dev/vg00/lvol3

I am not able to umount the system right now so it would be better for me to increase the lvol3. Once I get some service time on the server I will be able to umount the volume and remove the files.

How should I go about increasing lvol3?
Patrick Wallek
Honored Contributor

Re: /dev/vg00/lvol3

You can't do that easily either. The problem is that all extents for the root filesystem (vg00/lvol3) MUST be contiguous.

See this thread for more information and ideas:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1111270

Jeffrey F. Goldsmith
Super Advisor

Re: /dev/vg00/lvol3

Thanks to everyone and their helpful suggestions. I was able to backtrack everything to the first problem I had during the restore.

I was able to umount the LV and then deleted everything in the directory. When I mounted the LV and checked the directory everything was still there. Go figure! In doing this I was able to free up some space for lvol3 which is now at 63% full.