Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jam@AH-NOC-SCR01:~$ df -h
- Filesystem Size Used Avail Use% Mounted on
- udev 7.9G 0 7.9G 0% /dev
- tmpfs 1.6G 1.1M 1.6G 1% /run
- /dev/mapper/AH--NOC--SCR01--vg-root 12G 12G 0 100% /
- tmpfs 7.9G 120K 7.9G 1% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
- /dev/sda1 472M 131M 317M 30% /boot
- tmpfs 1.6G 0 1.6G 0% /run/user/1000
- jam@AH-NOC-SCR01:~$ sudo df -h
- [sudo] password for jam:
- Filesystem Size Used Avail Use% Mounted on
- udev 7.9G 0 7.9G 0% /dev
- tmpfs 1.6G 1.2M 1.6G 1% /run
- /dev/mapper/AH--NOC--SCR01--vg-root 12G 12G 0 100% /
- tmpfs 7.9G 120K 7.9G 1% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
- /dev/sda1 472M 131M 317M 30% /boot
- overlay 12G 12G 0 100% /var/lib/docker/overlay2/889db7584e116b89c7f924d36230cf527fd24a8da427285f62e53356713aa45b/merged
- overlay 12G 12G 0 100% /var/lib/docker/overlay2/ccb822cdd6fc66f2ce7d91d8eb2398dca84620460ed5a54efbc856bbdc0573c6/merged
- overlay 12G 12G 0 100% /var/lib/docker/overlay2/1779fae0c00bcc63d41d44df0a77196ca57804ef372357769ff946def782f33a/merged
- overlay 12G 12G 0 100% /var/lib/docker/overlay2/823b312c46515614a5cc7770e324e27d65de068484a8b9545f9bee9b6aa947a0/merged
- overlay 12G 12G 0 100% /var/lib/docker/overlay2/397d17cb341b11e08ffab170fb3c6834bb9e4f3cee3bcb91c96d75af8e13cab4/merged
- shm 64M 0 64M 0% /var/lib/docker/containers/b8dc66ba6cf3dbe89f3711f79a527374127b4e6e6b4888774dc5cb333397fe2f/mounts/shm
- shm 64M 0 64M 0% /var/lib/docker/containers/d9fc034d09b38aa1ddb4ceef8b9f435f3f42d92c13bb87e3447bf0280c794b35/mounts/shm
- shm 64M 0 64M 0% /var/lib/docker/containers/be54ee6fc119b887959be6a17ca02a3d07d34aa6ad23406b5a8549d0bf895598/mounts/shm
- shm 64M 0 64M 0% /var/lib/docker/containers/da622b6c22d055fb85f75b006146c7db68771554a029cb435241b5c43c04157a/mounts/shm
- tmpfs 1.6G 0 1.6G 0% /run/user/1000
- overlay 12G 12G 0 100% /var/lib/docker/overlay2/bced540a1937fc88b25fff542608ab8dd3811c374d9d2efae7d94cefcef7614e/merged
- shm 64M 0 64M 0% /var/lib/docker/containers/7f62955f107b4057a7cd5fa2bf2a0356c6baeb2061c62b013675eceff8e3ac5c/mounts/shm
- jam@AH-NOC-SCR01:~$
- jam@AH-NOC-SCR01:~$ sudo apt-get install cloud-guest-utils
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- cloud-guest-utils is already the newest version (0.30-0ubuntu5).
- 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- jam@AH-NOC-SCR01:~$ sudo swapoff -a
- jam@AH-NOC-SCR01:~$ sudo parted
- GNU Parted 3.2
- Using /dev/sda
- Welcome to GNU Parted! Type 'help' to view a list of commands.
- (parted)
- (parted)
- (parted)
- (parted)
- (parted) print all
- Model: VMware Virtual disk (scsi)
- Disk /dev/sda: 17.2GB
- Sector size (logical/physical): 512B/512B
- Partition Table: msdos
- Disk Flags:
- Number Start End Size Type File system Flags
- 1 1049kB 512MB 511MB primary ext2 boot
- 2 513MB 17.2GB 16.7GB extended
- 5 513MB 17.2GB 16.7GB logical lvm
- Model: Linux device-mapper (linear) (dm)
- Disk /dev/mapper/AH--NOC--SCR01--vg-swap_1: 4295MB
- Sector size (logical/physical): 512B/512B
- Partition Table: loop
- Disk Flags:
- Number Start End Size File system Flags
- 1 0.00B 4295MB 4295MB linux-swap(v1)
- Model: Linux device-mapper (linear) (dm)
- Disk /dev/mapper/AH--NOC--SCR01--vg-root: 12.4GB
- Sector size (logical/physical): 512B/512B
- Partition Table: loop
- Disk Flags:
- Number Start End Size File system Flags
- 1 0.00B 12.4GB 12.4GB ext4
- Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
- Model: NECVMWar VMware SATA CD00 (scsi)
- Disk /dev/sr0: 869MB
- Sector size (logical/physical): 2048B/2048B
- Partition Table: mac
- Disk Flags:
- Number Start End Size File system Name Flags
- 1 2048B 6143B 4096B Apple
- 2 212MB 214MB 2490kB EFI
- (parted)
- (parted) rm 2
- Error: Partition(s) 5 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now
- before making further changes.
- Ignore/Cancel? c
- (parted) rm 3
- Error: Partition doesn't exist.
- (parted) print all
- Model: VMware Virtual disk (scsi)
- Disk /dev/sda: 17.2GB
- Sector size (logical/physical): 512B/512B
- Partition Table: msdos
- Disk Flags:
- Number Start End Size Type File system Flags
- 1 1049kB 512MB 511MB primary ext2 boot
- Model: Linux device-mapper (linear) (dm)
- Disk /dev/mapper/AH--NOC--SCR01--vg-swap_1: 4295MB
- Sector size (logical/physical): 512B/512B
- Partition Table: loop
- Disk Flags:
- Number Start End Size File system Flags
- 1 0.00B 4295MB 4295MB linux-swap(v1)
- Model: Linux device-mapper (linear) (dm)
- Disk /dev/mapper/AH--NOC--SCR01--vg-root: 12.4GB
- Sector size (logical/physical): 512B/512B
- Partition Table: loop
- Disk Flags:
- Number Start End Size File system Flags
- 1 0.00B 12.4GB 12.4GB ext4
- Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
- Model: NECVMWar VMware SATA CD00 (scsi)
- Disk /dev/sr0: 869MB
- Sector size (logical/physical): 2048B/2048B
- Partition Table: mac
- Disk Flags:
- Number Start End Size File system Name Flags
- 1 2048B 6143B 4096B Apple
- 2 212MB 214MB 2490kB EFI
- () sudo growpart /dev/vda 1
- align-check TYPE N check partition N for TYPE(min|opt) alignment
- help [COMMAND] print general help, or help on COMMAND
- mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
- mkpart PART-TYPE [FS-TYPE] START END make a partition
- name NUMBER NAME name partition NUMBER as NAME
- print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
- quit exit program
- rescue START END rescue a lost partition near START and END
- resizepart NUMBER END resize partition NUMBER
- rm NUMBER delete partition NUMBER
- select DEVICE choose the device to edit
- disk_set FLAG STATE change the FLAG on selected device
- disk_toggle [FLAG] toggle the state of FLAG on selected device
- set NUMBER FLAG STATE change the FLAG on partition NUMBER
- toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
- unit UNIT set the default unit to UNIT
- version display the version number and copyright information of GNU Parted
- align-check TYPE N check partition N for TYPE(min|opt) alignment
- help [COMMAND] print general help, or help on COMMAND
- mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
- mkpart PART-TYPE [FS-TYPE] START END make a partition
- name NUMBER NAME name partition NUMBER as NAME
- print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
- quit exit program
- rescue START END rescue a lost partition near START and END
- resizepart NUMBER END resize partition NUMBER
- rm NUMBER delete partition NUMBER
- select DEVICE choose the device to edit
- disk_set FLAG STATE change the FLAG on selected device
- disk_toggle [FLAG] toggle the state of FLAG on selected device
- set NUMBER FLAG STATE change the FLAG on partition NUMBER
- toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
- unit UNIT set the default unit to UNIT
- version display the version number and copyright information of GNU Parted
- align-check TYPE N check partition N for TYPE(min|opt) alignment
- help [COMMAND] print general help, or help on COMMAND
- mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
- mkpart PART-TYPE [FS-TYPE] START END make a partition
- name NUMBER NAME name partition NUMBER as NAME
- print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
- quit exit program
- rescue START END rescue a lost partition near START and END
- resizepart NUMBER END resize partition NUMBER
- rm NUMBER delete partition NUMBER
- select DEVICE choose the device to edit
- disk_set FLAG STATE change the FLAG on selected device
- disk_toggle [FLAG] toggle the state of FLAG on selected device
- set NUMBER FLAG STATE change the FLAG on partition NUMBER
- toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
- unit UNIT set the default unit to UNIT
- version display the version number and copyright information of GNU Parted
- align-check TYPE N check partition N for TYPE(min|opt) alignment
- help [COMMAND] print general help, or help on COMMAND
- mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
- mkpart PART-TYPE [FS-TYPE] START END make a partition
- name NUMBER NAME name partition NUMBER as NAME
- print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
- quit exit program
- rescue START END rescue a lost partition near START and END
- resizepart NUMBER END resize partition NUMBER
- rm NUMBER delete partition NUMBER
- select DEVICE choose the device to edit
- disk_set FLAG STATE change the FLAG on selected device
- disk_toggle [FLAG] toggle the state of FLAG on selected device
- set NUMBER FLAG STATE change the FLAG on partition NUMBER
- toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
- unit UNIT set the default unit to UNIT
- version display the version number and copyright information of GNU Parted
- (parted) exit
- align-check TYPE N check partition N for TYPE(min|opt) alignment
- help [COMMAND] print general help, or help on COMMAND
- mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
- mkpart PART-TYPE [FS-TYPE] START END make a partition
- name NUMBER NAME name partition NUMBER as NAME
- print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
- quit exit program
- rescue START END rescue a lost partition near START and END
- resizepart NUMBER END resize partition NUMBER
- rm NUMBER delete partition NUMBER
- select DEVICE choose the device to edit
- disk_set FLAG STATE change the FLAG on selected device
- disk_toggle [FLAG] toggle the state of FLAG on selected device
- set NUMBER FLAG STATE change the FLAG on partition NUMBER
- toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
- unit UNIT set the default unit to UNIT
- version display the version number and copyright information of GNU Parted
- (parted)
- (parted) q
- Information: You may need to update /etc/fstab.
- jam@AH-NOC-SCR01:~$
- jam@AH-NOC-SCR01:~$
- jam@AH-NOC-SCR01:~$ sudo growpart /dev/vda 1
- FAILED: /dev/vda: does not exist
- jam@AH-NOC-SCR01:~$ df -h
- Filesystem Size Used Avail Use% Mounted on
- udev 7.9G 0 7.9G 0% /dev
- tmpfs 1.6G 1.1M 1.6G 1% /run
- /dev/mapper/AH--NOC--SCR01--vg-root 12G 12G 0 100% /
- tmpfs 7.9G 120K 7.9G 1% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
- /dev/sda1 472M 131M 317M 30% /boot
- tmpfs 1.6G 0 1.6G 0% /run/user/1000
- jam@AH-NOC-SCR01:~$ sudo growpart /dev/vda1
- growpart disk partition
- rewrite partition table so that partition takes up all the space it can
- options:
- -h | --help print Usage and exit
- --fudge F if part could be resized, but change would be
- less than 'F' bytes, do not resize (default: 1048576)
- -N | --dry-run only report what would be done, show new 'sfdisk -d'
- -v | --verbose increase verbosity / debug
- -u | --update R update the the kernel partition table info after growing
- this requires kernel support and 'partx --update'
- R is one of:
- - 'auto' : [default] update partition if possible
- - 'force' : try despite sanity checks (fail on failure)
- - 'off' : do not attempt
- - 'on' : fail if sanity checks indicate no support
- Example:
- - growpart /dev/sda 1
- Resize partition 1 on /dev/sda
- must supply partition-number
- jam@AH-NOC-SCR01:~$ sudo growpart /dev/-bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- -bash: cannot create temp file for here-document: No space left on device
- ^C
- jam@AH-NOC-SCR01:~$ ls /dev/
- agpgart console ecryptfs input loop5 net random shm tty1 tty18 tty26 tty34 tty42 tty50 tty59 ttyprintk ttyS16 ttyS24 ttyS4 userio vcsa1 vhost-net
- AH-NOC-SCR01-vg core fb0 kmsg loop6 network_latency rfkill snapshot tty10 tty19 tty27 tty35 tty43 tty51 tty6 ttyS0 ttyS17 ttyS25 ttyS5 vcs vcsa2 vhost-vsock
- autofs cpu_dma_latency fd lightnvm loop7 network_throughput rtc snd tty11 tty2 tty28 tty36 tty44 tty52 tty60 ttyS1 ttyS18 ttyS26 ttyS6 vcs1 vcsa3 vmci
- block cuse full log loop-control null rtc0 sr0 tty12 tty20 tty29 tty37 tty45 tty53 tty61 ttyS10 ttyS19 ttyS27 ttyS7 vcs2 vcsa4 vsock
- bsg disk fuse loop0 mapper port sda stderr tty13 tty21 tty3 tty38 tty46 tty54 tty62 ttyS11 ttyS2 ttyS28 ttyS8 vcs3 vcsa5 zero
- btrfs-control dm-0 hpet loop1 mcelog ppp sda1 stdin tty14 tty22 tty30 tty39 tty47 tty55 tty63 ttyS12 ttyS20 ttyS29 ttyS9 vcs4 vcsa6
- cdrom dm-1 hugepages loop2 mem psaux sda5 stdout tty15 tty23 tty31 tty4 tty48 tty56 tty7 ttyS13 ttyS21 ttyS3 uhid vcs5 vfio
- cdrw dri hwrng loop3 memory_bandwidth ptmx sg0 tty tty16 tty24 tty32 tty40 tty49 tty57 tty8 ttyS14 ttyS22 ttyS30 uinput vcs6 vga_arbiter
- char dvd initctl loop4 mqueue pts sg1 tty0 tty17 tty25 tty33 tty41 tty5 tty58 tty9 ttyS15 ttyS23 ttyS31 urandom vcsa vhci
- jam@AH-NOC-SCR01:~$ sudo growpart /dev/sda 1
- failed [pt_update:1] pt_update /dev/sda 1
- partx: /dev/sda: error updating partition 1
- FAILED: pt_resize failed
- jam@AH-NOC-SCR01:~$ sudo reboot now
Add Comment
Please, Sign In to add comment