peterle1984
Member
Hallo,
Ich habe ne Frage wie kann ich die disk /dev/md1 vergrößern ?
Ich habe Debian.
lg Peter
Ich habe ne Frage wie kann ich die disk /dev/md1 vergrößern ?
Ich habe Debian.
lg Peter
Filesystem Size Used Avail Use% Mounted on
rootfs 4.0G 224M 3.8G 6% /
udev 10M 0 10M 0% /dev
tmpfs 2.4G 160K 2.4G 1% /run
/dev/md1 4.0G 224M 3.8G 6% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 5.6G 0 5.6G 0% /run/shm
/dev/mapper/vg00-usr 4.0G 389M 3.4G 11% /usr
/dev/mapper/vg00-var 4.0G 231M 3.6G 7% /var
/dev/mapper/vg00-home 4.0G 136M 3.7G 4% /home
none 12G 0 12G 0% /tmp
root@s17749691:~# fdisk /dev/md1
The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.
Command (m for help): d
Selected partition 1
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): e
Partition number (1-4, default 1): 1
First sector (2048-8388479, default 2048): 10000
Last sector, +sectors or +size{K,M,G} (10000-8388479, default 8388479): m
Last sector, +sectors or +size{K,M,G} (10000-8388479, default 8388479): 10000
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
root@s17749691:~# fdisk -l /dev/md1
Disk /dev/md1: 4294 MB, 4294901760 bytes
1 heads, 1 sectors/track, 8388480 cylinders, total 8388480 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xf622ae93
Device Boot Start End Blocks Id System
/dev/md1p1 10000 10000 0+ 5 Extended
root@s17749691:~# resize2fs /dev/md1
resize2fs 1.42.5 (29-Jul-2012)
The filesystem is already 1048560 blocks long. Nothing to do!
root@s17749691:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 4.0G 227M 3.8G 6% /
udev 10M 0 10M 0% /dev
tmpfs 2.4G 104K 2.4G 1% /run
/dev/md1 4.0G 227M 3.8G 6% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 5.6G 0 5.6G 0% /run/shm
root@s17749691:~#
cat /proc/mdstat
mdadm --grow -z max /dev/md1
root@s17749691:~# cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda3[0] sdb3[2]
1947222016 blocks [2/1] [U_]
[>....................] recovery = 0.1% (3183296/1947222016) finish=369.8min speed=87616K/sec
md1 : active raid1 sda1[0] sdb1[1]
4194240 blocks [2/2] [UU]
unused devices: <none>
root@s17749691:~#
Filesystem Size Used Avail Use% Mounted on
rootfs 4.0G 224M 3.8G 6% /
udev 10M 0 10M 0% /dev
tmpfs 2.4G 160K 2.4G 1% /run
/dev/md1 4.0G 224M 3.8G 6% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 5.6G 0 5.6G 0% /run/shm
/dev/mapper/vg00-usr 14G 391M 13G 3% /usr
/dev/mapper/vg00-var 369G 238M 350G 1% /var
/dev/mapper/vg00-home 24G 139M 23G 1% /home
none 12G 0 12G 0% /tmp
root@s17749691:~# pvs
PV VG Fmt Attr PSize PFree
/dev/md3 vg00 lvm2 a-- 1.81t 1.28t
root@s17749691:~# vgs
VG #PV #LV #SN Attr VSize VFree
vg00 1 3 0 wz--n- 1.81t 1.28t
root@s17749691:~# lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
home vg00 -wi-ao-- 24.00g
usr vg00 -wi-ao-- 14.00g
var vg00 -wi-ao-- 504.00g
We use essential cookies to make this site work, and optional cookies to enhance your experience.