Solaris 11 disk issue


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 11 disk issue
# 8  
Old 06-07-2013
@jlliagre

So basically what your saying is that I cannot create a partition and then assign that partition to a zpool?

I know I can create filesystems in my zpool and assign SMB or NFS to it, but that is easy. I want to create partitions and then assign respective partitions to different zpools, then create filesystems.

---------- Post updated at 06:12 PM ---------- Previous update was at 05:43 PM ----------

Ok, well after some testing it seems like partitions cannot be used to create zpools, only disk. So I guess I found my answer. Thank you all for helping

Last edited by DukeNuke2; 06-07-2013 at 07:58 PM..
# 9  
Old 06-07-2013
Quote:
Originally Posted by cbtshare
So basically what your saying is that I cannot create a partition and then assign that partition to a zpool?
That's not what I wrote. You certainly can create partitions and have zpools using then as underlying devices if you think that's the best solution for you.
Quote:
I know I can create filesystems in my zpool and assign SMB or NFS to it, but that is easy.
What's wrong with "easy" ??
Quote:
I want to create partitions and then assign respective partitions to different zpools, then create filesystems.
You can do that, although that would be suboptimal (less flexibility, less performance).
Quote:
Ok, well after some testing it seems like partitions cannot be used to create zpools, only disk.
This is incorrect.
You can create zpools from whole disks, primary and extended partitions, slices and plain files.
# 10  
Old 06-07-2013
@jlliagre

Easy is not what I want, that is what's wrong with it.

Well , it maybe I am incorrect, even though I cant find anywhere online of how to create zpools from different partitions of ONE disk.If this is true you seem to know the answer but not willing to share ,so does anyone know how to do this?
# 11  
Old 06-08-2013
The process is very simple:

- Using format --> fdisk, destroy the EFI partition, then create, assuming you want a
regular MBR layout, a Solaris 2 MBR partition, and make sure it is active.
- Create whatever partition you want using format --> partition. Label the disk to save the
new VTOC.
- Then simply create a zpool specifying the slice you want to use. For example, if you
are using a second IDE disk and you wish to use slice 0, you would specify c0d1s0.
Code:
# zpool create mypool c0d1s0

# 12  
Old 06-08-2013
I think that you confuse partition and slice. Partition is for DOS system where we have primary and extended partition and so on.
Now when you destroy your zpool you have that kind of partition but you must to divide it to slices.
You can see the current slice structure by using
Code:
# prtvtoc /dev/dsk/c8d1s2

I'm not sure suffix s2, so test it with or without.

To create new slices you must use subcommand partition from format.
Procedure is as follows:
1. execute format
2. select your disk c8d1
3. select partition or abbreviation p
4. select print or p to see how is now disk divided
5. select 0 and change parameters of slice 0
- name
- mode
- start sector
- length
5.a. Repeat this steps with next slices.
6. after you create all new slices select label or l to write new label to disk.
7.after all nescessary confirmation exit from format with double q.

Now you should have some slices on your disk.
Use prtvtoc to see the difference between previous and current state.
You can use that slices to create zpools.
For example:
Code:
# zpool create newpool1 c8d1s0


Last edited by GP81; 06-08-2013 at 04:33 AM.. Reason: icode tags
# 13  
Old 06-08-2013
@everyone....

But surely, unless something has changed in Solaris 11 x86, you can't set up 'slices' on a disk with a EFI label. cbtshare has posted a display of the disk label showing it as EFI which is what it would be having been in a zfs pool. Doesn't the label need to be changed to SMI before you can write a sliced disk table?

Also, my understanding is that EFI labels and SMI labels put their partition tables in different locations (starting disk sectors) so utilities for one of the labels may not work at all on a disk with the other label (often displaying 'unknown')

I am not certain that I am right on this hence invite comments from everyone on this thread.

SunBlog: Changing a disk label (EFI / SMI)

---------- Post updated at 10:24 AM ---------- Previous update was at 10:12 AM ----------

Just Googled and found this....

UNIX my first love...: EFI ( Extensible Firmware Interface) disk label & SMI (Sun Microsystems Inc) or VTOC disk label.

Does that work?

---------- Post updated at 10:49 AM ---------- Previous update was at 10:24 AM ----------

I reckon that, as per my previous post#3, it needs a Sun (SMI) label written to the disk.

Last edited by hicksd8; 06-08-2013 at 06:24 AM..
# 14  
Old 06-08-2013
@GP81

Thank you very much for the detailed explanation.

@everyone

I kinda did it a bit different , where I used the partiton to create a zpool.In format, fdisk I created 2 partitions on my disk( my disk c8d1, the partitions would then become p0 and p1)

so to add my zpool to partitions I simply:

Code:
root@SolarisServer:~# zpool create extra6 /dev/dsk/c8d1p1
root@SolarisServer:~# zpool create extra7 /dev/dsk/c8d1p2

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Server disk issue need help

Hello all, Our Solaris 9? Sun Fire 480R backup server(in another city) is throwing disk errors such as these repeatedly. WARNING: vxvm:vxio: Subdisk rootdisk-02 block 24037056: Uncorrectable read error WARNING: vxvm:vxio: Subdisk rootdisk-02 block 7767072: Uncorrectable write error ... (18 Replies)
Discussion started by: RyanV
18 Replies

2. Solaris

Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below: root@moneta # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 513M 9.3G 6% /... (4 Replies)
Discussion started by: fretagi
4 Replies

3. Solaris

Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below: root@moneta # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 513M 9.3G 6% / ... (0 Replies)
Discussion started by: fretagi
0 Replies

4. Solaris

Solaris 10 installation issue Error 25: Disk cannot be read - Solved

Hi all, I guess most of you have seen this error message while installing Solaris 10 on an x86 platform. I got the error message while installing from DVD ISO on my home VMWare ESXi server. It took me a long time to figure the exact issue and a subsequent solution. the solution is very... (1 Reply)
Discussion started by: admin_xor
1 Replies

5. Solaris

root disk mirroring in solaris volume manager for solaris 10

Need a procedure document to do "root disk mirroring in solaris volume manager for solaris 10". I hope some one will help me asap. I need to do it production environment. Let me know if you need any deatils on this. Thanks, Rama (1 Reply)
Discussion started by: ramareddi16
1 Replies

6. AIX

Disk I/O Issue

We have a filesystem which contains 8 hard disks but i am facing disk I/O issue becuase data is not spreading across all the disks.Is there any way i can check how data is spreading and any parameter we need to change to spread ata across all disks. OS--AIX 5.3 (3 Replies)
Discussion started by: ukatru
3 Replies

7. UNIX for Advanced & Expert Users

partition disk issue

hi guys, I've got a strange issue, may be one of you has experienced this. SunOS 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V440 everything is mirrored. My issue is that I have a umpty directory but seems to have data on. Let me show you # df -h /data Filesystem size used... (10 Replies)
Discussion started by: moustik
10 Replies

8. Solaris

Disk Mirror in Solaris 9 via Solaris Volume Manager

Hello, I am trying to do mirror in solaris 9. I have total 0-7 disks 4 5 6 7 0 1 2 3 Drive 0 and Drive 4 = Boot Drives Need to Mirror following drives. Drive 1 and Drive 5 = Need to mirror Drive 1 was mounted on: /prod1, /prod2, /prod3, /prod4, /prod5. Then i... (3 Replies)
Discussion started by: deal732
3 Replies

9. AIX

disk issue

Hi, I have a AIX 4.3 box here with problems cause of a disk in below VG. volume group: workvg lspv hdisk4 000166789869ab2d workvg hdisk5 000166789869b96b workvg now hdisk4 disk has failed and cause the quorum was set, workvg became varied off. I have to replace the... (2 Replies)
Discussion started by: karthikosu
2 Replies

10. UNIX for Advanced & Expert Users

Solaris 8 disk/mirroring issue

Hello! I recently inherited system administration duties for a SUN v880 box. The system has 6 physical hard disks.. In doing some basic maintenance, I found they're configured for mirroring. I ran the metastat and metadb commands, and many of the mirrors are showing they are in need of... (5 Replies)
Discussion started by: ghuber
5 Replies
Login or Register to Ask a Question