Trouble creating a disk partition slice (EFI)


 
Thread Tools Search this Thread
Operating Systems Solaris Trouble creating a disk partition slice (EFI)
# 1  
Old 03-19-2015
Trouble creating a disk partition slice (EFI)

Hi all,


I am using SPARC Solaris 11.1 with EFI labelled disks.
I am new to ZFS file systems and slightly stuck when trying to create a partition (slice) on one of my LUNs.

EFI labels use sectors and blocks and I am not sure how exactly it works.

From here I can try and create a partition but when I have to enter the Starting Sector, I get confused, as you can see from the below code.

I have tried to understand the sectors and so on, but cannot work out what sector I need to create from.

Any help would be greatly appreciated and/or info on sectors.


Code:
root@odb-grumpy:/# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c2d1 <NETAPP-LUN-820a-40.00GB>
          /virtual-devices@100/channel-devices@200/disk@1
       1. c2d2 <NETAPP-LUN-820a-20.00GB>
          /virtual-devices@100/channel-devices@200/disk@2
       2. c2d3 <NETAPP-LUN-820a-500.00MB>
          /virtual-devices@100/channel-devices@200/disk@3
Specify disk (enter its number): 2
selecting c2d3
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        inquiry    - show disk ID
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk sectors available: 1007549 + 16384 (reserved sectors)

Part      Tag    Flag     First Sector       Size       Last Sector
  0        usr    wm               256    491.86MB        1007582
  1 unassigned    wm                 0         0             0
  2 unassigned    wm                 0         0             0
  3 unassigned    wm                 0         0             0
  4 unassigned    wm                 0         0             0
  5 unassigned    wm                 0         0             0
  6 unassigned    wm                 0         0             0
  8   reserved    wm           1007583      8.00MB        1023966

partition> 1
Part      Tag    Flag     First Sector       Size       Last Sector
  1 unassigned    wm                 0         0             0

Enter partition id tag[usr]:
Enter partition permission flags[wm]:
Enter new starting sector[1007583]:

# 2  
Old 03-23-2015
partition slice

Each slice must not ovewrite other so start sector for a slice should be last sector of previous one + 1
I.g. in your table you can't create slice 1 because first sector should be 1007583
that is already in reserved slice 8

If you don't like how partition table is made, you should modify it (i.g. you should decrease slice 0), but in this case you loss data
# 3  
Old 03-26-2015
Slice 8 is a reserved area at the end of the disk.

I don't see too much wrong with what you are doing except my first questions are:

1. What hardware is this?
2. What version of Solaris
3. The disk is being recognised as a 500MB disk. Emphasis on the "MB"! Is that right????
4. What type of disk is it? SCSI, SATA, IDE or what? Showing as a NetApp LUN?

If it is right, it's been a long time since I've seen one of those.

---------- Post updated at 11:00 AM ---------- Previous update was at 10:49 AM ----------

Oh, and one more question:

5. Have you actually written an EFI label to this disk?

(EFI labels occupy 34 sectors (0-33) so the first partition usually starts at sector 34.)
If you haven't written the EFI label you might need to use:
Code:
# format -e

expert mode to do that.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

EFI disk labeling / understand the parition table / sectors not continue

Hi all, I have a EFI disk and it is use in zfs pool. partition> p Volume: rpool Current partition table (original): Total disk sectors available: 1172107117 + 16384 (reserved sectors) Part Tag Flag First Sector Size Last Sector 0 usr wm ... (8 Replies)
Discussion started by: javanoob
8 Replies

2. BSD

Find Partition/Slice UUID

I thought I had figured this out at one point, but I can't remember. Is there a way/command to get the UUIDs of a disk's partitions/slices in FreeBSD? Linux has the blkid command, which doesn't seem to be available. (2 Replies)
Discussion started by: AntumDeluge
2 Replies

3. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

4. Solaris

ZFS - whole disk Vs slice

we have a ZFS file system that was created as a pool of just one disk (raid on a SAN) when this was created it was done as a whole disk, and so EFI label. now we want to mount this file system into an LDOM. my understanding of how ldom's and disk works this is that we can only do this as a... (1 Reply)
Discussion started by: robsonde
1 Replies

5. Solaris

Installing using ZFS - need to remove EFI disk labels

What is the preferred way of doing this from a bare metal install? (3 Replies)
Discussion started by: LittleLebowski
3 Replies

6. Solaris

EFI Disk labels on 3510 raid array

Hi Peeps, Can anyone help me an EFI lablel on a 3510 raid array that I cannot get rid of, format -e and label just asks you if you want to label it. Want an SMI label writing to it. Anyone got any ideas on how to remove the EFI label? Thanks in advance Martin (2 Replies)
Discussion started by: callmebob
2 Replies

7. UNIX for Dummies Questions & Answers

slice & partition???

:confused: Hello, What is the difference between slice and partition on Solaris world? Regards (4 Replies)
Discussion started by: XNOR
4 Replies
Login or Register to Ask a Question