How to create metadb with zpool in Solaris 11


 
Thread Tools Search this Thread
Operating Systems Solaris How to create metadb with zpool in Solaris 11
# 1  
Old 09-07-2011
How to create metadb with zpool in Solaris 11

Hi, my root pool is as follows. How can I create a metadb if I want to create SVM volumes?



Code:
zpool status
  pool: rpool1
 state: ONLINE
 scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        rpool1      ONLINE       0     0     0
          c4t1d0s0  ONLINE       0     0     0

errors: No known data errors

 df -h
Filesystem             Size   Used  Available Capacity  Mounted on
rpool1/ROOT/solaris     67G   7.9G        40G    17%    /
/devices                 0K     0K         0K     0%    /devices
/dev                     0K     0K         0K     0%    /dev
ctfs                     0K     0K         0K     0%    /system/contract
proc                     0K     0K         0K     0%    /proc
mnttab                   0K     0K         0K     0%    /etc/mnttab
swap                   8.3G   688K       8.3G     1%    /system/volatile
objfs                    0K     0K         0K     0%    /system/object
sharefs                  0K     0K         0K     0%    /etc/dfs/sharetab
fd                       0K     0K         0K     0%    /dev/fd
swap                   8.3G    40K       8.3G     1%    /tmp
rpool1/export           67G    32K        40G     1%    /export
rpool1/export/home      67G    32K        40G     1%    /export/home
rpool1/export/home/mike
                        67G    10G        40G    21%    /export/home/mike
rpool1                  67G    74K        40G     1%    /rpool1
/dev/lofi/2             94M   3.7M        80M     5%    /global/.devices/node@2
/dev/lofi/1             94M   4.4M        80M     6%    /global/.devices/node@1
/export/home/mike      51G    10G        40G    21%    /home/mike


Last edited by DukeNuke2; 09-08-2011 at 03:53 AM..
# 2  
Old 09-08-2011
You wouldn't want to use SVM for ZFS file systems. ZFS has the ability to handle mirroring on its own, and is much nicer than SVM.

ZFS Best Practices Guide - Siwiki
# 3  
Old 09-08-2011
One thing to add. You would have to check if there are blocks free on the disk, as you the metadb needs to be on its own slice.
# 4  
Old 09-08-2011
When I installed the OS, I used the whole disk and did not partition with UFS.
So how can I now slice it?
# 5  
Old 09-08-2011
I posted a link earlier, but it said the moderators have to inspect it first before it shows up on this thread. The instructions explain how to setup mirroring.

You don't need SVM with ZFS. ZFS is capable of handling mirroring on its own, and ZFS mirroring is much, MUCH better than SVM.

---------- Post updated at 01:06 AM ---------- Previous update was at 01:02 AM ----------

If you don't have any space left on the disk you're out of luck on adding any additional slices unless you reinstall the OS. However, ZFS can do anything that SVM could do (and more).
# 6  
Old 09-08-2011
Yeah, I know the capabilities of ZFS. I have worked on it somewhat. But the thing now is, I need to create SVM volumes for some purpose and the host Im creating is not using UFS. So, my question is how can I create a metadb on the ZFS root pool, instead of using another disk (eg SAN lun, which is not recommended though).
Re-install the OS is the best option? Smilie
# 7  
Old 09-08-2011
You want copies of the meta database on both disks you're mirroring, and you would want them to have the same VTOC. If ZFS is taking up the entire physical disk then there won't be anywhere to put your metadb. I don't see you having any other option other than possibly setting up metadb on non-root disks.
This User Gave Thanks to christr For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris can not boot because metadb lost

how to recovery metadb? Thanks! (1 Reply)
Discussion started by: dzung
1 Replies

2. Solaris

Solaris 10 Volume Manager - adding slice to metadb

Hi all, I added a new disk slice to the current metadb. Below is what I see bash-3.2# metadb -i flags first blk block count a m p luo 16 8192 /dev/dsk/c0t0d0s7 a p luo 8208 8192 ... (3 Replies)
Discussion started by: javanoob
3 Replies

3. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

4. Solaris

Upgrading Solaris - what happens to zpool/zfs versions

Hi everyone, I'm hoping someone can help me out here. I've googled lots and don't think I can find an easy answer to this. We're in the process of upgrading Solaris from v10 5/08 to v10 9/10. The zpools for luns are currently at version 10, and I understand Solaris v10 9/10 has support for... (3 Replies)
Discussion started by: badoshi
3 Replies

5. Solaris

Check Solaris VM Databases metadb does not have enough information about logical volumes

Check Solaris VM Databases metadb does not have enough information about logical volumes. Current value is 0% I have checked the SVM status, all disks are good state and synched perfectly. no errors in metadb -i. what is this alert exact mean? what we have to check for the value? Please... (1 Reply)
Discussion started by: Naveen.6025
1 Replies

6. BSD

Unable to create zfs zpool in FreeBSD 8.2: no such pool or dataset

I am trying to test simple zfs functionality on a FreeBSD 8.2 VM. When I try to run a 'zpool create' I receive the following error: # zpool create zfspool /dev/da0s1a cannot create 'zfspool': no such pool or dataset # zpool create zfspool /dev/da0 cannot create 'zfspool': no such pool or... (3 Replies)
Discussion started by: bstring
3 Replies

7. Solaris

Increase root filesystem on solaris zone using zpool

I have a solaris zone of 12 GB and i have to increase the / filesystem to 31GB as requested. Earlier I had expanded filesystems other than / by setting quota to new value like "zfs set quota=new value mountpoint" but I am not sure whether its a good practice in zfs because by default in my... (5 Replies)
Discussion started by: vikkash
5 Replies

8. Solaris

zpool create - long time creation

Hello, I have a 520GB SAN resource connected to the server via FC (4Gbit). In the next step he wants to create pool storage: After 15 hours Pool has not yet created... Is such a long waiting time is normal? Should I have done? Regards (1 Reply)
Discussion started by: bieszczaders
1 Replies

9. Solaris

How to create metadb when there is no free slice

Hi All, I have to do disk mirroring, for that I have to create a metadb as disk mirroring have to do with SVM. However I do not have any slice free for metadb. What are the options? Please suggest (4 Replies)
Discussion started by: kumarmani
4 Replies

10. Solaris

solaris with metadb

Hi All, If solaris has metadb services on the disk, it means that it has a HW raid controller. Or what. Thanks in advance. (1 Reply)
Discussion started by: itik
1 Replies
Login or Register to Ask a Question