说明:存储上划分1T空间给SuSe 11g的系统使用,先扫描磁盘,然后按照处理CentOS的常规思维操作,分好区,然后使用ext4文件系统进行格式化,然后挂载到/data目录下:

扫描磁盘:
DYDMSAPTS01:/sys/class/scsi_host # echo "- - -" > /sys/class/scsi_host/host0/scan
DYDMSAPTS01:/sys/class/scsi_host # echo "- - -" > /sys/class/scsi_host/host1/scan
DYDMSAPTS01:/sys/class/scsi_host # echo "- - -" > /sys/class/scsi_host/host2/scan
DYDMSAPTS01:/sys/class/scsi_host # fdisk -l
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005ebf5
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     4192255     2095104   82  Linux swap / Solaris
/dev/sda2   *     4192256   125829119    60818432   83  Linux
Disk /dev/sdb: 1099.5 GB, 1099511627776 bytes
255 heads, 63 sectors/track, 133674 cylinders, total 2147483648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
DYDMSAPTS01:/sys/class/scsi_host # fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x71a04ea5.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sdb: 1099.5 GB, 1099511627776 bytes
255 heads, 63 sectors/track, 133674 cylinders, total 2147483648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x71a04ea5
   Device Boot      Start         End      Blocks   Id  System
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4, default 1): 1
First sector (2048-2147483647, default 2048): 按回车键
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-2147483647, default 2147483647): 
Using default value 2147483647
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.

挂载磁盘分区:

DYDMSAPTS01:/ # mount /dev/sdb1 /data/
mount: warning: /data/ seems to be mounted read-only.
查找资料:
suse 建议使用EXT3或brtfs文件系统,ext4只读只是为了数据迁移的需要
于是,重新将分区重新格式化为ext3,然后重新进行挂载
DYDMSAPTS01:~ # partprobe 
DYDMSAPTS01:~ # mount /dev/sdb1 /data/
DYDMSAPTS01:/ # df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        58G   21G   38G  36% /
udev            3.9G   88K  3.9G   1% /dev
tmpfs           3.9G  8.0K  3.9G   1% /dev/shm
/dev/sdb1      1008G  200M  957G   1% /data

查看分区,发现1个T的数据,只有957G可以用,linux的硬盘分区程序会自动为root或指定的用户保留一定的磁盘空间默认是5%,在较大的分区或是不重要的分区上这种设置会占据过多不必要的空间(都是白花花的银子啊!)

处理方法:

DYDMSAPTS01:/data # tune2fs -m 0 /dev/sdb1
tune2fs 1.41.9 (22-Aug-2009)
Setting reserved blocks percentage to 0% (0 blocks)
DYDMSAPTS01:/data # df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        58G   21G   38G  36% /
udev            3.9G   88K  3.9G   1% /dev
tmpfs           3.9G  8.0K  3.9G   1% /dev/shm
/dev/sdb1      1008G  200M 1008G   1% /data

再次查看,保留空间就消失了,又为公司省了不少磁盘空间