1834609 Members
3327 Online
110069 Solutions
New Discussion

Extend lvol

 
midoone103
Advisor

Extend lvol

hello all...
i wanna that someone tell if this, is the good manner to extend lvol


at first we should connect server at single user with.
# shutdown -y o
# lvdisplay -v vg00 (for exemple)
# /sbin/lvextend -L 800 /dev/vg00/lvol01
# /sbin/unmount /usr
the lvol here exist at "/usr" f.ex
# /sbin/extenddfs /dev.......
for fix dfs
# /sbin/mount /usr

at the end
# reboot -r

i'd be glad if someone answer me or help i get mistake.
12 REPLIES 12
Pete Randall
Outstanding Contributor

Re: Extend lvol

Apparently you're assuming this is a cluster environment, hence the "o" option to shutdown? For the rest, the actual extension of the lvol, I would suggest you look at the man page for lvextend, paying particular attention to the EXAMPLES section.


Pete

Pete

Re: Extend lvol

>> # shutdown -y o

I presume you meant "shutdown -y 0" and are hoping this will take you to single user mode yes?

I think you will find that this will not leave you in a position to umount /usr as there will still be processes active on the filesystem.

The "safe" way to get to single user mode is to "shutdown -r -y 0" from the console, wait for the system to reboot and then interrupt the boot sequence and boot to single user mode. How you do that depends on whether this is a HP9000 (rpXXXX) or HP Integrity server (rxXXXX)server... you didn't tell us that.

HTH

Duncan

I am an HPE Employee
Accept or Kudo

Re: Extend lvol

Pete - more likely a typo for "0" rather than the "-o" option on shutdown - I can't believe anyone still runs diskless clusters!

Duncan

I am an HPE Employee
Accept or Kudo
TTr
Honored Contributor

Re: Extend lvol

Maybe that "o" was meant to be a "0" (zero).
Bill Costigan
Honored Contributor

Re: Extend lvol

If you have onlineJFS you can extend /usr without shuting down the system. You can either use SAM and extend the lvol and SAM will automatically extend the filesystem also or you could use the lvextend and fsadm commands yourself.

I assume the shutdown command is so you can reboot into single user mode 'hpux -is'. This is necessary if you do NOT have OnlineJFS. In that case you'll whant to do a shutdown -ry 0 and interupt the boot process so you can go into single user mode.

Once the system is up, there is no need to unmount /usr because it's not going to be mounted anyway.
Roopesh Francis_1
Trusted Contributor

Re: Extend lvol

first ..please tell us what file system you need to extend and what is your hp ux version.
is online jfs installed on the system?

thanks
Pete Randall
Outstanding Contributor

Re: Extend lvol

Duncan,

I can hardly wait for the next question about why his /dev filled up!

;^)


Pete

Pete
midoone103
Advisor

Re: Extend lvol

sorry, yeah i mean " 0 " in shutdown not " o ".
midoone103
Advisor

Re: Extend lvol

sir francis

i am under hp-ux vers 1
for exepmle i wanna extend /var, u know the log file take more space,

jfs is installed.
Pete Randall
Outstanding Contributor

Re: Extend lvol

Current/recent HP-UX version information is presented here:

http://www.hp.com/softwarereleases/releases-media2/history/slide2.html

I'm now going to guess that you mean to say you're running 11iV1 (11.11)?

I understand you're somewhat new to HP-UX and these Forums. I would suggest that the first thing you need to do is be more precise. The computer is going to do EXACTLY what you tell it and the Forums folk will attempt to answer EXACTLY what they think you asked.


Pete

Pete
midoone103
Advisor

Re: Extend lvol

thnks pete randall for info.
sure that i should be more precise for the next time.
cause i talk with the experts man, mee to i mean that vers1 is hp-ux b11.11 or as u say 11i v1, yeah i've rp3440.

again thnks for help pete
Pete Randall
Outstanding Contributor

Re: Extend lvol

OK, now run this command to see if you have online JFS;

swlist |grep -i online
B3929CA B.11.11 HP OnLineJFS
OnlineJFS B.11.11.03.03 Online features of the Vx
FS File System

If you do not see output similar to the above, you do not have online JFS and will need to follow Duncan's instructions to get to single user mode in order to get the file system unmounted so that you can extend the file system with extendfs (as in the EXAMPLES section of the lvextend man page).


Pete


Pete