How to access content of problematic rpool ?


 
Thread Tools Search this Thread
Operating Systems Solaris How to access content of problematic rpool ?
# 1  
Old 01-14-2015
How to access content of problematic rpool ?

Hi guys,

I have a Solaris 10 x86 server with 2 physical disks. It had a ZFS rpool on the first disk c0t0d0s0. The server stopped booting with some error like "Cannot find bootfile".

I booted with Solaris DVD and re-installed the operating system on the second disk with a different pool named ispool.

Now I would like to recover some data from rpool on the original disk. The rpool seems healthy but unfortunately inside the pool I don't see the content.

What I did (after reinstalling O.S.):
Code:
bash-3.2# zpool status
  pool: ispool
 state: ONLINE
 scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        ispool      ONLINE       0     0     0
          c0t1d0s0  ONLINE       0     0     0

errors: No known data errors
bash-3.2# 
bash-3.2# 
bash-3.2# zfs list
NAME                          USED  AVAIL  REFER  MOUNTPOINT
ispool                       9.50G   264G  42.5K  /ispool
ispool/ROOT                  4.24G   264G    31K  legacy
ispool/ROOT/s10x_u11wos_24a  4.24G   264G  4.24G  /
ispool/dump                  1.00G   264G  1.00G  -
ispool/export                  63K   264G    32K  /export
ispool/export/home             31K   264G    31K  /export/home
ispool/swap                  4.25G   264G  4.00G  -
bash-3.2# 
bash-3.2# zpool import rpool
bash-3.2# zpool status -v
  pool: ispool
 state: ONLINE
 scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        ispool      ONLINE       0     0     0
          c0t1d0s0  ONLINE       0     0     0

errors: No known data errors

  pool: rpool
 state: ONLINE
 scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          c0t0d0s0  ONLINE       0     0     0

errors: No known data errors


I've also tried to mount rpool on a different mountpoint:

Code:
bash-3.2# zpool export rpool
bash-3.2# zpool import -R /a rpool
bash-3.2# zpool list rpool
NAME   SIZE  ALLOC  FREE  CAP  HEALTH  ALTROOT
rpool  236G  47.2G  189G  19%  ONLINE  /a

This rpool had 47Gb, but I only see a few files (total 13K):

Code:
bash-3.2# cd /a/ar

bash-3.2# ls -lh
total 6
drwxr-xr-x   3 root     root           3 May  6  2014 boot
drwxr-xr-x   2 root     root           3 May  6  2014 etc

bash-3.2# du -hs /a/ar/*
  11K   /a/ar/boot
   2K   /a/ar/etc

bash-3.2# ls -Rlh
.:
total 6
drwxr-xr-x   3 root     root           3 May  6  2014 boot
drwxr-xr-x   2 root     root           3 May  6  2014 etc

./boot:
total 3
drwxr-xr-x   3 root     root           5 May  6  2014 grub

./boot/grub:
total 15
drwxr-xr-x   2 root     root           3 May  6  2014 bootsign
-rw-r--r--   1 root     root        2.0K May  6  2014 menu.lst
-rw-r--r--   1 root     root        2.7K May  6  2014 splash.xpm.gz

./boot/grub/bootsign:
total 1
-r--r--r--   1 root     root           0 May  6  2014 pool_rpool

./etc:
total 2
-rw-r--r--   1 root     root          11 May  6  2014 bootsign
bash-3.2#

I've also tried a scrub and it shows no errors found. Am I doing something wrong, or accessing the pool in an incorrect way?

Thanks

Last edited by Don Cragun; 01-14-2015 at 02:50 PM.. Reason: Change COLOR tags to CODE tags.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Help with mirroring rpool

Hello, I need some help mirroring my rpool. I have a 60gb ssd running the rpool alone and want to mirror it for redundancy so I bought a 120gb ssd that I found for a good price. 60gb drives aren't as easy to find at a good price anymore it seems. I (a bit naively) thought after reading... (9 Replies)
Discussion started by: Zorken
9 Replies

2. Solaris

Zfs rpool size

Hi everyone, I am doing housekeeping of my Solaris 11 for zfs snapshot to reduce the snapshot size. I have already cleared the / file system, however the rpool size still not reduced. Filesystem Size Used Available Capacity Mounted on rpool/ROOT/solaris-2 98G 6.9G ... (2 Replies)
Discussion started by: freshmeat
2 Replies

3. Hardware

Problematic RTL8188EE Wireless Network Adapter

Good Day All, There are numerous results when searching google on this issue, however, none seem to have a solution. I have read until my eyes bleed and banged my head on the table more than once! :) I am hoping to resolve this issue -- or at least have a decent workaround. It is a real... (13 Replies)
Discussion started by: RogerBaran
13 Replies

4. Solaris

Resize rpool

Hi, I have rpool about 500G. So i want to use 210G from rpool and assign mount point as /database. I seek in google and couldn't found it. Does anyone know how to achieve it? Thanks. (2 Replies)
Discussion started by: mzainal
2 Replies

5. Shell Programming and Scripting

Array output through a for loop problematic with multiple elements.

This code works perfect when using a machine with only one interface online. (Excluding the loopback of course) But when I have other interface up for vmware or a vpn the output gets mixed up. I know I had this working when I was just reading ip's from files so I know it is not a problem with... (8 Replies)
Discussion started by: Azrael
8 Replies

6. AIX

Interesting Problem! 2 VIOs, One is problematic, assigning disks and resources from the other only

Hi, The scenario is like this: 1.We needed to assign two hdisks to an LPAR 2.SAN team gives us two ldevs 3.One of our VIO is hanging on cfgmgr operation 4. We ran cfgmgr on the smooth VIO. Got the disks and assigned the disks from there to the LPAR.(By passed the other VIO as in didnt run... (11 Replies)
Discussion started by: aixromeo
11 Replies

7. Post Here to Contact Site Administrators and Moderators

Complete Code, or just Problematic Sections??

In general, would most experts, moderators and programmers, like to see the original entire script (even if very long), or just a simplified version of the problematic parts? I currently have a GNU bash function (with a lot of issues). Is it more advisable to make separate posts for each... (3 Replies)
Discussion started by: AlphaLexman
3 Replies

8. Shell Programming and Scripting

search file and group values with problematic tab

hi people; the similar topic is being opened in here and here but i have confused with following condition. so i wanted to open a seperate topic. from my file.txt:... ... ... 110105-16:04:04 192.168.1.1 7.1j Port_NODE_MODEL_M_1_8 stopfile=/tmp/10544... (0 Replies)
Discussion started by: gc_sw
0 Replies

9. Solaris

rpool issue

My system is showing following .. how can i remove this rpool .. ? zpool status -v rpool pool: rpool state: UNAVAIL status: One or more devices could not be opened. There are insufficient replicas for the pool to continue functioning. action: Attach the missing device and... (0 Replies)
Discussion started by: fugitive
0 Replies
Login or Register to Ask a Question