/////////////////////////////////////////////////////////// 阿里云数据盘挂载 /////////////////////////////////////////////////////////// [root@AY12100412561422d6588 dev]# mount xvdb /cds [root@AY12100412561422d6588 dev]# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 20G 4.1G 16G 21% / tmpfs 245M 0 245M 0% /dev/shm /dev/xvdb 30G 173M 28G 1% /cds [root@AY12100412561422d6588 dev]# file -s xvdb xvdb: Linux rev 1.0 ext3 filesystem data (needs journal recovery) (large files) [root@AY12100412561422d6588 dev]# file -s xvda1 xvda1: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs) [root@AY12100412561422d6588 dev]# file -s xvda2 xvda2: Linux/i386 swap file (new style) 1 (4K pages) size 122623 pages Label SWAP [root@AY12100412561422d6588 dev]#
///////////////////////////////////////////////////////////// 初始化数据盘文件系统 [root@AY12100412561422d6588 dev]# mkfs.ext3 /dev/xvdb mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 1966080 inodes, 7864320 blocks 393216 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 240 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000
Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 38 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
////////////////////////////////////////////////////////////////////////// 挂载阿里数据盘
[root@AY12100412561422d6588 dev]# mount xvdb /cds [root@AY12100412561422d6588 dev]# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 20G 4.1G 16G 21% / tmpfs 245M 0 245M 0% /dev/shm /dev/xvdb 30G 173M 28G 1% /cds
|