PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : کمک برای ریکاوری سرور



Faraz4u
November 4th, 2011, 18:32
سلام
من یه مشکلی برای سرورم پیش اومد دیگه boot نمیشد . به پشتیبانی دیتاسنتر گفتم . گفتن که باید ریکاوری کنی
دکمه ریکاوری را از پنل میزنم . بعد به ssh میتونم وصل بشم . بعد از اتصال واقعا نمیدونم باید چی کار کنم

کسی میتونه کمکم کنه؟ یاد بده یا راهنمایی کنه یا انجام بده؟

---------- Post added at 04:47 PM ---------- Previous post was at 04:21 PM ----------

تنها راهنمای من اینه وقتی توی ssh لاگین میکنم توی حالت ریکاوری این میاد
خواهشا اگر کسی چیزی میدونه کمک کنین



Linux zulu607 2.6.32.24+drm33.11-live #1 SMP Sun Dec 19 21:53:27 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04.2 LTS


Welcome to the recovery Linux system!

From here you have access to your all your servers hard drive disks for fixing configuration errors or securing data that is otherwise ina
ccessible.
Before you can access your data you will have to mount the partitions that contain them.

- Determine root (/) partition by using "fdisk -l". The larges partition is commonly the / partition.
- Mount the partition to /mnt, e.g. "mount /dev/sda3 /mnt"
- Finish all the tasks you need to perform on the filesystem
- Leave and unmount the filesystem, e.g. "cd /" and "umount /mnt"
- Cancel the recovery on the Control Panel

Available diagnostic tools:

- memtester <memory in MB> <number of iterations> (Tests memory, chipset, and CPU)
- badblocks <device> (Scans hard drive for bad sectors)
- cpuburn (A CPU stress test)

Installing additional software:
The Recovery rescue system is based on the Ubuntu Linux distribution, therefore software packages can be installed like on any other Ubunt
u system using "apt-get install <package>".

Please note, the recovery system resides solely in a RAM Disk, which is only stored in the servers m
emory.
All changes made to the recovery will be lost after a reboot!


Activating software RAID:

Your server is installed with software RAID1. Before you can access your RAID filesystems as described above, the software RAID needs to b
e started first using the commands below.


mdadm --assemble --run /dev/md0
mdadm --assemble --run /dev/md1


---------- Post added at 05:32 PM ---------- Previous post was at 04:47 PM ----------

دوستان ببخشید من با دیتاسنتر صحبت کردم . گفتن باید fsck کنی
ولی نمیدونم چجوری
میشه کمک کنین؟

این دستور را میزنم این میاد فقط

root@607:~# fsck
fsck from util-linux-ng 2.17.2
root@607:~#

DeltaGostar
November 4th, 2011, 19:14
سلام

شما قبلا که سرورت ران بوده
شما RAID اگر داشته باشید
دو تا هارد داشته است ؟ به صورت تکنولوژی RAID روبروی هم آینه میشدند و هر چه در هارد اول ذخیره میشد در هارد دوم هم ذخیره میشده است . حال اگر هارد اول مشکل بوت خورده است باید مشکل را در بوت لینوکس حل کنید
اگر مشکل در فایل ها دارید باید در واقع هارد اول با هارد دوم عوض شود


mdadm --assemble --run /dev/md0<> mdadm --assemble --run /dev/md1

Faraz4u
November 4th, 2011, 19:19
سلام
بله دو تا هارد داره .
raid هم موقع ریلود سرور روی 1 گذاشتم. ولی نمیدونم آیا خود به خود هر چی توی هارد 1 باشه توی اون یکی هم ذخیره میشه؟ . چون من تنظیم دیگه ای انجام ندادم

دیتاسنتر به من گفت fsck کنم

fsck -y /dev/md0
fsck -y /dev/md1

ولی ارور دارم

root@607:~# fsck -f -c -y /dev/md0
fsck from util-linux-ng 2.17.2
e2fsck 1.41.14 (22-Dec-2010)
fsck.ext2: Invalid argument while trying to open /dev/md0

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

root@607:~#

DeltaGostar
November 4th, 2011, 20:00
بله ذخیر میشه خودکار - این رو شما نباید با دستور خاصی انجام میداید- تکنولوژی RIAD همین خاصیت را دارد
umount /dev/md0
umount /dev/md1

اول دو تا هارد را umount کنید سپس هارد دوم که به نظر میرسه md1 باشید را مانت کنید

ساختار کلی دستور fsck به این صورت است

SYNOPSIS fsck [ -sACVRTNP ] [ -t fstype ] [filesys ... ] [--] [ fs-specific-options ]

---------- Post added at 07:45 PM ---------- Previous post was at 07:29 PM ----------

دارید؟
LVM2 Volumes
VolGroup00
چطور؟
فایل هاتون روی کدوم ولوم است ؟

---------- Post added at 08:00 PM ---------- Previous post was at 07:45 PM ----------


First I add sdb sdc sde fdisk to sdb1 sdc1 sdd1 sde1
then
# mdadm --create --level=5 --raid-devices=4 /dev/sd{b,c,d,e}1
#mkdir /mnt/raid
#mkfs.ext4 /dev/md0
#vi /etc/fstab

add /dev/md0 /mnt/raid ext4 defaults 1 2

after reboot

fsck.ext4: Invalid argument while trying to open 0
/dev/md0:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193
* Fsck could not correct all errors, manual repair needed
[ !! ]
Give root password for maintenance
(or type Control-D for normal startup):

OnlineServer
November 5th, 2011, 11:12
سعی کنید مشکل را برطرف کنید.
اگر مشکل فقط بوته به نظر من kvm بگبربد با rescue گراب را مجددا نصب کنید. ;)