Mounting OpenSolaris Zone FS in Global Zone


 
Thread Tools Search this Thread
Operating Systems Solaris Mounting OpenSolaris Zone FS in Global Zone
# 1  
Old 05-08-2011
Data Mounting OpenSolaris Zone FS in Global Zone

Hi,

We have had a hard drive failure on one of our sandbox OpenSolaris system. We had 2 solaris zones configured at /tank/zones/teamcity and /tank/zones/jira for respective products.

The zpool (tank) was mirrored (2 drives). I'd like to mount the non-faulty drive in the global zone and recover some files within the zones above. How does one do this as I'm unable to simply mount the ZFS volumes normally.

If it helps, this is what we're doing (don't ask why!), we have a bootable CD version of OpenSolaris SNV 134, run inside VMWare, we mount the non-faulty drive.

The files we need to recover are related to the TeamCity and Jira products - we have backups but we'd like to yank out some configuration files that were never backed up.Smilie

Does anyone have any ideas?

Last edited by DukeNuke2; 05-08-2011 at 06:40 AM..
# 2  
Old 05-08-2011
Start by posting
Code:
zpool status -v tank

output.
# 3  
Old 05-09-2011
Hi,

Thanks for replying.

Code:
jack@opensolaris:/tomcat# zpool status -v base
  pool: tank
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://www.sun.com/msg/ZFS-8000-2Q
 scrub: none requested
config:

        NAME                     STATE     READ WRITE CKSUM
        base                     DEGRADED     0     0     0
          mirror-0               DEGRADED     0     0     0
            6745989704919915101  UNAVAIL      0     0     0  was /dev/dsk/c5t1d0s0
            c5t0d0               ONLINE       0     0     0

errors: No known data errors
jack@opensolaris:/tomcat#

We are running this inside the Desktop Live CD as earlier.

I think our sysadmin has been laying around with it as there seems to be a few file systems mounted...

Code:
jack@opensolaris:~$ zfs list
NAME                             USED  AVAIL  REFER  MOUNTPOINT
tank                             185G   500G    27K  /tank
tank/zones                      10.2G   500G    24K  /tank/zones
tank/zones/jira             1.62G   500G    24K  /jira-zone
tank/zones/jira/ROOT        1.62G   500G    19K  legacy
tank/zones/jira/ROOT/zbe-7  72.6M   500G  1.50G  legacy
tank/zones/jira/ROOT/zbe-8  62.5K   500G  1.49G  legacy
tank/zones/jira/ROOT/zbe-9  1.55G   500G  1.49G  legacy
tank/zones/teamcity               8.40G   500G    24K  /tank/zones/teamcity
tank/zones/teamcity/ROOT          8.40G   500G    21K  /teamcity
tank/zones/teamcity/ROOT/zbe       468M   500G   468M  /teamcitys
tank/zones/teamcity/ROOT/zbe-6    1.20G   500G  2.70G  /teamcity/zbe-6
tank/zones/teamcity/ROOT/zbe-7    88.5K   500G  4.17G  /teamcity/zbe-7
tank/zones/teamcity/ROOT/zbe-8    6.74G   500G  5.56G  /teamcity

Trying to list in teamcity:

Code:
jack@opensolaris:/tomcat# ls /tank/zones/teamcity/
dev  root

I'm not a Solaris expert by any means... I'm just a Java girl.
# 4  
Old 05-09-2011
what reports this command ?

Code:
fmadm faulty -a

# 5  
Old 05-09-2011
Quote:
Originally Posted by sophie.cowell
I'm not a Solaris expert by any means... I'm just a Java girl.
The pool is imported and its file systems look to be correctly mounted. If you or someone else didn't messed with the zone file systems mount points, the jira and teamcity zones should be usable.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. Solaris

Global Zone getting crontab info from zone

Hi, First post. I have a script that I am having a little trouble with and I hope someone can help. I will post the code for your input, but I want to read the lines of a file and use this as input to a command in a while loop... #!/bin/sh # # ### Variables MSG=/tmp/tmptest.txt... (7 Replies)
Discussion started by: dakelly
7 Replies

3. Solaris

Scripting changes to multiple zone configurations in the same Global Zone

So this is Solaris 11.1. I have a Global zone that has several non-global zones running in it. I want to change the capped-memory.physical resources setting in ALL the zone configs of the running zones. if I were to do this manually here's what I would do: zonecfg -z zone1 select... (2 Replies)
Discussion started by: os2mac
2 Replies

4. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

5. Solaris

how to add a default gateway in a zone of different VLAN of global zone

Hi Greetings... I have an issue in connecting the zone from outside the network and it is because of default gateway. I can ping default gateway from inside the zone and not able to ping from global zone due to different VLAN issue. If i add two different gateways and restart network services,... (2 Replies)
Discussion started by: vvpotugunta
2 Replies

6. Solaris

Covert Global zone to local zone

Dears, I would like to convert solaris 10 x86 and solaris 10 sparc (Global Zones) physical servers into Local zones. i found a document which seems to be helpful but i'm stuck @ the 1st step. to test this i want to do it 1st on x86 system running under vmware ESXi and if it succeeds i will... (1 Reply)
Discussion started by: mduweik
1 Replies

7. Solaris

[b]How to mount a folder from global zone to non global zone??

Hi All There is one folder in global zone I just want to share the same folder innon global zone. How can i do it? pls send me script for this. (2 Replies)
Discussion started by: vijaysachin
2 Replies

8. Solaris

Not able to ping global zone from local zone

Hi Gurus I am not able to ping the local zone from global zone when i am trying to ping i am getting below ICMP Host Unreachable from gateway zone ( 192.268.35.210) for icmp from zone ( 192.168.35.210) to sun1 ( 192.168.35.210) However i can ping local zone from global please... (12 Replies)
Discussion started by: kumarmani
12 Replies

9. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies
Login or Register to Ask a Question

Featured Tech Videos