1
bearice 2017-09-14 21:40:41 +08:00
lsblk / blkid / mount 的结果贴一下?
你确定是用 ext4 的文件系统? |
2
echo1937 2017-09-14 21:54:48 +08:00
因为你没给文件系统做扩容操作。
|
4
Keyes 2017-09-14 22:00:59 +08:00 via iPad
分区扩了吗? partd 把文件系统也扩掉
|
5
gamexg 2017-09-14 22:23:02 +08:00
你忘了给 lvresize 加 -r 参数了.
超级块错误,文件系统挂了? |
6
nightma7e OP @bearice
root@virtual-machine:/home/zm# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 20G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 19G 0 part ├─ubuntu-lv--swap 253:1 0 4G 0 lvm [SWAP] ├─ubuntu-lv--root 253:2 0 10G 0 lvm / └─ubuntu-lv--home 253:3 0 4.5G 0 lvm /home sdb 8:16 0 20G 0 disk └─sdb1 8:17 0 20G 0 part └─var-lv--var 253:0 0 40G 0 lvm /var sdc 8:32 0 20G 0 disk └─sdc1 8:33 0 20G 0 part └─var-lv--var 253:0 0 40G 0 lvm /var sr0 11:0 1 1.5G 0 rom /media/zm/Ubuntu 17.04 amd64 root@virtual-machine:/home/zm# blkid /dev/sda1: UUID="2467ce51-5cc0-4567-9a7c-ca888762f295" TYPE="xfs" PARTUUID="50a863db-b28f-450b-a84a-c00d1448f665" /dev/sda2: UUID="zFuMT6-KKvU-eJsV-rNpi-M18f-Nbgy-Pe0Ogr" TYPE="LVM2_member" PARTUUID="0b423e04-865c-483e-8e46-ce694064fb58" /dev/sdb1: UUID="WsMCrh-pfag-SxfD-khCn-rGn8-IodH-vL4AEL" TYPE="LVM2_member" PARTUUID="abe98667-3761-4598-8fb2-d46040b42d7d" /dev/sdc1: UUID="W8DTLM-u0e4-3NQv-uVJ8-k8Qy-bkfS-2CiaXj" TYPE="LVM2_member" PARTUUID="8644e646-93da-4cff-879b-ca87515a0ddf" /dev/sr0: UUID="2017-04-12-03-44-04-00" LABEL="Ubuntu 17.04 amd64" TYPE="iso9660" PTUUID="1b571474" PTTYPE="dos" /dev/mapper/var-lv--var: UUID="3e13880c-b2fa-44e8-83a4-668ccebe8e41" TYPE="xfs" /dev/mapper/ubuntu-lv--swap: UUID="eb94dd27-170f-4fed-9f8f-a6e883360b42" TYPE="swap" /dev/mapper/ubuntu-lv--root: UUID="dfe45c06-4d2b-4414-89f3-0ec4052ca26b" TYPE="xfs" /dev/mapper/ubuntu-lv--home: UUID="04ce657a-9935-4851-b150-a529780d474d" TYPE="xfs" root@virtual-machine:/home/zm# mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=990476k,nr_inodes=247619,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=202708k,mode=755) /dev/mapper/ubuntu-lv--root on / type xfs (rw,relatime,attr2,inode64,noquota) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=36,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=17701) debugfs on /sys/kernel/debug type debugfs (rw,relatime) mqueue on /dev/mqueue type mqueue (rw,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) /dev/mapper/var-lv--var on /var type xfs (rw,relatime,attr2,inode64,noquota) /dev/mapper/ubuntu-lv--home on /home type xfs (rw,relatime,attr2,inode64,noquota) /dev/sda1 on /boot type xfs (rw,relatime,attr2,inode64,noquota) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=202704k,mode=700,uid=1000,gid=1000) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) /dev/sr0 on /media/zm/Ubuntu 17.04 amd64 type iso9660 (ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2) tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=202704k,mode=700) |
7
gamexg 2017-09-14 22:31:21 +08:00 1
xfs ...
xfs 扩展命令是 xfs_growfs /dev/var/lv-var |
11
xuhui315586351 2017-09-14 23:11:46 +08:00
针对 xfs 文件系统目前只可以放大,不可以缩小。如果你用的是以前的 ext2/3/4 filesystem,是可以扩大和缩小的。
|
12
levinit 2017-09-16 20:59:06 +08:00
注意参数 光扩展不加 -r 挂歪歪 缩小扩大看帮助嘛 扩大用加号 缩小用减号
|