- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: extending /usr
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 08:26 PM
03-29-2005 08:26 PM
extending /usr
i am running 11.00
i have hp online jfs :
B3928AA_APZ B.10.20 HP OnLineJFS (Advanced VxFS)
sam won't let me extend /usr says i must unmount it first. i tried fsadm but /usr is hfs and fsadm does not accept -b option with hfs filesystem.
i guess i need to update online jfs and/or boot to single user to add space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 08:31 PM
03-29-2005 08:31 PM
Re: extending /usr
Yes if your /usr filesystem is HFS your only option is to boot into single user mode and lvextend/extendfs /usr filesystem.
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 08:33 PM
03-29-2005 08:33 PM
Re: extending /usr
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 09:49 PM
03-29-2005 09:49 PM
Re: extending /usr
Check these posts:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=619838
best regard,
tienna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 12:25 AM
03-30-2005 12:25 AM
Re: extending /usr
# this approach needs enough free PE in vg00
lvreduce /usr to the original size
create a new lvol for /usr
lvcreate -l 1 /dev/vg00
lvextend -m 1 /dev/vg00/new_lv
lvextend -L new_size /dev/vg00/new_lv
newfs -Fvxfs /dev/vg00/rnew_lw
mkdir /mnt/usr
mkdir /mnt/old_usr
# You could go to init 1 now, but /usr is quite static
mount /dev/vg00/new_lv /mnt/usr || exit 1
cd /usr
find . -depth | cpio -pdm /mnt/usr
touch /mnt/usr/this_is_new
cp -p /etc/fstab /etc/fstab.before_usr
#prepare new fstab in vi, change /usr to new lv, and add entry for /mnt/old_usr
# shutdown -r +0
# interrupt boot process and boot to maintaince mode (this is not *neccessary* but healthy, You could also simply fstabs and reboot, but You'll lose time if something goes wrong, also one could boot to init S saving one reboot, but the same applies...)
hpux -lm #(that's "L")
# switch the fstab files
vgchange -a y vg00
mount /usr
#check if /usr/this_is_new exists ;)
umount /usr
reboot
#done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 01:26 AM
03-30-2005 01:26 AM
Re: extending /usr
To do this you need to go to single user mode and use the lvextend and then extenfs.Once you have done this you can boot in multiuser
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 05:23 PM
03-30-2005 05:23 PM
Re: extending /usr
having onlineJFS you should be able tu extend without unmounting. I do not rely on SAM, because I want to know, what is done. Are you sure, you use a vxfs and not hfs filesysten. I dom't know whether onlineJFS works with hfs. Be sure, there is enough space left in the vg and the lvol does not exceed any limit for size oe ohysical extends (PE).
Here are my notes for extending a lvol for HP-UX 10 and 11 and for installations, that are unpatched for at least 4 years:
lvol=???
vg=???
#get all PV name's like /dev/dsk/c0t0d0 #check if mirrord or striped:
lvdisplay -v /dev/${vg}/${lvol} | head -n 30
#if vgextend is necessary and it is a #clustersystem, it is a bit more complicated
#than below described
#get Free PE and PE Size (Mbytes):
pvdisplay /dev/dsk/c0t0d0
lvextend -l
fstyp /dev/${vg}/r${lvol}
#or
grep ${lvol} /etc/fstab
#If it is a clustersystem:
cmhaltpkg
vgchange -a e ${vg}
#with online_JFS Check for Patches #PHKL_18913.vxfs_s700 or #PHKL_18914.vxfs_s800 from AD 2001
#(HP-UX 10.x)
fsadm -F vxfs -b $NEWKB $MOUNTPOINT
#From here, it should be not relevant for you
#without online_JFS:
umount /${lvol}
#if umount fails, try the following:
#deactivate the cluster in
#/etc/rc.config.c/cmcluster, on all
#clustermembers if necessarry
cmhaltpkg dbpkg
reboot -q
vgchange -S n -c n ${vg}
vgchange -a y ${vg}
fsck -F vxfs -o full /dev/${vg}/r${lvol}
extendfs -F vxfs /dev/${vg}/r${lvol}
cmruncl
vgchange -S y -c y ${vg}
extendfs -F
/dev ${vg}/r${lvol}
#If it is a clustersystem:
vgchange -a n ${vg}
#If it is a clustersystem:
cmrunkg -n
mount /${lvol}
Regards
Ralf
#Don't forget to extend the offline
#backupdisk's lvol too if there are some
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 05:29 PM
03-30-2005 05:29 PM
Re: extending /usr
You need to boot to single-user mode to extend /usr.
Regards,
Isralyn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 02:40 AM
03-31-2005 02:40 AM
Re: extending /usr
but you do need to reboot.
Create another logical Volume the size you want and mount it as /usr1
cd /usr;find . -print |cpio -pdmu /usr1;
vi /etc/fstab
change /usr -> /usr1 and /usr1->/usr
reboot;
You can then remove /usr1
Rory
This is faster requires less down time.
/