backup to NFS mount Redhat-Solaris


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers backup to NFS mount Redhat-Solaris
# 1  
Old 05-14-2008
backup to NFS mount Redhat-Solaris

Hi guys,

I have a redhat laptop and a sun solaris 8 server networked together

I created an nfs share on the sun server and backed up an image of the Redhat laptop to it.
The Hard disk size of the laptop is 40Gb but I have about 38Gb free space on the sun server. So I compressed the image while backing up.

# dd if=/dev/hda | gzip > /NFS_MOUNT/backup.gz

This created the file OK.

Now I'm testing a restore.

So I have donwloaded System Rescue CD and booted the laptop with that.
I've set up the ip address and default gateway and can ping the Sun server.

I've then mounted the NFS partition, and can see the backup file.

However when I try to restore with the command:

# gzip -dc /NFS_MOUNT/backup.gz | dd of=/dev/hda

I get an error: No space left on device.

Am I missing a step? I thought dd would just overwrite the disk.
Does this mean there is not enough space on the sun server or not enough space on the redhat laptop?

When booted with the system rescue cd the output of sfdisk -l has /dev/sdaX where I was expecting /dev/hdX

Can anyone help?

Many thanks and kind regards,

Stin.
# 2  
Old 05-14-2008
Sounds like you should be restoring to /dev/sda then. I'm not sure if it's okay to use the whole raw disk as opposed to an individual partition (sda1/hda1), though.
# 3  
Old 05-14-2008
Thanks for the suggestion. I have tried that with the same response.

If I used dd to backup /dev/hda then I thought I'd be able to restore the same.

I might try restoring /dev/hda1 2 etc and then sda 1 2 etc,

What do you think?

EDIT: I get the same thing each time."No space left on device".
The command appears to work suggesting the syntax is ok.
Am i missing a step preparing the disk?
# 4  
Old 05-14-2008
Sure your rescue cd knows about -dc parameters to gzip? Is this maybe some busybox-like gzip?

BTW: If you boot that system backed up that way you'll likely face some complaints by the OS about existing looks it does not like - do not expect that image to work out of the box.
# 5  
Old 05-14-2008
Quote:
Originally Posted by fabtagon
Sure your rescue cd knows about -dc parameters to gzip? Is this maybe some busybox-like gzip?

BTW: If you boot that system backed up that way you'll likely face some complaints by the OS about existing looks it does not like - do not expect that image to work out of the box.

Hi there,

THanks for the swift reply.

I've changed:

# gzip -dc /NFS_MOUNT/backup.gz | dd of=/dev/hda

for

# gunzip /NFS_MOUNT/backup.gz | dd of=/dev/hda



And it seems to be working. I'll let you guys know.
# 6  
Old 05-14-2008
THat didn't work either.
It just took longer to fail.

What does the gzip -dc do?
# 7  
Old 05-14-2008
It decompresses (-d) from/to standard input (-c).
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

NFS write error on host xyz: Stale NFS file handle - Solaris 10

Oct 13 12:19:15 xyz nfs: NFS write error on host xyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: (file handle: 68000000 1bc5492e 20000000 377c5e 1ce9395c 720a6203 40000000 bdfb0400) Oct 13 12:19:15 xyz nfs: NFS write error on host zyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: ... (5 Replies)
Discussion started by: psychocandy
5 Replies

2. Solaris

Solaris 10 NFS client cannot mount a share from a Windows server

I have a Solaris 10 server, I'm trying to mount a share from a Windows nfs server. If I add this entry (tst-walnut:/test_sap_nfs - /majid nfs - yes rw,soft) to my /etc/vfstab, then I can mount, but when I create a file by root:root, the file owner changes to... (1 Reply)
Discussion started by: Hiroshi
1 Replies

3. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

4. Solaris

NFS mount from SCO to Solaris

Hi, I'm using Solaris 10 and OS/2 warp. There is a share on OS/2 warp which I'm trying to mount on Solaris. I get the following error message $mount -F nfs -o rw 10.5.170.16:D:\audio /AudioSCRAFT nfs mount: 10.5.170.16:D:audio: no applicable versions of NFS supportedAny idea how I mount the... (5 Replies)
Discussion started by: maverick_here
5 Replies

5. Solaris

NFS mount on Solaris 8

Hello Admins; I am working around on an issue of NFS mount on Solaris 8 server. I am trying to mount a remote directory (which is on vlan 146 -solaris 10 server ) on solaris 8 client which is on vlan 10. The firewall rules have been opened, ports are opened. But when I do code: mount -F... (7 Replies)
Discussion started by: snchaudhari2
7 Replies

6. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

7. Solaris

how to mount Windows NFS share on solaris

Hi, How can i mount an NFS share on a solaris machine a filesystem ? I have enabled nfs on a windows server and the shares has given read/write access to it to all the users. I would like to mount it on around 10 different solaris boxes with different versions of solaris. Thanks in advance. (2 Replies)
Discussion started by: uxadmin007
2 Replies

8. Solaris

how to mount NFS drive from Window XP to Solaris 10?

Is there a free tool that will allow me to mount an NFS network drive from a Window XP computer onto a Solaris 10 x86 system? So when this is done, I would have a mapped network drive on my Windows XP system, say network drive N, that is mounted onto the directory /export/home/data on my Solaris... (2 Replies)
Discussion started by: serendipity1276
2 Replies

9. UNIX for Dummies Questions & Answers

mount -o llock -F nfs vs mount -F nfs

Hi, We encountered NFS issue (solaris) especially running on Oracle application. Problem such as forms hang when close button is click, concurrent job shows running status all time. Understand we need to use mount -o llock -F nfs instead of mount -F nfs to eliminate? this problem.. Can... (1 Reply)
Discussion started by: KhawHL
1 Replies

10. Red Hat

How to nfs mount with Redhat Linux

*** I also posted this in the Unix general forum, but would like to get the Linux point of view. *** Hello all - I've searched this forum, but was unable to find out the info I need. I'm trying to mount (nfs mount) a directory on another box from my Linux machine. The mount point... (1 Reply)
Discussion started by: Heron
1 Replies
Login or Register to Ask a Question