How to backup (create image) SunOS 5.10 sparc?


 
Thread Tools Search this Thread
Operating Systems Solaris How to backup (create image) SunOS 5.10 sparc?
# 1  
Old 02-07-2018
Hammer & Screwdriver How to backup (create image) SunOS 5.10 sparc?

Hello guys! I'm a newbee in Solaris systems.
There is an issue, that I've got:

I have to make an iso image of my solaris system.

How can I do it? with dd utility?

Clonezilla does not support spark, so it cant do backup.

pls help!

Is this solution:
Creating a Solaris Flash Archive - Oracle Solaris 10 9/10 Installation Guide: Solaris Flash Archives (Creation and Installation)
the only one method to create image of system?


tnx in advise.

Last edited by jim mcnamara; 02-07-2018 at 07:34 AM..
# 2  
Old 02-07-2018
Is the purpose of this solely for backup? Or is there some other motive?

What type of filesystem(s) do you have? UFS or ZFS? and how many?

Flash archive is surely a portable format which can be used for recovery, even to dis-similar hardware.

Do you have another network node that you could send a backup to?
This User Gave Thanks to hicksd8 For This Post:
# 3  
Old 02-08-2018
Quote:
Originally Posted by hicksd8
Is the purpose of this solely for backup? Or is there some other motive?
I need to "copy/clone" one server to another "same" server, with the same options

Quote:
What type of filesystem(s) do you have? UFS or ZFS? and how many?
Code:
 # cat /etc/vfstab       
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/md/dsk/d20       -       -       swap    -       no      -
/dev/md/dsk/d10 /dev/md/rdsk/d10        /       ufs     1       no      -
/dev/md/dsk/d50       /dev/md/rdsk/d50      /var    ufs     1       no      -
/dev/md/dsk/d60       /dev/md/rdsk/d60      /export/home    ufs     2       yes     -
/dev/md/dsk/d40       /dev/md/rdsk/d40      /opt    ufs     2       yes     -
/dev/md/dsk/d70       /dev/md/rdsk/d70      /u01    ufs     1       yes     -
/dev/md/dsk/d80       /dev/md/rdsk/d80      /u02    ufs     1       yes     -

Quote:
Do you have another network node that you could send a backup to?
Yes, I do. But I would like to clone it to the external hdd


PS. OS: SunOS 5.10 Generic_150400-38 sun4u sparc SUNW,Sun-Fire-V245

Last edited by 2fat2fly; 02-08-2018 at 01:05 AM..
# 4  
Old 02-08-2018
You have mirrored UFS filesystems and you want to clone the system.

How much Solaris experience do you have?

I have recently given extensive advice/assistance to another member wanting to clone a Solaris 9 system and this will equally apply to Solaris 10.

So read these threads first and post any questions you have. How easy this will be for you will depend on your prior knowledge.

In this order:

Ufsrestore

Ufsrestore on SunBlade 2500

Partition Sizes

Park yourself beside a coffee machine and keep reading. Search this forum for your further questions and post back here if you can't find the answers.
These 2 Users Gave Thanks to hicksd8 For This Post:
# 5  
Old 02-09-2018
Quote:
Originally Posted by hicksd8
You have mirrored UFS filesystems and you want to clone the system.

How much Solaris experience do you have?

I have recently given extensive advice/assistance to another member wanting to clone a Solaris 9 system and this will equally apply to Solaris 10.

So read these threads first and post any questions you have. How easy this will be for you will depend on your prior knowledge.


Park yourself beside a coffee machine and keep reading. Search this forum for your further questions and post back here if you can't find the answers.
Dear hicksd8. Thank u very much for ur efforts to help me! Actually I am a newbee in SunOS.

Even more, I have simple problems with mounting an external hdd to SunOs.

I've connected removeble NTFS 500gb hdd:
Code:
 # rmformat -l
Looking for devices...
     1. Volmgt Node: /vol/dev/aliases/rmdisk0
        Logical Node: /dev/rdsk/c1t0d0s2
        Physical Node: /pci@1e,600000/pci@0/pci@1/pci@0/usb@1c,3/storage@1/disk@0,0
        Connected Device: WDC WD50 00AZLX-08K2TA0   0107
        Device Type: Removable

trying to mount it:
Code:
mount -F ntfs /dev/dsk/c1t0d0s2 /mnt/usb
mount: Operation not applicable to FSType ntfs

ok, that makes sense...
Trying to format it to UFS:

Code:
 # newfs /dev/rdsk/c1t0d0s2
/dev/rdsk/c1t0d0s2: Device busy

hm...ok... trying to clear the old MS cruft:

Code:
 # dd if=/dev/zero of=/dev/rdsk/c1t0d0 bs=2048 count=10
10+0 records in
10+0 records out

 # rmformat -F long /dev/rdsk/c1t0d0s2
Formatting will erase all the data on disk.
Do you want to continue? (y/n)y

ok, nice...lets try again:
Code:
 # mkfs -F pcfs /dev/rdsk/c1t0d0s2:c
/dev/rdsk/c1t0d0s2: Device busy

 # newfs /dev/rdsk/c1t0d0s2
/dev/rdsk/c1t0d0s2: Device busy

Code:
# fdisk /dev/rdsk/c1t0d0
fdisk: /dev/rdsk/c1t0d0 must be a raw device.

 # fdisk /dev/rdsk/c1t0d0s2
fdisk: Cannot open device /dev/rdsk/c1t0d0s2.

 # fdisk -B /dev/rdsk/c1t0d0s2
fdisk: Cannot open device /dev/rdsk/c1t0d0s2.

# fdisk -W - /dev/rdsk/c1t0d0s2
fdisk: Cannot open device /dev/rdsk/c1t0d0s2

fdisk command does not work as well. says, that I need a raw device


ok, wanna to create slices:

Code:
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0
       1. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@1,0
       2. c0t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@2,0
       3. c0t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@3,0
Specify disk (enter its number):

it doesnot show my external hdd


plz, help...
I feel so helplessSmilie

Last edited by 2fat2fly; 02-09-2018 at 04:04 AM..
# 6  
Old 02-09-2018
Firstly, I appreciate why you are trying to connect an external HDD but do you realize just how slow it might be? If your (Sun) hardware is USB1 then it will be hopeless!! If it's USB2 it will be better but not fast and I doubt you have USB3 which would be ideal.

Having said that......

Secondly, from what you've posted I reckon that the volume manager is getting in your way and interfering with USB operations. So let's shoot that down because I doubt it's needed for anything else. On Solaris 10 as root that is:

Code:
# svcadm disable volfs

You've obviously done some highly relevant research and you have the right idea. Try again with rmformat (to find the device node once you've plugged the USB drive in), fdisk to delete existing/create new partition, and newfs to write down a new filesystem.

Try again to do all that once you've stopped volume manager messing up your life.

EDIT: You may not see the external HDD listed by format. Don't worry about that.
This User Gave Thanks to hicksd8 For This Post:
# 7  
Old 02-09-2018
Quote:
Originally Posted by hicksd8
Code:
# svcadm disable volfs

it works! tnx u man, u r the best!

Code:
 # svcadm disable volfs

 # rmformat 
Looking for devices...
     1. Logical Node: /dev/rdsk/c1t0d0s2
        Physical Node: /pci@1e,600000/pci@0/pci@1/pci@0/usb@1c,3/storage@1/disk@0,0
        Connected Device: WDC WD50 00AZLX-08K2TA0   0107
        Device Type: Removable

 # fdisk /dev/rdsk/c1t0d0
fdisk: Cannot stat device /dev/rdsk/c1t0d0.

# fdisk /dev/rdsk/c1t0d0s2
No fdisk table exists. The default partition for the disk is:

  a 100% "SOLARIS System" partition

Type "y" to accept the default partition,  otherwise type "n" to edit the
 partition table.
y


# newfs /dev/rdsk/c1t0d0s2
newfs: construct a new file system /dev/rdsk/c1t0d0s2: (y/n)? y
Warning: 5056 sector(s) in last cylinder unallocated
/dev/rdsk/c1t0d0s2:     976768064 sectors in 158980 cylinders of 48 tracks, 128 sectors
        476937.5MB in 9937 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
...............................................................................
...............................................................................
........................................
super-block backups for last 10 cylinder groups at:
 975864736, 975963168, 976061600, 976160032, 976258464, 976356896, 976455328,
 976553760, 976652192, 976750624

Code:
# dd if=/dev/dsk/c0t0d0s2 of=/mnt/usb/image.iso

143349312+0 records in
143349312+0 records out

Code:
# df -h
Filesystem                     size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s2      459G    69G   385G    16%    /mnt/usb


Last edited by 2fat2fly; 02-09-2018 at 07:06 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Grep command Fails on SunOS Sparc

Hi, This command works ggrep -v -F -x -f app1.txt app2.txt But, I don't have ggrep on SunOS Sparc so I tried using grep instead but it errors out grep: illegal option -- F bash-2.03$ uname -a SunOS mymac 5.8 Generic_Virtual sun4v sparc sun4v Can you help me with a grep command that... (6 Replies)
Discussion started by: mohtashims
6 Replies

2. Solaris

SunOS sun4v sparc ntp service in maintenance mode.

Hi experts, This is a production server. Host information's are below SunOS hostname_srv 5.10 Generic_150400-09 sun4v sparc sun4v Now issue with ntp service, This host have zone in it with 9 hosts, Every hosts have ntp service issue. While i check for the service status it's in... (3 Replies)
Discussion started by: babinlonston
3 Replies

3. Solaris

How to scan for LUNs in SunOS sun4v sparc?

Hi everyone, We have the below sun Operating system, Now our storage team have Create a 500GB LUN for this server, How can i scan and mount the shared LUN ? Could anyone help me to resolve this issue. SunOS my_hostname.com 5.10 Generic_150400-09 sun4v sparc sun4v Update: -------- I... (9 Replies)
Discussion started by: babinlonston
9 Replies

4. Shell Programming and Scripting

matching image files to create one image

Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the... (6 Replies)
Discussion started by: kylle345
6 Replies

5. Solaris

Solaris 10 Sparc - backup drive how to read it?

Disk is: c0t1d0 partition> print Current partition table (original): Total disk cylinders available: 38307 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 unassigned wm 0 - 38306 74.53GB (38307/0/0) 156292560 1 unassigned... (3 Replies)
Discussion started by: xnox
3 Replies

6. UNIX for Advanced & Expert Users

DES3 encryption in SunOS sparc

Hi, I want to encrypt a unix file using the des3 algorithm. Seems that there are no standard unix utilities readily available. Can you please suggest how I can encrypt a unix file using des3 ? (2 Replies)
Discussion started by: samuel.vincent
2 Replies

7. UNIX for Advanced & Expert Users

Create an Ignite image on tape from Online IgniteUX image

Hi, (HP-UX 11.11) I need to create a tape image of an igniteUX image created on our igniteUX server. That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Discussion started by: Andrek
3 Replies
Login or Register to Ask a Question