LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-09-2013, 12:59 AM   #1
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Rep: Reputation: Disabled
Patition disk on linux


Hello,

I want to partition disk for oracle asm configuration.
root@devtest ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 19G 3.5G 15G 20% /
/dev/sda14 313G 268G 29G 91% /u09
/dev/sda13 6.7G 1.3G 5.1G 20% /home
/dev/sda11 9.5G 978M 8.1G 11% /tmp
/dev/sda10 9.5G 2.8G 6.3G 31% /usr
/dev/sda9 19G 555M 18G 4% /var
/dev/sda8 19G 174M 18G 1% /opt
/dev/sda6 95G 37G 54G 41% /u05
/dev/sda5 95G 27G 63G 30% /u07
/dev/sda3 379G 145G 214G 41% /u06
/dev/sda2 379G 13G 347G 4% /u08
/dev/sda1 487M 33M 429M 8% /boot
tmpfs 7.7G 2.6M 7.7G 1% /dev/shm
none 7.7G 104K 7.7G 1% /var/lib/xenstored

And i have the above partition and do not have any /dev/sdb so how can acheive partitioning disks.
Please help me out.

Regards,
Shubha
 
Old 10-09-2013, 01:29 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
/dev/sda is the first disk, /dev/sdb is the second. Probably you do not have two disks.
 
Old 10-09-2013, 01:49 AM   #3
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi

Can i partition /dev/sda6 once again..?

Regards,
Shubha
 
Old 10-09-2013, 01:54 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
/dev/sda6 is one single partition, what would you like to do? split into several parts?
 
Old 10-09-2013, 02:01 AM   #5
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
I want to partition it again and want to see that partition in df -h
And this partition i use to store data.

Can i use like the above. Please help.
 
Old 10-09-2013, 02:05 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
Sorry, I do not really understand what do you plan to do. Can you please give us more detail!
 
Old 10-09-2013, 02:20 AM   #7
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi
I dont have additional disks to use, tried fdisk /dev/sda
as it says - No free sectors available.

so can i use the part of /dev/sda5 by partion it again..?

Am trying to configure oracle asm for 11g database by following the link http://spotdba.blogspot.in/2012/06/c...cle-11gr2.html Step 5 says partion disk for asm.

Suggest sometthing.
 
Old 10-09-2013, 02:28 AM   #8
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
you can use that partition without partitioning again, just don't forget to save your important data (everything on that partition will be lost). Also you need to unmount it and remove it from fstab. oracleasm createdisk DISK1 /dev/sda5 will work.
 
Old 10-09-2013, 02:44 AM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,389
Blog Entries: 6

Rep: Reputation: Disabled
Hi: shubhamuddu-

Hi: pan64!

In your output/readout I only see "sda" indicating that you have one HDD on that machine. I don't see another HDD from the output.
If you have a memory stick or external HDD it would show as "sdb" and a 3rd usb device would show as "sdc" so forth and so on.
So;....

Looking at this partition that you have on you hard disk drive-
Code:
/dev/sda5 95G 27G 63G 30% /u07
Yes, you can re-partition it.
First what ever you have on that partition you may want to back it up or put in on a memory stick or some other type of hardware (extern HDD or something before you manipulate it.

You can use G-parted to delete that partition and than create a new one and make the size of it whatever size you prefer.

Quote:
Can i partition /dev/sda6 once again..?
Yes, but you will have to do as I mentioned above. Unless you are not concerned about what's on that partition then you can go ahead and resize it-

For example lets say I have a HDD with 3 partitions-
- /dev/sda1 * Linux boot partition size 20 GB
- /dev/sda2 Linux root partition size 4 GB (gigabytes)
- /dev/sda3 Linux swap partition size 2 GB

Using G-pared I could click on and highlight the 20 GB partition and resize it to 24 GB if I wanted to.
However I would have to delete the 4 GB partiton before creating the 24 GB partition-- (just and example)

What distribution are you using?

Last edited by Ztcoracat; 10-09-2013 at 03:00 AM.
 
Old 10-09-2013, 02:45 AM   #10
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
To use it as asm disk why i have to unmount and remove it from fstab. Please clarify as am new to linux.

And also please let me know how to unmount it.

Thanks
 
Old 10-09-2013, 03:18 AM   #11
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
umount /u07 will unmount that partition, but first save your important data located on /u07
/etc/fstab contains a line related to that partition (show us that file if you could not find it), that should be removed too.
The reason is: it is now mounted and used as filesytem and it will be used by oracle (therefore that filesystem will be lost)
 
Old 10-09-2013, 05:25 AM   #12
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi Thanks for the solution.

I have unmounted /dev/sda5, removed it from fstab and put the same entry in /etc/fstab and mounted back and restarted the system.
Now tried to execute the command oracleasm createdisk DISK1 /dev/sda5 says Unable to open device "/dev/sda5": Device or resource busy
 
Old 10-09-2013, 05:28 AM   #13
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
yes, that's what I told you: umount that partition and remove it from fstab. You can either use it as a normal filesystem or for oracle database, but not for both.
 
Old 10-09-2013, 05:30 AM   #14
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
just one more time: if you continue using that partition for oracle all the data on /u07 will be lost. Forever. There is no way to keep them, save it before continuing!
 
Old 10-09-2013, 06:27 AM   #15
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi

Thanks a lot. Its done and your saying previous data will be lost correct. And please confirm can i revert back to use it as a filesystem as before..?

But as asm disk whatever data am going to store will be retained correct.

Thanks,
Shubha
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gparted merging unallocated to linux patition bengalman211 Linux - Newbie 10 09-02-2013 07:46 PM
[SOLVED] Tell what number and disk a patition is in. Zssfssz Linux - General 2 10-30-2011 12:52 AM
How to install Linux in drive which is patition by Partition Magic acv Linux - Newbie 1 09-03-2008 03:44 AM
HELP i need to see my Linux Patition from windows ... how can i do it ??? tranquil.au Slackware 11 01-11-2004 06:27 PM
Accessing FAT32 patition henry_s Linux - Newbie 2 10-26-2003 05:57 PM


All times are GMT -5. The time now is 03:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration