LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-06-2011, 02:08 PM   #1
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Zone data disappeared during move


Can't find the data in either pool.

Code:
bash-3.00# zoneadm -z PPSMzone1 move /zpool/ppsmzone1
cannot create ZFS dataset zpool/ppsmzone1: dataset already exists
Moving across file-systems; copying zonepath /rpool/PPSMzone1...
Cleaning up zonepath /rpool/PPSMzone1...
bash-3.00# zonecfg -z PPSMzone1
zonecfg:PPSMzone1> info
zonename: PPSMzone1
zonepath: /zpool/ppsmzone1
brand: native
autoboot: true
bootargs: 
pool: 
limitpriv: 
scheduling-class: 
ip-type: shared
hostid: 
inherit-pkg-dir:
        dir: /lib
inherit-pkg-dir:
        dir: /platform
inherit-pkg-dir:
        dir: /sbin
net:
        address: 192.168.246.26
        physical: bge0
        defrouter: 192.168.246.1
zonecfg:PPSMzone1> exit
bash-3.00# zoneadm -z PPSMzone1 boot
zoneadm: zone 'PPSMzone1': can't stat /zpool/ppsmzone1/root: No such file or directory
zoneadm: zone 'PPSMzone1': call to zoneadmd failed

Code:
bash-3.00# zfs list -t all
NAME                       USED  AVAIL  REFER  MOUNTPOINT
rpool                     65.8G  1.15G  28.2G  /rpool
rpool/PPSMzone1           7.29G  1.15G  7.29G  /zpool/PPSMzone1
rpool/ROOT                12.6G  1.15G    18K  legacy
rpool/ROOT/s10s_u7wos_08  12.6G  1.15G  12.6G  /
rpool/dump                1.00G  1.15G  1.00G  -
rpool/export                40K  1.15G    22K  /export
rpool/export/home           18K  1.15G    18K  /export/home
rpool/ppsmtestbedzone1    6.67G  1.15G  6.67G  /rpool/ppsmtestbedzone1
rpool/swap                  10G  10.4G   736M  -
zpool                     89.2G  44.6G  78.1G  /zpool
zpool@071511              10.9G      -  77.6G  -
zpool@080611               102M      -  78.1G  -
zpool/ppsmzone1           28.0K  44.6G  28.0K  /rpool/PPSMzone1
zpool/ppsmzone2           28.0K  44.6G  28.0K  /zpool/ppsmzone2
bash-3.00# ll /rpool/PPSMzone1/
total 7
drwx------   2 root     root           2 Aug  6 13:09 .
drwxr-xr-x   7 root     root           7 Aug  6 13:16 ..
bash-3.00#
 
Old 08-07-2011, 01:00 PM   #2
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Original Poster
Rep: Reputation: 30
Looks like it's mounted on the wrong spot somehow. Thoughts on how to proceed? I want it mounted on /zpool and moved there.

Code:
bash-3.00# df -h /zpool/PPSMzone1
Filesystem             size   used  avail capacity  Mounted on
rpool/PPSMzone1         67G   7.3G   1.1G    87%    /zpool/PPSMzone1

Last edited by bax; 08-07-2011 at 01:01 PM.
 
Old 08-15-2011, 04:47 AM   #3
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Hi there,

Frankly speaking a little bit confused from the description you gave. Below is from the logs you copied.

While trying to move zone PPSMzone1, zfs moved to rpool/PPSMzone1 instead of zpool/ppsmzone1 ( as it already existed).
And mountpoint set to /zpool/PPSMzone1 instead of /zpool/ppsmzone1 (case sensitive).

To fix the issue,
1. Check if directory /zpool/ppsmzone1 exists or not.
Quote:
ls -ld /zpool/ppsmzone1
2. Create if not, and set proper permission.
Quote:
sudo mkdir /zpool/ppsmzone1
chown root:root /zpool/ppsmzone1
chmod 700 /zpool/ppsmzone1
3. Change mount point for zone's root file system.
Quote:
sudo zfs set mountpoint=/zpool/ppsmzone1 rpool/PPSMzone1
Check above and reply back with further queries.
 
  


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
nsd3 out of zone data malayo Linux - Networking 1 05-30-2011 12:46 AM
out of zone data / named-checkzone I_AM Linux - Networking 1 04-10-2011 10:32 AM
"Ignoring out-of-zone data" errors with my DNS Zone file zyzzogeton Linux - Networking 2 12-17-2009 08:51 AM
How to recover data after zoneadm -z zone 1 uninstall rajaniyer123 Solaris / OpenSolaris 1 07-28-2008 08:33 AM
djbdns - ZONE Data kbajwa-linuxquestion Linux - Networking 1 12-08-2007 08:16 PM

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

All times are GMT -5. The time now is 10:50 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