LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-11-2005, 10:08 AM   #1
mailnickykav
LQ Newbie
 
Registered: Feb 2005
Posts: 16

Rep: Reputation: 0
URGENT:Adding new disk to raid


Hi All,
I have a linux machine which is a backup server and is running out of space.

this has 2 hard disks (phisical volumes... sda and sdb), please see output of fdisk command below:

[root@support /]# fdisk -l

Disk /dev/sda: 254 heads, 63 sectors, 2221 cylinders
Units = cylinders of 16002 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 8 13 48006 83 Linux
/dev/sda2 14 332 2552319 83 Linux
/dev/sda3 333 2221 15113889 5 Extended
/dev/sda4 1 7 55975+ fe LANstep
/dev/sda5 333 398 528034+ 82 Linux swap

Partition table entries are not in disk order

Disk /dev/sdb: 254 heads, 63 sectors, 8885 cylinders
Units = cylinders of 16002 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 2622 20978590+ 83 Linux
/dev/sdb2 2623 3933 10489311 83 Linux
/dev/sdb3 3934 6555 20978622 83 Linux
/dev/sdb4 6556 8885 18642330 5 Extended
/dev/sdb5 6556 7866 10489279+ 83 Linux
/dev/sdb6 7867 8522 5248624+ 83 Linux
/dev/sdb7 8523 8885 2904331+ 83 Linux
[root@support /]#

I want to create new partitions but the problem is that i have run out of space on the disk. (i get the error no free sectors available).

I physically added a new harddisk of 34 gb into the raid array and ran the IBMs serveraid tool. When i rebooted my machine, i dont see any additional space in the existing partitions, nor do i see any new phisical volumes like /dev/sdc in the fdisk output (the output above is the one i got after a reboot).

Is there some configuration i need to do on the linux side inorder to start using the new disk? Please advice.
 
Old 11-05-2005, 10:00 PM   #2
sammer
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
I also am encountering this problem. Since nobody replied it is probably a quick fix but any clues would be helpful!
 
Old 11-07-2005, 03:27 AM   #3
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
Hi,

I'm totally unfamiliar with your hardware, and I don't know the serveraid program. But...

- When adding a new disk, I would not expect new space to appear in raid arrays. I think LVM needs to be used for that
- I'm a bit confused about the raid part too. You say you have two physical disks. fdisk -l lists two disks. I'm not sure if you even have raid.
- I would expect a new physical volume (/dev/sdc or somesuch) to appear
- fdisk -l isn't showing all disks on my system either, I don't know why
- Apparently, fdisk -l consults /proc/partitions, which correctly lists all my disks. Try
Code:
 grep disc /proc/partitions
- Alternatively, try
Code:
less /var/log/messages
and try to locate the kernel messages that detect the disc. Search for sda for example. My log says:
Code:
Nov  6 13:41:26 fuzzy kernel: hda: attached ide-disk driver.
Nov  6 13:41:26 fuzzy kernel: hda: 40020624 sectors (20491 MB) w/2048KiB Cache, CHS=39703/16/63, UDMA(33)
Nov  6 13:41:26 fuzzy kernel: hde: attached ide-disk driver.
Nov  6 13:41:26 fuzzy kernel: hde: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
Nov  6 13:41:26 fuzzy kernel: hdf: attached ide-disk driver.
Nov  6 13:41:26 fuzzy kernel: hdf: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
Nov  6 13:41:26 fuzzy kernel: hdg: attached ide-disk driver.
Nov  6 13:41:26 fuzzy kernel: hdg: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
Nov  6 13:41:26 fuzzy kernel: hdh: attached ide-disk driver.
Nov  6 13:41:26 fuzzy kernel: hdh: 320173056 sectors (163929 MB) w/8192KiB Cache, CHS=19929/255/63, UDMA(100)
Oh.... Reading manpages usually provides quick hints (like /proc/partitions, above). Very usefull, especally in case of urgent questions.

Groetjes,

Kees-Jan
 
Old 11-07-2005, 12:40 PM   #4
sammer
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Since LVM is not configured or running - I guess I will use Parted to move and expand the current partitions as it seems like the best tool to use for the situation, but check out my hdd partition info below as it seems to create more questions than it answers :-0 . BTW, if anyone has a better way to skin this cat, please let me know. Below is my disk info.

This machine is an IBM x226 running RHES and was loaded by IBM. It came with 1GB of RAM but they only have it about 500MB's of swap and only a couple of hundered MB for /var (that would complicate any serious logging). Also, are those Win95 partitions needed for the serveraid? The linux partitions are within these Win95 partitions. I've never seen this before.
I added the 2 250GB hdd's and extended the RAID with IBM's serveraid. I thought it would extend it's own volume but it only did the physycal part and left me to mess with the partitions (oh yay).
Fileserver HDD info:

----------------------------------------------------------------------------------------
[root@]# more /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/var /var ext3 defaults 1 2
/dev/sda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,r
o 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

----------------------------------------------------------------------------------------
[root@]# /sbin/fdisk -l

Disk /dev/sda: 587.2 GB, 587257085952 bytes
254 heads, 63 sectors/track, 71677 cylinders
Units = cylinders of 16002 * 512 = 8193024 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 641 5128609+ b Win95 FAT32
/dev/sda2 642 651 80010 83 Linux
/dev/sda3 652 35740 280747089 83 Linux
/dev/sda4 35741 35838 784098 f Win95 Ext'd (LBA)
/dev/sda5 35741 35806 528034+ 82 Linux swap
/dev/sda6 35807 35838 256000+ 83 Linux

----------------------------------------------------------------------------------------
[root@]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 264G 229G 22G 92% /
/dev/sda2 76M 15M 58M 21% /boot
none 502M 0 502M 0% /dev/shm
/devsda6 243M 160M 71M 70% /var

----------------------------------------------------------------------------------------
parted:
Using /dev/sda
Information: The operating system thinks the geometry on /dev/sda is
71677/254/63. Therefore, cylinder 1024 ends at 8000.999M.
(parted) print
Disk geometry for /dev/sda: 0.000-560052.000 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 5008.438 primary fat32 boot
2 5008.438 5086.573 primary ext3
3 5086.573 279253.652 primary ext3
4 279253.652 280019.373 extended lba
5 279253.683 279769.341 logical linux-swap
6 279769.373 280019.373 logical ext3
(parted)
 
  


Reply



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
Rescue file from disk - urgent yallu Linux - Software 3 04-18-2005 06:11 AM
URGENT: Hard disk Query mailnickykav Red Hat 4 02-25-2005 01:55 PM
URGENT!!! adding ide(hdb-secondary hard-disk) to redhat 7.1 gigya Linux - Software 3 05-02-2002 04:03 AM
Urgent:installing from hard disk pithan Linux - Software 1 09-06-2001 09:03 AM
URGENT -> Disk Quotas with kernek 2.4 luismi Linux - Networking 2 07-10-2001 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:46 AM.

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
Open Source Consulting | Domain Registration