[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Solaris

Posted on 2012-08-24
19
Medium Priority
?
1,156 Views
Last Modified: 2012-10-01
I am trying to partition a disk #2 and i am getting the following. its new disk

format> p
WARNING - This disk may be in use by an application that has
          modified the fdisk table. Ensure that this disk is
          not currently in use before proceeding to use fdisk.

bash-3.2# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <DEFAULT cyl 10440 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@0,0
       1. c1t1d0 <DEFAULT cyl 2608 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@1,0
       2. c1t2d0 <DEFAULT cyl 2608 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@2,0
       3. c1t3d0 <DEFAULT cyl 2608 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@3,0
       4. c1t4d0 <DEFAULT cyl 6219 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@4,0
Specify disk (enter its number): 1
selecting c1t1d0
[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
        fdisk      - run the fdisk program
        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
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p
WARNING - This disk may be in use by an application that has
          modified the fdisk table. Ensure that this disk is
          not currently in use before proceeding to use fdisk.
format>
0
Comment
Question by:ittechlab
19 Comments
 

Author Comment

by:ittechlab
ID: 38330011
bash-3.2# prtvtoc /dev/rdsk/c1t1d0s2
* /dev/rdsk/c1t1d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      63 sectors/track
*     255 tracks/cylinder
*   16065 sectors/cylinder
*    2610 cylinders
*    2608 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*       16065  41881455  41897519
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       2      5    01          0  41897520  41897519
       8      1    01          0     16065     16064
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 38330032
are you able to get the current partition table? Was the disk used on some other system? The command given by ittechlab

 prtvtoc /dev/rdsk/c1t1d0s2

should show it
0
 

Author Comment

by:ittechlab
ID: 38330042
bash-3.2#  prtvtoc /dev/rdsk/c1t1d0s2
* /dev/rdsk/c1t1d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      63 sectors/track
*     255 tracks/cylinder
*   16065 sectors/cylinder
*    2610 cylinders
*    2608 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*       16065  41881455  41897519
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       2      5    01          0  41897520  41897519
       8      1    01          0     16065     16064
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:omarfarid
ID: 38330415
after you run the format command and you select the disk, use commands p (for partition) then again p (for print), and you should see something like

Current partition table (original):
Total disk cylinders available: 65533 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 - 20560       40.00GB    (20561/0/0)  83888880
  1       swap    wm   20561 - 22617        4.00GB    (2057/0/0)    8392560
  2     backup    wu       0 - 65532      127.49GB    (65533/0/0) 267374640
  3 unassigned    wm   22618 - 48318       50.00GB    (25701/0/0) 104860080
  4 unassigned    wm   48319 - 48833        1.00GB    (515/0/0)     2101200
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0

partition>

what you posted could be the default / recommended partition table
0
 

Author Comment

by:ittechlab
ID: 38330436
Thats what i don't see.

bash-3.2# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <DEFAULT cyl 10440 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@0,0
       1. c1t1d0 <DEFAULT cyl 2608 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@1,0
       2. c1t2d0 <DEFAULT cyl 2608 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@2,0
       3. c1t3d0 <DEFAULT cyl 2608 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@3,0
       4. c1t4d0 <DEFAULT cyl 6219 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@4,0
Specify disk (enter its number): 1
selecting c1t1d0
[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
        fdisk      - run the fdisk program
        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
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p
WARNING - This disk may be in use by an application that has
          modified the fdisk table. Ensure that this disk is
          not currently in use before proceeding to use fdisk.
format> p
WARNING - This disk may be in use by an application that has
          modified the fdisk table. Ensure that this disk is
          not currently in use before proceeding to use fdisk.
format>
format>
format> p
WARNING - This disk may be in use by an application that has
          modified the fdisk table. Ensure that this disk is
          not currently in use before proceeding to use fdisk.
format> p
WARNING - This disk may be in use by an application that has
          modified the fdisk table. Ensure that this disk is
          not currently in use before proceeding to use fdisk.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 38330517
what type of applications are you running on the system?

what the command

df -k

shows?
0
 

Author Comment

by:ittechlab
ID: 38330530
bash-3.2# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c1t0d0s0    8606909 4084407 4436433    48%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 5543232    1000 5542232     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                     8606909 4084407 4436433    48%    /lib/libc.so.1
fd                         0       0       0     0%    /dev/fd
swap                 5542276      44 5542232     1%    /tmp
swap                 5542264      32 5542232     1%    /var/run
/dev/dsk/c1t0d0s3    12101980   37993 11942968     1%    /opt
/dev/dsk/c1t0d0s7    10085921   10047 9975015     1%    /export/home
/vol/dev/dsk/c0t0d0/sol_10_811_x86
                     2176202 2176202       0   100%    /cdrom/sol_10_811_x86
projects             5242880    8694 5233997     1%    /projects
/dev/fssnap/0        8606909 4084400 4436440    48%    /snap_root
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 38330567
You said in your question that this is a new disk. If you are sure then you can proceed with partitioning it.

Some times the disk is used indirect by applications like Oracle database which can use raw disk partitions.

I see that you are using volume manager. Are you sure that it is not used by VM?
0
 

Author Comment

by:ittechlab
ID: 38330602
its a new disk. its a VM disk. I have this solaris running in ESXi box.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 38330639
When you say VM disk do you mean volume manager or virtual machine?
0
 

Author Comment

by:ittechlab
ID: 38330649
virtual machine disk. vmware
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 38330659
since you could see this disk on the VM solaris then you should have the right to partition it.
0
 

Author Comment

by:ittechlab
ID: 38330688
i am not able to partition it. i keep getting this warning. i am not able to proceed further.

i did add the new disk, ran devfsadm. device tree has been created. i am not sure why i am getting this and couldn't by pass.

format> p
WARNING - This disk may be in use by an application that has
          modified the fdisk table. Ensure that this disk is
          not currently in use before proceeding to use fdisk.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 38330780
did you try to use the fdisk option rather the partition option?
0
 
LVL 13

Expert Comment

by:Sandy
ID: 38334294
Check the Patch related to Storage
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 38339145
0
 

Author Comment

by:ittechlab
ID: 38372919
Let me check this and i will let you know.
0
 

Accepted Solution

by:
ittechlab earned 0 total points
ID: 38438957
I tried nothing working.

closing this thread.
0
 

Author Closing Comment

by:ittechlab
ID: 38450155
closing this thread.

nothing working as mentioned in this thread.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month18 days, 17 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question