Operating System - HP-UX
1827802 Members
2362 Online
109969 Solutions
New Discussion

which file system will be mounted in single user mode

 
SOLVED
Go to solution
subrata biswal
Frequent Advisor

which file system will be mounted in single user mode

which file system will be mounted in single user mode.
In LVM maintenance mode which file system will be mount,and how i read this
How i will extend root file system.
21 REPLIES 21
Torsten.
Acclaimed Contributor
Solution

Re: which file system will be mounted in single user mode

You CANNOT extend the root fs, not even in maintenance or single user mode (because it must be continuous) - consider to backup/restore with ignite!

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!   
vishnu.khandare
Respected Contributor

Re: which file system will be mounted in single user mode

Hi Subrata,

U cannot extend the file system in single user mode,
Two option are there,
1) Regular backup and restore after extending mount point.
2) If u have Online JFS u can extend the mount point online, run time.

Hope U know steps of both.

Don't forget to assign points


Regards
Vishnu Khandare
You should deserve before U desire!!!!
subrata biswal
Frequent Advisor

Re: which file system will be mounted in single user mode

I am not asking in single user mode for root file system extension.
i am asking in multiusermode how i should extend my root volume.

what command i can use in lvm maintenance mode which file should be mounted.
Pete Randall
Outstanding Contributor

Re: which file system will be mounted in single user mode

Read Torsten's answer again - you can NOT extend the root file system no matter what mode you are in.


Pete

Pete
Doug O'Leary
Honored Contributor

Re: which file system will be mounted in single user mode

Hey;

Maintenance mode is appropriately named: it's designed to get you to a command prompt where you can repair your OS volume group. To directly answer your question, / and /stand should be the only filesystesm mounted.

As Torsten mentioned, you cannot extend the root filesystem as it has to be contiguous - unless you're so incredibly lucky as to have the requiesite number of free extents available contiguous with the existing extents.

If you're that lucky, you need to be playing the lottery not mucking about w/LVM.

The first question to answer when looking to extend the root filesystem is why do you need to? / should be a fairly static filesystem once the OS is installed. If files are being written there or are growing in there, you should find out what they are and either move them to their correct filesystems or generate a new one and mount it where those files are being written.

You can find the files that have been written in the last seven days by:

find / -xdev -type f -mtime -7 -print

If you decide to increase / anyway, the correct method is to create make_net_recovery image of the box and rebuild it from that image. One of the first steps in that process is to identify filesystem sizes.

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Torsten.
Acclaimed Contributor

Re: which file system will be mounted in single user mode

Maybe its better to repeat the answer ...





You

CANNOT

extend the root fs, not even in maintenance or single user mode (because it must be continuous) - consider to backup/restore with ignite!





.

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!   
subrata biswal
Frequent Advisor

Re: which file system will be mounted in single user mode

Still you are not getting my question
In INIT 3 can it possible to extend root file system .

Second question

In lvm maintenance mode which file system will be mounted.hpux-lm command only used.any other command how i can maintenance in lvm mode.
Torsten.
Acclaimed Contributor

Re: which file system will be mounted in single user mode

Maybe you don't get the answer ... you cannot extend the root filesystem in any mode.

(if you are very experienced in using LVM and you have LVM mirrored disks and online jfs there is a (complicated) way to do this, but I don't recommend this at all!)


Use ignite!


In maintenance and single user mode only / and /stand are accessible.

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!   
subrata biswal
Frequent Advisor

Re: which file system will be mounted in single user mode

can i get any book related about lvm. for me that is very urgent,because for my office work it is required.

and another question
what is the difference between 11.0,11.11,11.31
Any book can i get?
Pete Randall
Outstanding Contributor

Re: which file system will be mounted in single user mode

>Still you are not getting my question
>In INIT 3 can it possible to extend root file system .

Still you are not getting the answer -
NO YOU CANNOT EXTEND THE ROOT FILE SYSTEM, REGARDLES OF THE MODE OR INIT LEVEL ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NO
NO
NO
NO


PETE

Pete
Torsten.
Acclaimed Contributor

Re: which file system will be mounted in single user mode

11.0,11.11,11.23,11.31 are different versions of HP-UX; anything below 11.11 is not supported anymore.
There are a lot of differences and a lot of documentation at HP's BSC website.

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!   
Pete Randall
Outstanding Contributor

Re: which file system will be mounted in single user mode

S. Ney
Trusted Contributor

Re: which file system will be mounted in single user mode

Here are some older threads about the root filesystem being close to full. Some of these may be of use. There are some commands you can run to look for large files, old files etc. You may be able to free some space however as the others have suggested use ignite to resize / if it is too small.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1226431394242+28353475&threadId=1170522

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1288114565419+28353475&threadId=1275669

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1226431914491+28353475&threadId=1196040
Steven E. Protter
Exalted Contributor

Re: which file system will be mounted in single user mode

Shalom,

The only way to extend root fs is to do an ignite backup, boot the system and use the ignite restore interface to restore to a larger root disk.

Bottom line though is there should not be any real files other than configuration in root fs.

You should identify the files taking up space and eliminate or move them.

Only root fs is mounted in single user mode.

mount -a or individual mounts are possible for local disks.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Fraga
Advisor

Re: which file system will be mounted in single user mode

Well, u can't extend this fs, btw.. this can help you.

do Backup with ignite (FULL)
Use the root disk with your backup....
Torsten.
Acclaimed Contributor

Re: which file system will be mounted in single user mode

As said before, its possible - but the important question is:

Why you think you need to extend this LVOL?

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!   
subrata biswal
Frequent Advisor

Re: which file system will be mounted in single user mode

For interview they are asking and for that i ve t try in office.

IN lvm maintaince mode which file system should be mount,how you can you read the file system.
Torsten.
Acclaimed Contributor

Re: which file system will be mounted in single user mode

This question is already answered above.

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!   
Pete Randall
Outstanding Contributor

Re: which file system will be mounted in single user mode

I think, technically, that no file systems would be mounted in LVM maintenance mode. Booting in lvm maint means that you boot from a disk without using the LVM structures on that disk. The system uses a standard offset to locate the root file system, but it (technically) doesn't mount it. You can use LVM commands to fix whatever LVM problems you are experiencing and then attempt to reboot normally.


Pete

Pete
Torsten.
Acclaimed Contributor

Re: which file system will be mounted in single user mode

Correct, the system uses the infomation stored in the disks LIF area to access /stand, swap and root directly without activating vg00, this is also the reason why all of them must be continuous.

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!   
subrata biswal
Frequent Advisor

Re: which file system will be mounted in single user mode

ok i got my answer