我在扩展我继承的一台 Linux 服务器时遇到了一些问题。我不太清楚前任管理员做了什么,而且我的 Linux 技能也不够。
我尝试执行正常操作,在 vmware 中扩展磁盘,启动服务器并通过 fdisk 创建一个新的分区 /dev/sda3,但在创建时无法获得超过几个块。
当然,我也想修复我收到的错误。磁盘 /dev/mapper/JIRA-root 不包含有效的分区表
有谁能帮忙吗?:) 我有一个服务器克隆,所以我可以在其上测试任何东西。但目前我除了破坏系统外什么也做不了。
fdisk -l
Disk /dev/sda: 161.1 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders, total 314572800 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: 0x000180c3
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 104855551 52176897 5 Extended
/dev/sda5 501760 104855551 52176896 8e Linux LVM
Disk /dev/mapper/JIRA-root: 49.1 GB, 49102716928 bytes
255 heads, 63 sectors/track, 5969 cylinders, total 95903744 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/mapper/JIRA-root doesn't contain a valid partition table
Disk /dev/mapper/JIRA-swap_1: 4290 MB, 4290772992 bytes
255 heads, 63 sectors/track, 521 cylinders, total 8380416 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/mapper/JIRA-swap_1 doesn't contain a valid partition table
fstab
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/mapper/JIRA-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=6171c5ce-6ef5-420a-ad9c-c8bb1111a528 /boot ext2 defaults 0 2
/dev/mapper/JIRA-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0