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
01-23-2005 05:51 PM
01-23-2005 05:51 PM
1.My /usr is full. how to expand the file system?
steps pls.
2.if any docs available for secuirty checklist for an production env.?
thanks in advance
tar
siva
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2005 06:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2005 06:11 PM
01-23-2005 06:11 PM
Re: lvm
it is better first you findout why /usr is full.
give the following command to findout files in /usr which is more than 1MB
find /usr -size +1000000c -exec ll {} \;
for files more than 10MB use 7 zeros after 1.
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2005 06:32 PM
01-23-2005 06:32 PM
Re: lvm
check whether you have space in the VG in which /usr is (usually under vg00), if the space exist.
check if you Online JFS installed
#swlist |grep -i jfs
If online JFS exist, use fsadmin to increase the space,
if you don't have OnLine JFS
boot the machine to single user mode (pressing any key within 10sec while rebooting)
get into ISL mode
ISL> hpux -iS
will take you to single user mode
#mountall
#umount /usr
#lvextend -L
#extendfs -F vxfs /dev/vg00/rlvol7
#mount /dev/vg00/lvol7 /usr
#init 3
now /usr will be increased to new size that you specified
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2005 06:35 PM
01-23-2005 06:35 PM
Re: lvm
Attached the tested and working script also.
###############################################################
# find recenty created large files
rm -f find.out
echo
echo "Enter directory to search"
read DIRNAME
if [ ! -d $DIRNAME ]
then
echo "Error: directory $DIRNAME does not exist"
exit 1
fi
echo
echo "How large a file do you want to look for ? (in Kbytes)"
read SIZE
echo
echo "How many days since the file was created ?"
read DAYS
echo
echo "Searching..."
find $DIRNAME -type f -size +$SIZE -mtime -$DAYS -exec ls -ls {} \; | sort -n -r | tee find.out
echo
echo "Done"
echo
echo "Note: output in find.out"
echo
##############################################################
Hope this helps.
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2005 07:16 PM
01-23-2005 07:16 PM
Re: lvm
I think the most safe way is boot to single mode.There will be lot of processes which has started from /usr. You need to boot into single user mode or lvm maintenance mode.
and then
umount /usr (it will not be mounted though)
lvextend -L newsize /dev/vg00/lvol5
extendfs -F vxfs /dev/vg00/rlvol5
mount /usr
Goodluck to you
HoangChiCong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2005 07:28 PM
01-23-2005 07:28 PM
Re: lvm
But depend on the application is running on your system and how many proccess is running on /usr filesystem, you have to kill all of them (that means there is no proccess access to /usr filesystem). Not sure that will you successful because some time, it success but sometime if failure.
As all of the member and exper in our forum, recommend : DO IT IN SINGLE USER MODE....
Best and regard,
HoangChiCong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2005 01:49 AM
01-24-2005 01:49 AM
Re: lvm
There's a few things:
- Read the HP-UX Bastion Host howto, of course You can't apply all of it on a real production system, but everything that can be used will be helpful.
- Download and (carefully) run HP-UX Bastille to check permissions and such.
It generates a report You should work through with another person to cross-check it. afterwards apply the changes You think to be reasonable.
- there's also a script for crontab that does a security patch assessment, run that every week or so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2005 04:16 PM
01-24-2005 04:16 PM
Re: lvm
Booting to Single User Mode & lvextend will work only if you have some free space in your root volume group or spare disk to be added to Root volume Group.
What if it is not there ?
Space assigned in some other File System of Root Volume Group is more & it can be reduced to compensate the increase in /usr file system.
For achiving this you need to take ignite backup of server and restore it.
This can be accomlished by : -
#make_tape_recovery -Ava /dev/rmt/xmn
Where /dev/rmt/xmn is your tape/DLT drive device file.
It will take backup of all files of vg00 Volume group & configuration.
While restoring you can resize all of your file systems including root. The best way is to restore on some spare disk if available & keep original disk intact before system comes back normal.
HTH,
Devender