- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to restore the file system?
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
07-10-2006 04:42 PM
07-10-2006 04:42 PM
I have a lv named /dev/vg00/sybase, size=3.5GB, mount point is /sybase.I want to remove it ,re-create it and restore all of the data or files to the file system /sybase. how to do it ?
Thanks !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 04:52 PM
07-10-2006 04:52 PM
Re: how to restore the file system?
If you have space somewhere on system itself,
then
cd /sybase
find . | cpio -pxlmd /path_where_you_have_enuogh_space.
lvremove /dev/vgxx/lvolx ->sybase lvol
recreate it - lvcreate
mount it.
copy back old data.
cd /path_where_you_have_copied_data
find . | cpio -pxlmd /sybase
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 05:07 PM
07-10-2006 05:07 PM
Re: how to restore the file system?
But I don't familiar with cpio command, could you give another way .
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 05:14 PM
07-10-2006 05:14 PM
Re: how to restore the file system?
If you are familiar with "tar", you can use it as well.
# tar -cvf to create and # tar -xvf to extract.
_Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 05:32 PM
07-10-2006 05:32 PM
Re: how to restore the file system?
if you have tape drive then you can do a fbackup also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 05:38 PM
07-10-2006 05:38 PM
Re: how to restore the file system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 05:43 PM
07-10-2006 05:43 PM
Re: how to restore the file system?
Do a "man fbackup and frecover". You will get to know how to do it. Also, check this docs,
http://docs.hp.com/en/B2355-90950/ch06s05.html
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=877253
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 07:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 09:18 PM
07-10-2006 09:18 PM
Re: how to restore the file system?
Make an empty directory with at least
as much space as is on /sybase
and then transfer with tar immdiately
through a pipe , an carbon copy
Assume you have directory /backup then
the command is:
go to /sybase
cd /sybase
tar cd - . | (cd /backup; tar xvf - )
This will also inlucde 0 byte files, links
everything, thus an exact copy and you
can check the block sizes afterwards to
compare. No need to use intermediate tar files
Just the dogs bollocks !!