http://linoxide.com/file-system/create-mount-extend-xfs-filesystem/
先在 VC 完成配置 掛載給 guest
然後到
[root@db3 ~]#
fdisk -l
Disk /dev/sdb: 17482.2 GB, 17482234881024 bytes
255 heads, 63 sectors/track, 2125427 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: 0x00000000
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 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: 0x0009d767
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 7833 62401536 8e Linux LVM
Disk /dev/sdc: 171.8 GB, 171798691840 bytes
255 heads, 63 sectors/track, 20886 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: 0x00000000
Disk /dev/mapper/vg_db3-lv_root: 27.4 GB, 27376222208 bytes
255 heads, 63 sectors/track, 3328 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: 0x00000000
Disk /dev/mapper/vg_db3-lv_swap: 33.8 GB, 33848033280 bytes
255 heads, 63 sectors/track, 4115 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: 0x00000000
Disk /dev/mapper/vg_db3-lv_home: 2671 MB, 2671771648 bytes
255 heads, 63 sectors/track, 324 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: 0x00000000
[root@db3 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_db3-lv_root
26315036 10435876 14542432 42% /
tmpfs 33050200 232 33049968 1% /dev/shm
/dev/sda1 495844 38022 432222 9% /boot
/dev/mapper/vg_db3-lv_home
2568144 70116 2367572 3% /home
/dev/sdc 167690240 136033260 31656980 82% /hissp1/temp
/dev/sdb 17070408088 12905911056 4164497032 76% /hissp1/oradbf
f6n1:/exp 21441282048 9812445888 11628836160 46% /exp
[root@db3 ~]#
cd /proc/scsi/sg
[root@db3 sg]#
cat device_hdr devices
host chan id lun type opens qdepth busy online
1 0 0 0 5 1 1 0 1
2 0 0 0 0 1 32 0 1
2 0 1 0 0 1 32 0 1
2 0 2 0 0 1 32 0 1
[root@db3 sg]#
echo "- - -" > /sys/class/scsi_host/host2/scan
[root@db3 sg]#
cat device_hdr devices
host chan id lun type opens qdepth busy online
1 0 0 0 5 1 1 0 1
2 0 0 0 0 1 32 0 1
2 0 1 0 0 1 32 0 1
2 0 2 0 0 1 32 0 1
2 0 3 0 0 1 32 0 1
[root@db3 sg]# fdisk -l
Disk /dev/sdb: 17482.2 GB, 17482234881024 bytes
255 heads, 63 sectors/track, 2125427 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: 0x00000000
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 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: 0x0009d767
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 7833 62401536 8e Linux LVM
Disk /dev/sdc: 171.8 GB, 171798691840 bytes
255 heads, 63 sectors/track, 20886 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: 0x00000000
Disk /dev/mapper/vg_db3-lv_root: 27.4 GB, 27376222208 bytes
255 heads, 63 sectors/track, 3328 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: 0x00000000
Disk /dev/mapper/vg_db3-lv_swap: 33.8 GB, 33848033280 bytes
255 heads, 63 sectors/track, 4115 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: 0x00000000
Disk /dev/mapper/vg_db3-lv_home: 2671 MB, 2671771648 bytes
255 heads, 63 sectors/track, 324 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: 0x00000000
Disk /dev/sdd: 10885.2 GB, 10885165114368 bytes
255 heads, 63 sectors/track, 1323379 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: 0x00000000
[root@db3 sg]#
[root@db3 /]# mkfs.xfs /dev/sdd
mkfs.xfs: /dev/sdd appears to contain an existing filesystem (LVM2_member).
mkfs.xfs: Use the -f option to force overwrite.
[root@db3 /]# mkfs.xfs -f /dev/sdd
meta-data=/dev/sdd isize=256 agcount=10, agsize=268435455 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=2657511014, imaxpct=5
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=521728, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[root@db3 /]# mount /dev/sdd /hissp1exp
[root@db3 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_db3-lv_root
26G 10G 14G 42% /
tmpfs 32G 232K 32G 1% /dev/shm
/dev/sda1 485M 38M 423M 9% /boot
/dev/mapper/vg_db3-lv_home
2.5G 69M 2.3G 3% /home
/dev/sdc 160G 130G 31G 82% /hissp1/temp
/dev/sdb 16T 13T 3.9T 76% /hissp1/oradbf
f6n1:/exp 20T 9.2T 11T 46% /exp
/dev/sdd 9.9T 33M 9.9T 1% /hissp1exp
[root@db3 /]#