LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-27-2011, 02:24 AM   #1
edubidu
Member
 
Registered: Mar 2007
Location: Switzerland
Distribution: Ubuntu
Posts: 32

Rep: Reputation: 15
linux zfs iscsi and data loss


Hello all,

I have a strange thing:

* Installed on a ubuntu lucid lynx server edition a linux zfs.
* connected an external storage via iscsi.

all works fine, I can write data on the storage, but on the next reboot of the server, all data seams to be lost.

The thing is that when I type zpool list, all is ok, and the size shows what has been allocated before the boot; as if the files are still on the storage. And on the storage the files are still present. On the server I can rewrite again data on the iscsi (so it is not the connection that goes lost) but on a next reboot a ls -la shows nothing ! Just an empty folder:

Quote:
root@server:/zpool1# ls -la
total 8
drwxr-xr-x 2 root root 4096 Oct 26 12:05 .
drwxr-xr-x 24 root root 4096 Oct 26 12:05 ..
Is this a problem of linux zfs??
 
Old 10-27-2011, 03:35 AM   #2
backblaze.pl
LQ Newbie
 
Registered: Apr 2010
Distribution: Slackware
Posts: 23

Rep: Reputation: 6
Hi.

Probably you have to import the pool.

Try these:
Quote:
zpool list
-- should show your pools. If the output is
Quote:
no pools available
try
Quote:
zpool import
and follow the instructions.

Once pools are imported, everything should be back in place. You can try
Quote:
zfs umount -a
zfs mount -a
df -h
to see if filesystems are actually mounted.

REMEMBER: if you issue the following sequence of commands:

Quote:
zfs umount -a
cd /zpool1
zfs mount -a
ls -a
the output of last ls -a will always be empty, because you will still be in the /zpool1 directory of your root partition on root fs. To see newly mounted fs, you need to

Quote:
cd ..
cd /zpool1
It is a general feature, not zfs-related thing.

--
Cheers,
backblaze.pl
 
1 members found this post helpful.
Old 11-03-2011, 06:13 AM   #3
edubidu
Member
 
Registered: Mar 2007
Location: Switzerland
Distribution: Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 15
great, this was the trick! Thank you very much!!!!
 
  


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
ZFS not mounting iSCSI array on reboot AlucardZero Solaris / OpenSolaris 20 03-20-2012 01:58 PM
ZFS over iSCSI lystrata Solaris / OpenSolaris 4 08-26-2011 03:29 PM
Good Idea?: OpenFiler iSCSI Target (using PM) for >5TB Nexenta ZFS (inside Xen) ript107 Linux - Virtualization and Cloud 0 10-28-2010 04:03 PM
LXer: Article ZFS data integrity testing and more random ZFS thoughts. LXer Syndicated Linux News 0 05-15-2010 12:51 PM
ZFS (RAIDZ) and iSCSI jonnytabpni Linux - Server 1 04-15-2010 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:24 AM.

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