LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 10-28-2009, 10:00 PM   #1
lowsy
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Rep: Reputation: 0
Smile Create mount point for unused space.


Hi
My current pc running on LINUX raid 1 with both 80bg hdd, the /dev/md0 is growing. Either
a) I need to create another mount point to utilise the space.
How i do this ?
OR
b) Clone the existing 80gb with 250gb, so /dev/mdo got more space?
Pls advise...thanks thanks.

# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 20161084 15577508 3559440 82% /
/dev/md1 2015952 41624 1871920 3% /boot
none 1032184 0 1032184 0% /dev/shm
/dev/md2 5036160 972840 3807496 21% /home
/dev/md3 10080428 1665008 7903356 18% /usr
/dev/md4 5036160 166468 4613868 4% /var

Filesystem Size Used Avail Use% Mounted on
/dev/md0 20G 15G 3.4G 82% /
/dev/md1 2.0G 41M 1.8G 3% /boot
none 1008M 0 1008M 0% /dev/shm
/dev/md2 4.9G 951M 3.7G 21% /home
/dev/md3 9.7G 1.6G 7.6G 18% /usr
/dev/md4 4.9G 163M 4.5G 4% /var
 
Old 10-28-2009, 11:25 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993
According to this
Quote:
/dev/md0 20G 15G 3.4G 82% /
you've got n x 20G disks in md0 (RAID 1), but your first sentence says the hdds are 80G.
Which is it?
If the disks are really 80G, but you've only set the fs to be 20G, you'll need the resize2fs cmd to expand the fs eg

resize2fs -p /dev/md0

http://linux.die.net/man/8/resize2fs
 
Old 10-29-2009, 12:25 AM   #3
lowsy
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your reply and sorry if i'm confuse you.
I meant the whole hdd is 80gb and partition into root,boot,var,usr,home & dev. Now /dev/md0 is going to full. So i'm thinking if my hdd still got space possible i create another mount point or clone whole 80gb to another hdd 250gb ?


#fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 255 2048256 fd Linux raid autodetect
/dev/sda2 256 2805 20482875 fd Linux raid autodetect
/dev/sda3 2806 4080 10241437+ fd Linux raid autodetect
/dev/sda4 4081 9729 45375592+ 5 Extended
/dev/sda5 4081 4717 5116671 fd Linux raid autodetect
/dev/sda6 4718 5354 5116671 fd Linux raid autodetect
/dev/sda7 5355 5864 4096543+ fd Linux raid autodetect
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 255 2048256 fd Linux raid autodetect
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md5 doesn't contain a valid partition table
Disk /dev/md4 doesn't contain a valid partition table
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md3 doesn't contain a valid partition table
/dev/sdb2 256 2805 20482875 fd Linux raid autodetect
/dev/sdb3 2806 4080 10241437+ fd Linux raid autodetect
/dev/sdb4 4081 9729 45375592+ 5 Extended
/dev/sdb5 4081 4717 5116671 fd Linux raid autodetect
/dev/sdb6 4718 5354 5116671 fd Linux raid autodetect
/dev/sdb7 5355 5864 4096543+ fd Linux raid autodetect
Disk /dev/md0: 20.9 GB, 20974338048 bytes
2 heads, 4 sectors/track, 5120688 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md5: 4194 MB, 4194762752 bytes
2 heads, 4 sectors/track, 1024112 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md4: 5239 MB, 5239341056 bytes
2 heads, 4 sectors/track, 1279136 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2: 5239 MB, 5239341056 bytes
2 heads, 4 sectors/track, 1279136 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md3: 10.4 GB, 10487136256 bytes
Disk /dev/md1 doesn't contain a valid partition table
2 heads, 4 sectors/track, 2560336 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1: 2097 MB, 2097348608 bytes
2 heads, 4 sectors/track, 512048 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
 
Old 10-29-2009, 11:16 PM   #4
lowsy
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Anyone can assist me ? Thanks for your early feedback.

[QUOTE=lowsy;3736146]Thanks for your reply and sorry if i'm confuse you.
I meant the whole hdd is 80gb and partition into root,boot,var,usr,home & dev. Now /dev/md0 is going to full. So i'm thinking if my hdd still got space possible i create another mount point or clone whole 80gb to another hdd 250gb ?


#fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 255 2048256 fd Linux raid autodetect
/dev/sda2 256 2805 20482875 fd Linux raid autodetect
/dev/sda3 2806 4080 10241437+ fd Linux raid autodetect
/dev/sda4 4081 9729 45375592+ 5 Extended
/dev/sda5 4081 4717 5116671 fd Linux raid autodetect
/dev/sda6 4718 5354 5116671 fd Linux raid autodetect
/dev/sda7 5355 5864 4096543+ fd Linux raid autodetect
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 255 2048256 fd Linux raid autodetect
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md5 doesn't contain a valid partition table
Disk /dev/md4 doesn't contain a valid partition table
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md3 doesn't contain a valid partition table
/dev/sdb2 256 2805 20482875 fd Linux raid autodetect
/dev/sdb3 2806 4080 10241437+ fd Linux raid autodetect
/dev/sdb4 4081 9729 45375592+ 5 Extended
/dev/sdb5 4081 4717 5116671 fd Linux raid autodetect
/dev/sdb6 4718 5354 5116671 fd Linux raid autodetect
/dev/sdb7 5355 5864 4096543+ fd Linux raid autodetect
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding space to root mount point divyashree Linux - Enterprise 8 07-05-2009 04:43 AM
Mount point space jayraj005 General 15 05-29-2009 08:31 AM
Increase space for mount point . . . eng_mohammedmostafa Linux - Software 7 03-26-2009 12:12 AM
Need more space to a mount point salmjuh Linux - Software 0 10-18-2004 05:03 AM
I need to reallocate drive space from mount point / to /boot decampbell1 Linux - Newbie 7 01-08-2004 02:34 PM


All times are GMT -5. The time now is 11:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration