LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-05-2014, 06:58 AM   #1
saroj1439
LQ Newbie
 
Registered: Nov 2011
Posts: 17

Rep: Reputation: Disabled
how to take the image of running solaris box


Hi Team,

I would like to take the image of my Solaris box before going to patch the box, Please help me with the process how to proceed.

Regards
Saroj M.
 
Old 09-05-2014, 12:38 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
There are several ways to do that.
You must have a ready volume, or partition, or separate space to store the image into.

First use rsync. root--# rsync -rplog / /mnt/drive/myimage

Second, use dd. --root# dd if=/dev/mysolarixpartition /mnt/some_other_partition/mysolarisimage.iso

Third, us cp (copy).

Or use " tar " to archive the / files.

Make a little research on the webs about "rsync" there are plenty of options you can choose with to fit your desire. rsync is very versatile. Read also some intructions about " dd ". Both shall copy a running system. Don't worry if cache and live files are ignored.

Enjoy.

Last edited by malekmustaq; 09-05-2014 at 12:41 PM.
 
Old 09-05-2014, 02:31 PM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by saroj1439 View Post
I would like to take the image of my Solaris box before going to patch the box, Please help me with the process how to proceed.
There are more convenient ways than taking a full image, especially when the root filesystem is on ZFS which is always the case with Solaris 11.

With Solaris 10, you can use Live Upgrade and with Solaris 11, Boot Environments. See http://docs.oracle.com/cd/E23824_01/...betools-6.html
 
Old 09-05-2014, 02:40 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by malekmustaq View Post
rsync is very versatile. Read also some intructions about " dd ". Both shall copy a running system.
Ouch !

Using "dd" with a running system is doomed. You use snapshots (either ZFS or UFS) to save live Solaris file systems.
 
Old 09-10-2014, 10:09 PM   #5
saroj1439
LQ Newbie
 
Registered: Nov 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Smile I would like to take the image of my Solaris box before going to patch the box

Hi Mustaq

Thank you for your input to my query, will check with those.

Regards
Saroj M.




Quote:
Originally Posted by malekmustaq View Post
There are several ways to do that.
You must have a ready volume, or partition, or separate space to store the image into.

First use rsync. root--# rsync -rplog / /mnt/drive/myimage

Second, use dd. --root# dd if=/dev/mysolarixpartition /mnt/some_other_partition/mysolarisimage.iso

Third, us cp (copy).

Or use " tar " to archive the / files.

Make a little research on the webs about "rsync" there are plenty of options you can choose with to fit your desire. rsync is very versatile. Read also some intructions about " dd ". Both shall copy a running system. Don't worry if cache and live files are ignored.

Enjoy.
 
Old 09-11-2014, 12:22 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by saroj1439 View Post
Hi Mustaq

Thank you for your input to my query, will check with those.
Did you understood both of my replies?

None of Mustaq suggestions will take a synchronous image of a the partition.

If your goal is to backup static files, then "rsync" and "tar" should be fine but "dd" will create a partially or totally unusable file system.

If your goal is to take an image of a running Solaris, use the snapshot approach, i.e. something that take an instantaneous copy of a running file system.
 
Old 09-11-2014, 11:28 PM   #7
saroj1439
LQ Newbie
 
Registered: Nov 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thank you Jlliagre
 
  


Reply



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
From Solaris box i need to access linux box files and filesyste. How to achieve this? vengadesh Solaris / OpenSolaris 2 06-12-2009 07:42 AM
Image of Solaris server rust8y Solaris / OpenSolaris 3 01-24-2009 03:37 AM
running make on after compliling apache2 on Solaris X86 box coredump03 Solaris / OpenSolaris 1 03-18-2008 04:31 PM
Updating a Solaris box Reisswolf Solaris / OpenSolaris 2 09-08-2007 01:01 PM
Solaris how to create image zillah Solaris / OpenSolaris 1 10-25-2005 09:12 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration