Avatar of nobleit
nobleit
 asked on

disk

in my system redhat linux
here is the ouput of
[root@rac4 ~]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26        1300    10241437+  83  Linux
/dev/sda3            1301        1810     4096575   82  Linux swap / Solaris
/dev/sda4            1811        5221    27398857+   5  Extended
/dev/sda5            1811        2320     4096543+  83  Linux
/dev/sda6            2321        5221    23302251   83  Linux
[root@rac4 ~]#

but I want to create like this ie,
when I type fdisk -l
what should I do in order to be like this..

~]# fdisk -l

Disk /dev/hda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1567    12586896    c  W95 FAT32 (LBA)
/dev/hda2            1568        1632      522112+  83  Linux
/dev/hda3            1633        2154     4192965   82  Linux swap
/dev/hda4            2155        7297    41311147+   5  Extended
/dev/hda5            2155        7297    41311116   83  Linux

Disk /dev/hdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        1217     9775521   83  Linux
/dev/hdb2            1218        6081    39070080   83  
/dev/hdb3            6082       10945    39070080   83  Linux
/dev/hdb4           10946       14946    32138032+  83  Linux

Disk /dev/sda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        3648    29302528+  83  Linux
/dev/sda3            4866        7905    24418800   83  Linux
/dev/sda4            7906       14946    32146065+  83  Linux

Oracle DatabaseLinux OS Dev

Avatar of undefined
Last Comment
slightwv (䄆 Netminder)

8/22/2022 - Mon
manzoor_dba

hi,

Only the partitioned disk will show in the above format.. if it is not displayed in the format which specified by you then it means the disk is not been formated yet.

Thanks..
wesly_chen

You have two systems, one redhat linux with 42.9GB disk, another system has 3 disks, 60GB(IDE), 122.9GB(IDE) and 122.9GB(SATA).
The second system seems has DOS partition (dual boot?).

So what do you want?
slightwv (䄆 Netminder)

>>what should I do in order to be like this..

Where is the question here?  

Please explain what you are wanting to achieve instead of posting command listing and having us try to guess what you want.
Your help has saved me hundreds of hours of internet surfing.
fblack61
nobleit

ASKER
This is the current output:
[root@rac4 ~]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26        1300    10241437+  83  Linux
/dev/sda3            1301        1810     4096575   82  Linux swap / Solaris
/dev/sda4            1811        5221    27398857+   5  Extended
/dev/sda5            1811        2320     4096543+  83  Linux
/dev/sda6            2321        5221    23302251   83  Linux


I want to convert to be like this

~]# fdisk -l

Disk /dev/hda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1567    12586896    c  W95 FAT32 (LBA)
/dev/hda2            1568        1632      522112+  83  Linux
/dev/hda3            1633        2154     4192965   82  Linux swap
/dev/hda4            2155        7297    41311147+   5  Extended
/dev/hda5            2155        7297    41311116   83  Linux

Disk /dev/hdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        1217     9775521   83  Linux
/dev/hdb2            1218        6081    39070080   83  
/dev/hdb3            6082       10945    39070080   83  Linux
/dev/hdb4           10946       14946    32138032+  83  Linux

Disk /dev/sda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        3648    29302528+  83  Linux
/dev/sda3            4866        7905    24418800   83  Linux
/dev/sda4            7906       14946    32146065+  83  Linux

 
slightwv (䄆 Netminder)

>>I want to convert to be like this

That doesn't tell me anything.  Please explain what you are wanting to do.

Are you trying to add a disk, mount a disk, what?
nobleit

ASKER
I am following an online documentation to creat asm..
I saw one of the prereqisites for creation of asm..
Can I give that link to you..I can show what I am trying to do..
It is not againt the policy right..
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
slightwv (䄆 Netminder)

Providing links are fine.

Jusr be sure to point out the section that is causing you problems.
nobleit

ASKER
Here is the steps I follow

http://www.oracledba.org/10g/asm/asm_install.html#ASM_CreationImplementation_Using_asmlib


The precreation task

I did the first step..
[root@rac4 ~]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26        1300    10241437+  83  Linux
/dev/sda3            1301        1810     4096575   82  Linux swap / Solaris
/dev/sda4            1811        5221    27398857+   5  Extended
/dev/sda5            1811        2320     4096543+  83  Linux
/dev/sda6            2321        5221    23302251   83  Linux
[root@rac4 ~]#



the second step

I could not follow the second step..

partition..
slightwv (䄆 Netminder)

Are you trying to get your disks to be the same name as the article?

If so, don't.  Use the disks you have.  The names don't mean anything.

You need to understand Linux and how to configures disks and partition them up into logical volumes if you wish but that is up to you.

When reading these types of step by step blogs, learn and understand what they are telling you and apply them to your specific situation.

Do not just copy/paste and expect things to work.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
wesly_chen

Please post the output of the following command
mount
cat /etc/fstab
nobleit

ASKER
[root@rac4 ~]# cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/u01              /u01                    ext3    defaults        1 2
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda3         swap                    swap    defaults        0 0
You have new mail in /var/spool/mail/root
[root@rac4 ~]#
wesly_chen

how about
mount
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
slightwv (䄆 Netminder)

wesly_chen,

ASM needs RAW devices.  Not seeing how the mount comand and the fstab will help but my unix is rusty.
wesly_chen

I just want to check which partition is not used.
but the /etc/fstab is using e2fs label and mask the device path for the partition.
So I want to see the mount output to see if there is any free partition.
/dev/sda6 is a good one. Maybe he can backup the data on /dev/sda6 and use it as asm partition.
nobleit

ASKER
Is this the one you are expecting..

[root@rac4 ~]# mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda6 on /u01 type ext3 (rw)
/dev/sda5 on /tmp type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hdc on /media/VMware Tools type iso9660 (ro,noexec,nosuid,nodev,uid=0)
[root@rac4 ~]#

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
wesly_chen

So, there is no non-used partition on your system disk.
You might want to either
1. add one more disk to your system

2. Backup /u01 and use it as your asm partition. Once you create as RAW partition, the data on /u01 will destroyed totally.

Recommend option 1.
nobleit

ASKER
In this situation ..

which fdisk command is good..

fdisk /dev/

which command can I give in order to add one more disk..
ASKER CERTIFIED SOLUTION
wesly_chen

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
nobleit

ASKER
may I ask you how to add hard disk..physically

I am little confused buy a new one or is there any command to add hard disk..
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
wesly_chen

slightwv (䄆 Netminder)

Do you not have a sys admin that can help you with this?

You may not need to add a new disk but reconfigure the ones you have.

How to set up a machine from scratch is a little much for a Q&A site.
slightwv (䄆 Netminder)

I would like to suggest that if you are not comfortable working with the disks/volumes in unix that you really think twice about using ASM.

That is not really for beginners.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
slightwv (䄆 Netminder)

nobleit,

Since you have asked several new closely related questions can I assume you are done with this one?

I suggest the correct answer here is http:#a36336654 since it appears you were trying to literally make your system look like what was in the article which is unnecessary.