- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how to repalce bad disk and create device file...
Operating System - Linux
1754021
Members
7765
Online
108811
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2008 02:48 AM
04-18-2008 02:48 AM
how to repalce bad disk and create device file in linux red hat 4.5
I have a proliant server with Linux Operating system and a software RAID 1 configuration.
I want to replace a bad disk with a new one.
Before Removing the disk physically i have executed the following in order to remove it from the raid configuration:
# mdadm /dev/md0 -f /dev/sda1 --remove /dev/sda1
The disk was removed successfully.
When I insert the new disk, i can't open it using "# fdisk /dev/sda" command. I receive the following message:
unable to open /dev/sda
I am trying to create new device file for this disk using "MAKEDEV " command but it won't work.
If i try to restart the server it will not boot until I physically remove the new disk from the enclosure and reboot or until i boot in rescue mode and create on it new partition (boot partition) and reboot.
How can i replace a faulty disk under linux with sotware RAID 1 configuration ?
I want to replace a bad disk with a new one.
Before Removing the disk physically i have executed the following in order to remove it from the raid configuration:
# mdadm /dev/md0 -f /dev/sda1 --remove /dev/sda1
The disk was removed successfully.
When I insert the new disk, i can't open it using "# fdisk /dev/sda" command. I receive the following message:
unable to open /dev/sda
I am trying to create new device file for this disk using "MAKEDEV " command but it won't work.
If i try to restart the server it will not boot until I physically remove the new disk from the enclosure and reboot or until i boot in rescue mode and create on it new partition (boot partition) and reboot.
How can i replace a faulty disk under linux with sotware RAID 1 configuration ?
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2008 07:23 AM
04-18-2008 07:23 AM
Re: how to repalce bad disk and create device file in linux red hat 4.5
You are using software RAID 1, but what's the disk controller hardware?
If it is a SmartArray, you must use SmartArray configuration tools (I prefer hpacucli) to tell the controller you wish to use the disk as a simple stand-alone disk. That should make the disk available to the kernel.
Other disk controllers may require something else.
After that, you'll need to partition the disk and rejoin it to the md0 configuration. Finally you must make sure the new disk is bootable, as the Master Boot Record is outside any partition and will not be mirrored with your md0 configuration.
The use of MAKEDEV is not necessary with RHEL4: it has a 2.6 series kernel, which uses a dynamic /dev filesystem (udev) as a standard feature. The device file should automatically appear as the Linux kernel detects a new disk.
However, it may not appear as /dev/sda but some other /dev/sd* device, as the kernel may notice that the new disk is not actually the same disk as the old /dev/sda. This is not a problem: Linux software RAID can handle device name changes quite well. The device naming will return to normal after a reboot.
MK
If it is a SmartArray, you must use SmartArray configuration tools (I prefer hpacucli) to tell the controller you wish to use the disk as a simple stand-alone disk. That should make the disk available to the kernel.
Other disk controllers may require something else.
After that, you'll need to partition the disk and rejoin it to the md0 configuration. Finally you must make sure the new disk is bootable, as the Master Boot Record is outside any partition and will not be mirrored with your md0 configuration.
The use of MAKEDEV is not necessary with RHEL4: it has a 2.6 series kernel, which uses a dynamic /dev filesystem (udev) as a standard feature. The device file should automatically appear as the Linux kernel detects a new disk.
However, it may not appear as /dev/sda but some other /dev/sd* device, as the kernel may notice that the new disk is not actually the same disk as the old /dev/sda. This is not a problem: Linux software RAID can handle device name changes quite well. The device naming will return to normal after a reboot.
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP