- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: reducing a filesystem to allocate to another f...
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
06-08-2004 03:43 AM
06-08-2004 03:43 AM
I have a couple questions, we can easily restore from a weekly backup, but is it tricky to recreate the mountpoint with a smaller size? Anything I should look out for?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 03:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 03:52 AM
06-08-2004 03:52 AM
Re: reducing a filesystem to allocate to another file system
unmount
lvreduce
newfs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 04:06 AM
06-08-2004 04:06 AM
Re: reducing a filesystem to allocate to another file system
I would take the approach based on how much /dbawrk filesystem is used. If it is only used a little (say around a gig or so), then I will temporarily create a filesystem of that size, move the data, recreate the /dbark with less size and move the data back. If you don't have free space in some other volume group enough to take the backup of /dbawrk, then I will go with your approach.
I try to depend less on tapes and backup.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 06:05 AM
06-08-2004 06:05 AM
Re: reducing a filesystem to allocate to another file system
Sridhar, The used file system is a tad over 2G. I don't have 2G laying around to create a temp filesystem. Even the /tmp is 1.1G available.
I had thought I could just backup the whole /dbawrk on tape, and then blow away the mountpoint and recreate the mountpoint and restore from that tape. But I had problems restoring from tape before, in that the directories were all wrong after the restore. I presume this is because I did not explictly say where to restore to?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 07:05 AM
06-08-2004 07:05 AM
Re: reducing a filesystem to allocate to another file system
using fbackup, tar or cpio you should not have problems restoring the files. The destination is the same. But since you have had problems before, make 2 backups and test them before removing the files.
I do not know about Online JFS, but I thought OJFS is meant for situations like this. Shouldn't it work, reducing a filesystem and lvol?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 10:27 AM
06-08-2004 10:27 AM
Re: reducing a filesystem to allocate to another file system
2 GB is not big deal to put it on tape. But you still have options doing an 'scp -rp' or 'rcp -rp' or like mounting an NFS filesystem to a remote system where disk space is available etc., I am suprized to see you don't have a filesystem at /var/adm/crash with this being a production server.
In either the case, it is a good idea to prepare atleast two tapes if the data in this filesystem is too important. As I said, backup and restore from tape is my last option.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 10:33 AM
06-08-2004 10:33 AM
Re: reducing a filesystem to allocate to another file system
Since only 2 GB is used out of 13.4 GB, you could try to defragment the file system and try reducing it.
1) Take the backup
2) run fsadm -F vxfs -dD -eE /dbawrk
3) fsadm -F vxfs -b 10000m /dbawrk
4) lvreduce -L 10000m /dev/vg01/lvoldbawrk
See if this helps
Sundar