disk

nobleit
nobleit used Ask the Experts™
on
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

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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..
Top Expert 2011

Commented:
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?
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
>>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.

Author

Commented:
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

 
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
>>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?

Author

Commented:
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..
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
Providing links are fine.

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

Author

Commented:
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..
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
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.
Top Expert 2011

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

Author

Commented:
[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 ~]#
Top Expert 2011

Commented:
how about
mount
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
wesly_chen,

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

Commented:
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.

Author

Commented:
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 ~]#

Top Expert 2011

Commented:
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.

Author

Commented:
In this situation ..

which fdisk command is good..

fdisk /dev/

which command can I give in order to add one more disk..
Top Expert 2011
Commented:
> add one more disk..
You need to physically add the hard disk.
Then when you run
fdisl -l
you will see it show up as /dev/sdb  (assume you add SATA disk, for IDE disk , it will show up as /dev/hda)

Author

Commented:
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..
Top Expert 2011

Commented:
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
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.
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
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.
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial