Solaris 11 disk issue | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Solaris 11 disk issue

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-07-2013
cbtshare cbtshare is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 9 June 2013, 9:56 PM EDT
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Solaris 11 disk issue[solved]

I have 2 disks in my system.I recently added a zpool to the disk, but today I changed my mind and deleted the zpool ,
zpool destroy -f extra

The zpool is now deleted and I want to partition the disk, so I delete the only partition on the disk.

Now when I run format again,


Code:
format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c7d0 <SAMSUNG-S14JJ9DP72414-0001-149.05GB>
          /pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
       1. c8d1 <drive type unknown>
          /pci@0,0/pci-ide@1f,2/ide@1/cmdk@1,0

Specify disk (enter its number): 1



AVAILABLE DRIVE TYPES:
        0. other

My issue is I can see the drive but I cannot access it (pressing 1)to partition it,I get the message above.Can anyone help?

Last edited by cbtshare; 06-07-2013 at 06:14 PM..
Sponsored Links
    #2  
Old 06-07-2013
GP81 GP81 is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 13 January 2014, 7:20 AM EST
Location: Warsaw, Poland
Posts: 65
Thanks: 0
Thanked 14 Times in 13 Posts
Did you try create zpool again?

Code:
# zpool create extra c8d1

It should write new label to disk and then you could destroy pool and modify label with format
Sponsored Links
    #3  
Old 06-07-2013
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 31 October 2014, 5:16 AM EDT
Location: Cornwall, UK
Posts: 841
Thanks: 44
Thanked 158 Times in 143 Posts
What platform is this?

What type of disk is it?

(depending on what type of disk it actually is, I would firstly "set all mode pages to default" using the format command. A disk drive is a highly programmable device and has a large number of on-board registers which define its behaviour. If these are left in a state of limbo by some operation, the drive might exhibit strange behaviour. Also, you should be able to write (or rewrite) a Sun label to the disk using format or even redefine its perceived geometry. Don't forget that you can invoke format with a -e switch (expert mode) which provides much more ammunition to tackle things. In expert mode make damned sure you select the right drive to work on otherwise you could alter working drives.)

Anyway, enough of all that. Post back answers to above questions.
    #4  
Old 06-07-2013
cbtshare cbtshare is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 9 June 2013, 9:56 PM EDT
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
@GP81

This worked fine, but the issue is I wanted to actually partition the disk then use one partition for NFS ,SMB etc. If I just create back another pool, I have access to the disk , but not able create partitions.
Quote:
@hicksd8

This system is SunOS SolarisServer 5.11 11.1 i86pc i386 i86pc

The disks are SATA disks
Thank you all for the replies.I still am back at square one, at how to partition the disk,when I tried the last time, it told me I needed to delete the partition, then create the needed partitions ,but disk became inaccessible when I deleted the only partition.
Sponsored Links
    #5  
Old 06-07-2013
GP81 GP81 is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 13 January 2014, 7:20 AM EST
Location: Warsaw, Poland
Posts: 65
Thanks: 0
Thanked 14 Times in 13 Posts
I understand what you want, but now disk is inaccessible from format command. My advice is to create zpool again. It will write new label to disk. Then you must destroy zpool but label will still exist and disk will be accessible from format command.
Why did you delete partition before? Did you use fdisk subcommnd from format?
I usualy use format in different way.
First I check disk and then from menu select partition, then print and then you can see how disk is partitioned and by selecting number of partition you can change it.
It is x86, so you probably removed solaris main partition which is something different than solaris slice.
Sponsored Links
    #6  
Old 06-07-2013
cbtshare cbtshare is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 9 June 2013, 9:56 PM EDT
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
@GP81

Yes, as I said in my previous post, I was able to create the pool again, and it is now online. I can destroy the pool again and then be able to access the disk, but still am stuck at how to partition the disk.

Yes, I used fdisk subcommand, this is the disk after I created a label:

Code:
 Total disk size is 9725 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1                 EFI               0  9725    9726    100

I want to know how can I create a couple partitions.

Last edited by Scott; 06-07-2013 at 05:46 PM.. Reason: Code tags
Sponsored Links
    #7  
Old 06-07-2013
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 30 October 2014, 11:42 PM EDT
Location: Paris
Posts: 4,434
Thanks: 16
Thanked 474 Times in 427 Posts
Quote:
This worked fine, but the issue is I wanted to actually partition the disk then use one partition for NFS ,SMB etc. If I just create back another pool, I have access to the disk , but not able create partitions.
It seems you are confusing partitions and file systems here. You certainly can create new file systems in your existing ZFS pool and dedicate them to NFS, SMB or whatever you want.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Convert from raw disk to solaris volume manager disk fretagi Solaris 4 04-20-2012 02:42 AM
Convert from raw disk to solaris volume manager disk fretagi Solaris 0 04-18-2012 06:18 AM
Solaris 10 installation issue Error 25: Disk cannot be read - Solved admin_xor Solaris 1 10-22-2011 01:42 AM
root disk mirroring in solaris volume manager for solaris 10 ramareddi16 Solaris 1 09-16-2011 07:55 AM
Solaris 8 disk/mirroring issue ghuber UNIX for Advanced & Expert Users 5 11-08-2005 07:51 PM



All times are GMT -4. The time now is 07:20 AM.