- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- online Jfs and lvreduce
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-26-2005 03:46 PM
01-26-2005 03:46 PM
online Jfs and lvreduce
It's my first day and first question in forum. i am a Solaris admin.
I have a Hp Server running on HPUX 11.11 with online JFS installed. This file system size is 10Gb and 2 Gb is used. I want to reduce it to 3 Gb.
How should i do it ? is it must to have a backup ? if yes why ?
Thanks
Abhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 03:49 PM
01-26-2005 03:49 PM
Re: online Jfs and lvreduce
I have always preferred backing up the data, blowing away the LV, recreating it the size you want and then restoring the data.
You should, though, be able to use fsadm and lvreduce, in that order, to reduce the size of the LV.
But ABSOLUTELY make a backup just in case something bad happens to your data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 03:56 PM
01-26-2005 03:56 PM
Re: online Jfs and lvreduce
it's a day to day job for me in SUN servers using veritas commands.
Is there something in HP which increase risk fector ?
Abhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 04:11 PM
01-26-2005 04:11 PM
Re: online Jfs and lvreduce
Could you show us which filesystem do you want to reduce? (dev/vgXX/lvXX)
As Patrik said and as my experience, if you reduce one filesystem, *ALWAYS* backup that file system.
You can backup it to a tape or to any filesystem that enough free (As you said the size of that filesystem is 2GB) with fbackup or tar command.
I am not a Solaris admin but I have studied about Solaris, the command is not difference far a way with HP-UX command.
With OnlineJFS you can try to reduce the FS using fsadm specifying the new size in KB.
# lvreduce -L
Then:
# fsadm -F vxfs -b
Goodluck to you
HoangChiCong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 04:13 PM
01-26-2005 04:13 PM
Re: online Jfs and lvreduce
Hi
while in solaris also, while reducing the file system size, you need a backup.
simlarly in HP also, you need a backup and use the fsadmin to reduce the file system size, later if you found data loss, always you can restore from backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 05:20 PM
01-26-2005 05:20 PM
Re: online Jfs and lvreduce
In solaris i use vxassist command to resize file system and volumes in single command.
I know that command is part of Veritas volume manager.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 09:21 PM
01-26-2005 09:21 PM
Re: online Jfs and lvreduce
Till last month i was working on HP_UX11i..now i am working on sun-solaris 8.
Online JFS (ver 3.3) is a very good product
that can help you in Fast File system recovery,Online resizing,Degragmanting,&online backups.
I would recommend to take backup using tar or
fbackup ,whichever suits you[i would prefer 'fbackup'] & then go for reducing file system.The online JFS includes
a file system snapshot capability,which makes it possible to back up a file system,even if files & directories are being modified.
To minimize the chance of data loss,one must have a backup ready.
two Q's one must ask ourself:
a.How often do the contents of the file change?
b.How critical is the content of the file?
depending on answers you get,you can decide about taking backup.
For ur query, you can do this
1. lvreduce -L
2. lvdisplay -v /dev/vgxx/myfs
3. fsadm -F vxfs -b
pls read "$ man fsadm" before using it.Its a very good utility to recognize ,consolidate file extents,free extents & directories to ensure optimal file system performance.
you can defrag & "fsck" if you wish to check
integrity of the reduced file system.
being online jfs,"fsck" won't take much time
to complete file system check .
e.g
# fsck -F vxfs /dev/vgxx/rmyfs
"file system is clean-log replay is not required"
defrag is optional...
Hope it helps
ABHI K