LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 11-04-2012, 01:13 PM   #1
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Rep: Reputation: 17
Solaris 8 ufsdump


Hi

I would like to backup 4 UFS filesystems and don't have access to a tape drive.

So I want to use ufsdump to 'dump' the file-system to a file and then to transfer the 4 dumps offsite.

Is this possible, and if so how would you resore that dump onto a filesystem using ufsrestore.

Thanks
 
Old 11-04-2012, 01:14 PM   #2
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Original Poster
Rep: Reputation: 17
Would this command work to dump ?

Code:
ufsdump 0f - /var > /unusedfilesystem/var.ufsdump

Last edited by dazdaz; 11-04-2012 at 01:21 PM.
 
Old 11-04-2012, 06:36 PM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
What is your goal (beyond backup on a machine/ restore on another) ?
 
Old 11-05-2012, 01:39 AM   #4
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Original Poster
Rep: Reputation: 17
cma :-)
 
Old 11-05-2012, 04:07 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Then you should make sure the whole process is valid.
 
Old 11-05-2012, 09:43 AM   #6
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Original Poster
Rep: Reputation: 17
I can only write ufsdump files of upto 2GB, so I need to specify the block size and tape density.

How can I do this.

Also, will ufsdump continue and write to the 2nd dump from the offset 2gb, 4gb etc like multi-volume tar support, but with ufsdump ?

Last edited by dazdaz; 11-05-2012 at 09:49 AM.
 
Old 11-05-2012, 11:29 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
You can just pipe ufsdump output to a shell script that splits its input to 2GB chunks.
 
Old 11-05-2012, 12:57 PM   #8
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by jlliagre View Post
You can just pipe ufsdump output to a shell script that splits its input to 2GB chunks.
Can you give me an example that works on Solaris 8.
 
Old 11-05-2012, 03:54 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
There is actually no need for a shell script. You can just pipe ufsdump to this command:
Code:
split -b 2000m -

Last edited by jlliagre; 11-05-2012 at 03:55 PM.
 
Old 11-05-2012, 04:58 PM   #10
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 845
Blog Entries: 2

Rep: Reputation: 212Reputation: 212Reputation: 212
If you are finding a limit at 2GB probably you've omitted to allow large files in the filesystem mount options. http://www.sunsolarisadmin.com/gener...n-sun-solaris/
 
Old 11-05-2012, 05:32 PM   #11
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Original Poster
Rep: Reputation: 17
I am mounting a FAT32 USB key, and writing the dump to this media.

The largefiles option is for the UFS filesystem, which is not activated, but I dont think that will affect the dump size (ufsdump) to being 2GB in size.

http://docs.oracle.com/cd/E19455-01/...pcfs-1m-indx-2

Last edited by dazdaz; 11-05-2012 at 05:36 PM.
 
Old 11-05-2012, 05:47 PM   #12
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 845
Blog Entries: 2

Rep: Reputation: 212Reputation: 212Reputation: 212
I assumed you were putting the outputs on UFS - you could format your USB to UFS and mount it with largefiles.

As it is I expect you're hitting the limit of FAT32.
 
Old 11-06-2012, 12:31 PM   #13
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Original Poster
Rep: Reputation: 17
FAT32 allows a filesize of upto 2GB, I always had thought it was larger.

https://en.wikipedia.org/wiki/File_A...le#Size_limits

In the end I piped to compress and this was my workaround as the output file was <2GB.
 
Old 11-07-2012, 01:00 AM   #14
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
In case the compressed backup is too large, you can still combine compression with my split suggestion.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ZFS and ufsdump custangro Solaris / OpenSolaris 1 11-16-2007 04:31 PM
ufsdump and ufsrestore on solaris 10 agfa_109 Solaris / OpenSolaris 9 11-13-2007 12:29 PM
ufsdump explained tekmann33 Linux - Newbie 1 10-30-2007 11:06 AM
ufsdump manoj.linux Solaris / OpenSolaris 2 09-15-2007 11:34 AM
ufsdump linuxtesting2 Solaris / OpenSolaris 7 06-16-2006 11:23 AM


All times are GMT -5. The time now is 07:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration