全球主机交流论坛

标题: 独服如何查看有没有raid0呢? [打印本页]

作者: pcu84424    时间: 2010-12-24 00:24
标题: 独服如何查看有没有raid0呢?
joe的独服说是有两块120G硬盘,但是一直只能看到一块. 发tk弄了好久今天说解决了. 但是不知道是不是给做成raid了啊. 如何才能查看raid的信息呢? google了几个不过看不懂

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1             109G   27G   77G  26% /
none                  229M  184K  229M   1% /dev
none                  233M     0  233M   0% /dev/shm
none                  233M   60K  233M   1% /var/run
none                  233M     0  233M   0% /var/lock
none                  233M     0  233M   0% /lib/init/rw
none                  109G   27G   77G  26% /var/lib/ureadahead/debugfs

lspci | grep RAID
00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)

cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: Maxtor 7L250R0   Rev: BAJ4
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: ST3120827AS      Rev: 3.42
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: ST3120827AS      Rev: 3.42
  Type:   Direct-Access                    ANSI  SCSI revision: 05
作者: 卡恩    时间: 2010-12-24 00:32
DD
作者: domin    时间: 2010-12-24 01:58
fdisk -lu
作者: Poison    时间: 2010-12-24 02:01
木有玩过RAID

[ 本帖最后由 ssh 于 2010-12-24 02:43 编辑 ]
作者: domin    时间: 2010-12-24 02:08
原帖由 pcu84424 于 2010-12-24 00:24 发表
joe的独服说是有两块120G硬盘,但是一直只能看到一块. 发tk弄了好久今天说解决了. 但是不知道是不是给做成raid了啊. 如何才能查看raid的信息呢? google了几个不过看不懂

df -h
Filesystem            Size  Used Ava ...


不过看起来你的机器有三个硬盘的样子
作者: inla    时间: 2010-12-24 04:14
木有玩过RAID
作者: pcu84424    时间: 2010-12-24 04:22
update
joe回复了, 不是raid, 让我用fdisk -l来查看,我看来下不过看不懂,谁帮忙看下.


fdisk -l

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x88868886

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       30515   245007315   8e  Linux LVM

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00002814

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       14420   115825664   83  Linux
/dev/sdb2           14420       14594     1392641    5  Extended
/dev/sdb5           14420       14594     1392640   82  Linux swap / Solaris

Disk /dev/sdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8b358b35
作者: king_bette    时间: 2010-12-24 04:39
给了你3块硬盘,
一块250G, 2块120G
赚了
作者: pcu84424    时间: 2010-12-24 04:59
没这种好事吧,那为什么我df -h得到的不一样呢

root@ubuntu:/var/www/dunim# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdb1            114007680  27446156  80770244  26% /
none                    234072       184    233888   1% /dev
none                    238268         0    238268   0% /dev/shm
none                    238268        60    238208   1% /var/run
none                    238268         0    238268   0% /var/lock
none                    238268         0    238268   0% /lib/init/rw
none                 114007680  27446156  80770244  26% /var/lib/ureadahead/debugfs
作者: king_bette    时间: 2010-12-24 05:18
要重新格式化sda和sdc
作者: pcu84424    时间: 2010-12-24 08:14
原帖由 king_bette 于 2010-12-24 05:18 发表
要重新格式化sda和sdc

能教一下完整的命令吗? 格硬盘有点不敢啊,万一错了我的数据就完了多谢
作者: vnconfig    时间: 2010-12-24 11:59
标题: 回复 11# 的帖子
备份,然后爱咋格咋格。只要 (1) 你的备份是安全的,并且 (2) 让技术支持帮你恢复是免费的。




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4