Getting data from ZFS.


 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Getting data from ZFS.
# 1  
Old 06-15-2012
Getting data from ZFS.

Hi all,

A customer has a very active ZFS partitionon their production system, I need to get a copy of the data under one directory at a specific point in time.

Is it possible to do this with the ZFS snapshot/clone tools, (and what commands should be used to capture the info I require for export from their platform)?

The following is my understanding of what I should do, corrections and clarifications are very welcome.
Code:
zfs snapshot $DEVICE@now
cd $MOUNT_POINT
cd .zfs
tar -cvf $HOME/data.tar path/to/directory/of/interest
zfs destroy $DEVICE@now

How wrong am I, do I need to clone the filesystem to access data, if so how...
# 2  
Old 06-15-2012
Hi,

Probably better to use the zfs send and recieve for this as follows;

Code:
zfs snapshot $DEVICE@now
zfs send $DEVICE@now | zfs receive -Fu new/device

This is probably a better way of doing it, if it's to an other system then you can use the following format;

Code:
zfs send nemop-prd/nemop_oradata@130911 | ssh su10sb000 zfs recv nemop_uat/nemop_oradata

Regards

Dave Munro
This User Gave Thanks to gull04 For This Post:
# 3  
Old 06-15-2012
Sorry to be dumb about this, but I need to take the data out of their live environment in order to validate the data in place.

Does new/device become a clone of the original at the time of the snapshot?

How do I set up new/device, customer has a philosophical objection to key exchange !!
# 4  
Old 06-15-2012
Hi Skrynesaver,

The snapshot is a PIT copy of all the data in the ZFS, the new device can be an other ZFS that you created.

The ZFS snapshot will grow - quickly if there is a lot of write activity, but the send and recieve operation will send an exact copy of the required data to the new location.

If the customer has a big down on the key exchange then use the following;

Code:
zfs send -Rv jumpstart@s030s4711 | ssh root@s030s4712 zfs receive -F jumpstart

Regards

Dave
This User Gave Thanks to gull04 For This Post:
# 5  
Old 06-15-2012
Thanks guys I owe more people a beer Smilie
# 6  
Old 06-15-2012
Hi Skrynesaver,

cd /
more beer

Regards

Dave
# 7  
Old 06-16-2012
Quote:
Originally Posted by gull04
Hi,

Probably better to use the zfs send and recieve for this as follows;

Code:
zfs snapshot $DEVICE@now
zfs send $DEVICE@now | zfs receive -Fu new/device

This is probably a better way of doing it, if it's to an other system then you can use the following format;

Code:
zfs send nemop-prd/nemop_oradata@130911 | ssh su10sb000 zfs recv nemop_uat/nemop_oradata

Regards

Dave Munro
If you get an SSH escape sequence in your data, the send will be corrupted. You need to disable ssh escape characters:

Code:
zfs send nemop-prd/nemop_oradata@130911 | ssh -e none su10sb000 zfs recv nemop_uat/nemop_oradata

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Zfs send & receive with encryption - how to retrieve data?

Good morning everyone, I'm looking for some help to retrieve data in a scenario where I might have made a big mistake. I'm hoping to understand what I did wrong. My system is made of two Solaris 11 Express servers (old free version for evaluation). The first if for data and the second is... (7 Replies)
Discussion started by: rnd
7 Replies

2. Solaris

ZFS CRYPT

Hi! I'm a new user... I'm looking for some informations about the ZDF file sytem... In my ubuntu box i have installed cryptkeeper, and i want to know if in Solaris 11 Express can find something similar... (3 Replies)
Discussion started by: Solarisutente
3 Replies

3. Solaris

ZFS

Hi, I need some advice please. I have this server with a couple of zpools, lets call them pay_serv ukb_pool There are two zones attached to these pools. When I do a zfs list I see this pay_serv 8.41G 265G 8.41G /pay_serv ukb_pool 79.8G 194G 23K /ukb_pool ukb_pool/temp_ps 9.11G... (4 Replies)
Discussion started by: giles.cardew
4 Replies

4. Solaris

ZFS

what are all the advantages of ZFS comparing to UFS SVM what is the use of creating file system in a file system in ZFS (15 Replies)
Discussion started by: dinu
15 Replies

5. Solaris

Are you using ZFS ?

With Solaris 11 coming out with a requirement of ZFS on the root disk, I was curious to know who is using the Zeta File System now? I have been using ZFS for the past year and don't plan to go back to UFS since ZFS is much more reliable and easier to maintain. (13 Replies)
Discussion started by: bluescreen
13 Replies

6. Shell Programming and Scripting

Extract data based on match against one column data from a long list data

My input file: data_5 Ali 422 2.00E-45 102/253 140/253 24 data_3 Abu 202 60.00E-45 12/23 140/23 28 data_1 Ahmad 256 7.00E-45 120/235 140/235 22 data_4 Aman 365 8.00E-45 15/65 140/65 20 data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies

7. Solaris

Copy data from zfs datasets

I 've few data sets in my zfs pool which has been exported to the non global zones and i want to copy data on those datasets/file systems to my datasets in new pool mounted on global zone, how can i do that ? (2 Replies)
Discussion started by: fugitive
2 Replies

8. Filesystems, Disks and Memory

Can ZFS Save my Data

Hello, Our RAID and server recently crashed and we are trying to recover our data. The problem appears to be that the Veritas File System/Logical Volume Manger became corrupt on our RAID. We are down to our last option, which is to run some Veritas commands that "may" result in data loss. ... (1 Reply)
Discussion started by: stringman
1 Replies
Login or Register to Ask a Question