Drive Corrupt, Recovery From 2nd Drive Mount

Feb 16, 2007

Primary drive (centos/cpanel) is corrupt

The server is displaying these errors when I tried to do an FSCK:
Bad inode IO
ext3-fs error (device(8,3)) IO Failure

I am having a new primary installed and old primary set as 2nd drive. I need to recover the cpanel domain accounts from this 2nd drive after I mount it with the method below:

mkdir /backup
mount /dev/sdb1 /backup

However, how do I actually recover these accounts in an automated process via whm? I've done this before with the same matter (corrupt primary drive, mount as 2nd, etc) but cannot exactly remember the proper steps.

View 14 Replies


ADVERTISEMENT

Drive Corrupt - Should I Ask For New Drive Or Reimage

Jul 9, 2007

I have a dedicated box and I started getting Input/output errors today.

I tried:
# fsck
fsck 1.40-WIP (14-Nov-2006)
e2fsck 1.40-WIP (14-Nov-2006)
/dev/hda2: recovering journal
fsck.ext3: unable to set superblock flags on /dev/hda2

then I tried:
# fsck -a -t ext3 /dev/hda2
fsck 1.40-WIP (14-Nov-2006)
/dev/hda2: recovering journal
fsck.ext3: unable to set superblock flags on /dev/hda2

My data is backed up, so was going to ask for a reimage, but is this an indication of bad hardware? Should I ask for a replacement drive? Is there anything else I should try on my own before going to the host?

View 6 Replies View Related

Corrupt O/s, Need To Restore From Original Drive

Mar 26, 2007

O/S was corrupt so I had to do a reload on a new drive. I'm trying to mount original drive (already connected as 2nd) but it is not showing up in df -h


Code:
root@server080 [~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 145G 2.5G 135G 2% /
/dev/sda1 99M 12M 83M 12% /boot
none 252M 0 252M 0% /dev/shm
/usr/tmpDSK 485M 11M 449M 3% /tmp
/tmp 485M 11M 449M 3% /var/tmp
/dev/sdb1 99M 12M 83M 12% /backup
root@server080 [~]# e2label /dev/sdb1
/boot1

root@server080 [~]# dumpe2fs /dev/sdb1 | grep -i superblock
dumpe2fs 1.35 (28-Feb-2004)
Primary superblock at 1, Group descriptors at 2-2
Backup superblock at 8193, Group descriptors at 8194-8194
Backup superblock at 24577, Group descriptors at 24578-24578
Backup superblock at 40961, Group descriptors at 40962-40962
Backup superblock at 57345, Group descriptors at 57346-57346
Backup superblock at 73729, Group descriptors at 73730-73730

/etc/fstab shows


Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
/dev/hda /media/cdrom auto pamconsole,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0

View 1 Replies View Related

Linux Hard Drive Recovery

Aug 2, 2008

I have my backup disks here because my server got hacked and we didn't like how liquidweb made the things. So we ask them to ship us the disk. They ran photorec and they got lots of .gz files from it. All accounts I would say. But 50% of them the .tar.gz files came corrupt. And is lefting all the big accounts and until now I haven't seen any corrupted file that came with MySQL. And I think MySQL is most important to all clients.

View 5 Replies View Related

Data Recovery :: Hard Drive Corrupted

Apr 18, 2008

We've a hard drive corrupted.

So we can't even access as a mount point putting it as secondary hdd.

So I'm looking good data recovery services based on US, nearest as possible from Layeredtech, so I can send that disk for recovery.

View 1 Replies View Related

How To Mount The Secondary Drive

Mar 29, 2009

The problem is that my hd is failed. Hoster setup new server, also installed the secondary drive but not mounted. So need advice how can i get my data off it?

View 3 Replies View Related

Is It Ok To Mount 2nd Drive To /home

Apr 15, 2008

Is it ok to mount 2nd drive after /home directory?
example: /home/user/backup

I'm not running any webhost server or mail server, just pure file server. The reason is because I want to have more space 80GB+80GB =160GB

View 14 Replies View Related

Mount A Drive On Boot

Jul 17, 2008

I have a NAS to mount but it disappears on every (re)boot. How do I automatically mount it on boot?

View 4 Replies View Related

Mount Windows Drive In Linux, Bad Performance

Mar 8, 2008

Since my linux server is out of disk space, I just use cifs to mount some drives from the windows server for people to download files (usually 100-200mb/file).

But I found the performance is not good. For example, I need to wait for a long time before the download process begin. Also, it seems the load average of the server becomes high too.

Is there any suggestion? Should I mount the windows drives through cifs? Or should I change to another server which allow me to add more local harddisks? How about if I mount drives in other linux machine, will the performance better?

View 1 Replies View Related

Data Lost , But Still Have Old Home Drive , How To Copy To New Drive

Jan 26, 2007

1- i did Os Reload with new Hard drive for "home"
2- data "backups" drive lost

3- replaced the old home drive as "/old drive"

4- " /old drive " is now the secondry drive in my server and it has the all sites usres and evry thing

5- what i need , to trasfer, copy this sites from " /old drive " to "home"

but data center said

The /olddrive/home directory contains the contents that were previously in the /home directory. You can copy files from this directory to any other directory on your server.

The command to copy files in the UNIX environment is the "cp" command.

The user directories in /olddrive/home directory contain the web page files for the users. However, simply copying the contents over will not recreate the users or domain entries in DNS/httpd. If you wish these back you will need to recreate them manually or restore them from backups.

View 14 Replies View Related

How To Copy My Current Drive Contents To A New Drive

Dec 28, 2007

I just purchased a brand new 10K 150GB drive. How can I take an exact copy of my current drive and transfer everything over to the new drive? I think I need to create a snapshop, or mirror it somehow.

What software will do this? I was told trueimage, but its very pricy, is there anything else?

View 8 Replies View Related

Mirror Drive A > Drive B

Feb 6, 2007

I have a Win2K3 server which has 2 hard drives. I was considering backup options and I thought that I might try mirroring Drive A ==> Drive B. I would think that, then, if Drive A has a hardware failure, I could simply switch Drive B into the Primary slot (A) and the server would continue to hum along as nothing has happened. This would reduce the downtime, hopefully.

I have 3 questions.

1. Is this idea practical (will it work)?
2. What is a good software program to use fto handle the mirroring?
3. Any considerations, warnings, technical advice in regard to this method?

View 4 Replies View Related

How To Check If The HD Is SSD Drive

Jun 11, 2009

how to check using SSH if the HD is SSD drive in a linux box?

View 1 Replies View Related

Drive Partitioning

Nov 4, 2009

I've got another server comming online shortly which will be used for shared hosting. A Q9550, 8 GB DDRs, 2 1 TB SATA drives in RAID 1. I know everyone has different opinions and reasons for their partitioning decisions, so I wanted to get a feel on how you would partition the drives durring setup, and why you would do it the way you do.

View 4 Replies View Related

Best Drive Configuration

Oct 23, 2009

I need your opinion on the best drive configuration for my Dell poweredge 2850 dual 3.0.

I have 6 x 72gb scsi 10k hds, and perc4 raid in server. My os will be Cent os with 4 gigs of ram installed. I want to try to make this server as redundant as possible.

Offsite backup is also in plans. I’m going to use this server for a few sites (5 - 10) that are db driven, and host small video clips as Dolphin Smart Community. Server will be colocated. Please let me know if missed something .

View 6 Replies View Related

Usb Hard Drive

Oct 3, 2008

how they sell those usb hard drives that connect to the computer that can hold like 100 gb's.....

well if i hook up one of those external hard drives to my server can i use it as webspace for users?

View 14 Replies View Related

How To Partition Drive

Mar 28, 2008

im assembling my server now....waiting on the 90degree connectors. It is as follows:

SUPERMICRO CSE-512L-260B Black 14" Mini 1U Server Case
ASUS M2N-MX SE Plus AM2+/AM2 NVIDIA GeForce 6100 Micro ATX AMD Motherboard
AMD Athlon 64 X2 4200+ Brisbane 2.2GHz Socket AM2 65W Dual-Core Processor
Dynatron A48G 70mm 2 Ball CPU Cooler - Retail
2gb ddr2 6400 ram
Seagate 500gb 7200.11 32mb hdd
WD 37gb raptor 10k rpm

the wd drive was lying around the house so i figured id add it since i had an extra slot and figured the speed wouldnt hurt.

My question is....how should i partition the drives.? I have 500+gb of space on 2 hard drives. I plan on using centos 5.1 and am downloading the iso now.

View 1 Replies View Related

2nd Hard Drive

Jul 26, 2008

Now iam useing 320Gig SATA harddrive as my primary hard drive,i dont use 2rd harddrive,iam haveing pure download site,in TOP command 4.5%wa is this bit high? or can i add 2rd harddisk and move some data to there to reduce wa,but my load of the server is fine or any way to reduce wa?

View 1 Replies View Related

Hard Drive

Jun 11, 2007

I am running a Fedora box with cPanel...

The hard drive has a capacity of 36 gigs and there's currently 18 GIGs of data on it.

When I do "df -h", it indicates that / has 85% of it's capacity in use. When I run "df -hi" it shows that / has 58% of it's inodes in use.

Is there anything I can do to increase /'s capacity? Can I free up some inodes? All that / contains are folders.

View 4 Replies View Related

Is This Drive Failing

Sep 13, 2007

Just got this server setup, getting some smart errors. Here's a copy of the trouble ticket I posted to the host, they said "If you read through the documentation for smartd you will find that from the results you pasted, your hard disk passed every test. We can give you another hard disk if you want but we will have to charge you 3 credits for the reinstall of the operating system." I could be wrong, maybe everything's fine, but the fact that there are unreadable sectors reported has me a little worried.

Quote:

What is the nature of the problem?

New server, hard drive failing smart tests

What is the error message?

Sep 12 17:51:43 sls-db8p19 smartd[3312]: Device: /dev/hda, found in smartd database.
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Device: /dev/hda, is SMART capable. Adding to "monitor" list.
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Monitoring 1 ATA and 0 SCSI devices
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Device: /dev/hda, 2 Currently unreadable (pending) sectors
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Sending warning via mail to root ...
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Warning via mail to root: successful
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Device: /dev/hda, 2 Offline uncorrectable sectors
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Sending warning via mail to root ...
Sep 12 17:51:44 sls-db8p19 smartd[3312]: Warning via mail to root: successful

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 066 062 006 Pre-fail Always - 78282665
3 Spin_Up_Time 0x0003 098 097 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 19
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 2
7 Seek_Error_Rate 0x000f 075 060 030 Pre-fail Always - 29797813
9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1175
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 27
194 Temperature_Celsius 0x0022 030 048 000 Old_age Always - 30
195 Hardware_ECC_Recovered 0x001a 066 062 000 Old_age Always - 78282665
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 2
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 2
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0

Was it working before?

No, brand new server

If it was working before, did you do anything before this error occurred?

N/A

Have you done anything after this error occurred?

View 1 Replies View Related

Backup Drive

Aug 21, 2007

I use the second hard drive as backup drive. Today as normal i check the backup directory and try to use ls command. I got this warning
[root@xxxxxx backup]# ls

ls: reading directory .: Input/output error

View 14 Replies View Related

Setting Vps On 2nd Drive

May 3, 2007

I want to start selling vps to customers but don't want to over load my existing drive/ server would it be beneficial to sell vps off a second drive so im keeping my shared hosting separate from the vps hosting

View 5 Replies View Related

Can Not Remove Second Drive

Sep 4, 2007

My server has 2 drives,one is backup drive. The backup drive seem to be failing so i decide to remove it. However when i remove it,the system can not boot. ANyone got this issue?

View 14 Replies View Related

Map Network Drive FAILS

Jun 18, 2007

I have to transfer files from the network computers on the server and make a db .

I have read bugs.php.net 1

and bugs.php.net 2

all the computers from my network are apple.

when I make MAP NETWORK DRIVE and make the php.ini include_path changes, i don't get nothing.

View 0 Replies View Related

Map Network Drive By Using Samba

Jun 30, 2005

This is a little samba guide from my own experiences of how to map a network drive under windows 2000 to a Linux server. I am not technical expert and this guide is the result from my trail and error.

What's Samba?

Samba allows Linux computers to share files and printers across a network connection. By using its SMB protocol, your Linux box can appear in Windows Network Neighborhood or My Network Places just like any other windows machine. You can share files this way, as well as printers. By using samba on my home network, for example, my Windows machines have access to a printer directly hooked up to my Linux box, and my Linux box has access to a printer directly hooked up to one of my Windows machines. In addition, everyone can access everyone else's shared files. You can see how samba can be very useful if you have a network of both Windows as well as Linux machines.

My OSs

Windows 2000
RHEL 3 (Redhat Enterprise Linus)

My goal

Map a network drive to Linux servers, so that I can access the Linux files under windows 2000.

Installation

Most Linux should have Samba already installed. But if it hasn't install, you can find at in http://rpmfind.net or using up2date command "up2date -i samba". You can also get it at http://www.samba.org

Then you can install it by tying the following Command:

Install:

rpm -i samba.rpm

Upgrade:

rpm -U samba.rpm

Configuration

Samba conf file is located at /etc/samba/smb.conf, allows you to specify which resources on the Linux machine you wish to share and who they can be accessed by.

Samba provide a full version conf if it's fresh install. But most of the times, we don't really need all of these options. So I provide my own conf here, which is rather simple, but it makes things work.

[global]
workgroup = WORKGROUP
server string = LinuxBOX
hosts allow = your_windows_machine_IP
log file = /var/log/samba/%m.log
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[Downloads]
comment = Downloads
path = /path_to_your_sharefolder
browseable = yes
writable = yes
public = yes
read only = no

[homes]
comment = My Home Directory
browseable = yes
writable = yes
public = yes
read only = no

[printers]
path = /var/spool/samba
public = yes
guest ok = yes
printable = yes
browseable = yes
writable = yes
read only = no

Just replace workgroup to your windows workgroup name, your_windows_machine_IP and /path_to_your_sharefolder. If you don't need printers sharing, you don't need to have printer section.

Setup Samba Users

Since we're using user level security, we need to setup samba users. This can be easily done by using Webmin. You can go to Server --> Samba --> Convert Unix users to Samba users, you can just covert all your existing Linux users and set them password under the icon "Edit Samba users and passwords" later.

If you don't use webmin, you can also type the following command:

cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

smbpasswd username

Replace username with each of your user's usernames. You will then be prompted to enter a password for this user account.

Samba Service

Now, it's time to start your samba server:

service smb start
service smb stop
service smb restart

Once the computer is restarted or shutdown, the samba service won't start up again in next boot up. I use webmin to make it startup at boot time.

Windows 2000 Configuration

1. Under windows 2000, you can got to windows explorer --> Tools --> map a network drive
2. select drive letter
3. enter the path (e.g. your_server_ipDownloads)
4. click connect using different user name
5. enter your samba usernaem and password that you just set
6. You can connect to your Linux machine now!

This method work for me. If there is any correction or improvements, please let me know.

View 0 Replies View Related

Linux Setting Up Second Drive

Jun 28, 2007

I'm a little familiar with Linux, but I need help setting up a second drive that is in the server I'm leasing from Layered Technologies. It's a self-managed server so they won't even TELL me how to do it.

I need to format the drive and mount it as /backup so I can setup WHM/Cpanel to use it for backups.

What commands do I need to type to format the drive with the right kind of partition and mount it as /backup?

View 2 Replies View Related

Enabling DMA Mode On IDE Drive

Apr 23, 2009

I cannot enable DMA mode on /dev/hda when attemping to enable it via ssh

Code:
hdparm -d1 /dev/hda
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

Code:
hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 1632 MB in 2.00 seconds = 814.90 MB/sec
Timing buffered disk reads: 8 MB in 3.42 seconds = 2.34 MB/sec
I am running CentOS 4.7 and cPanel 11. cPanel also shows DMA is not enable on this drive. Kernel: 2.6.9-78.0.13.ELsmp

Code:
cat /boot/config-2.6.9-78.0.13.ELsmp |grep DMA
CONFIG_GENERIC_ISA_DMA=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_HPT34X_AUTODMA is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
CONFIG_PDC_ADMA=m

Code:
hdparm -i /dev/hda
/dev/hda:
Model=WDC WD2500JB-00REA0, FwRev=20.00K20, SerialNo=WD-WMAN542173
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: device does not report version:
* signifies the current active mode

View 8 Replies View Related

Failing Controller Or Drive

Mar 28, 2009

one of my servers has 2x250gb hard drives in hardware RAID 0 using a 3ware controller, but ive now got the following error message 3 times prior to 3 server crashes, my server supplier beleves it one of the drives failing (i have backups on a non raid drive so rthats fine) but i suspect the controller, whats everyone else think...

Code:
Mar 28 22:41:46 server kernel: sd 2:0:0:0: WARNING: Command (0x2a)
timed out, resetting card.
Mar 28 22:42:39 server kernel: 3w-xxxx: scsi2: Command failed: status
= 0xc7, flags = 0x1b, unit #0.
Mar 28 22:43:08 server kernel: 3w-xxxx: scsi2: Command failed: status
= 0xc7, flags = 0x1b, unit #0.
Mar 28 22:43:12 server kernel: 3w-xxxx: scsi2: AEN: WARNING: ATA port
timeout: Port #1.

View 2 Replies View Related

Hard Drive Failure

Apr 19, 2009

I just received:

[cPanel smartcheck] Possible Hard Drive Failure Soon

ATA Error Count: 1512 (device log contains only the most recent five errors)
Error 1512 occurred at disk power-on lifetime: 11736 hours (489 days + 0 hours)
Error 1511 occurred at disk power-on lifetime: 11736 hours (489 days + 0 hours)
Error 1510 occurred at disk power-on lifetime: 11736 hours (489 days + 0 hours)
Error 1509 occurred at disk power-on lifetime: 11736 hours (489 days + 0 hours)
Error 1508 occurred at disk power-on lifetime: 11736 hours (489 days + 0 hours)
----END /dev/sda--

What do you advice me to do? ask the DC to change the Hard Drive or wait till damaged?

I already have a weekly external Backup.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved