esxi vm ÆÄƼ¼Ç µµ¿ÍÁÖ¼¼¿ä.¤Ð

   Á¶È¸ 235   Ãßõ 0    


선배님들의 도움을 얻고자 이렇게 글 남겨 봅니다.ㅠㅠ


exsi7.0 u3에 vm centos6.10 서버를 올려서 운영계 작업중에 있었습니다.

putty로 원격 접속하여 테스트를 하는데 용량이 부족하다고 하여 증설하려는 중에 파티션이 깨진건지 날라간건지 모르겠습니다.

기존에 vm 용량이 20기가 였고, 아래 명령어들을 이용해서 40기가로 증설하려고 했습니다.

용량 증설하려고 할때 스냅샷이 있으면 안된다고 해서 모두 삭제를 했는데 문제가 발생해서 이전으로 복구가 안되는 상태입니다.ㅠㅠㅠ

스냅샷, 복구파일이 모두 없어요.ㅠㅠ


[root@localhost dist_selfdiag]# df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/sda3        16G   14G  1.6G  90% /

tmpfs           2.0G   72K  2.0G   1% /dev/shm

/dev/sda1       283M   59M  209M  22% /boot

[root@localhost dist_selfdiag]# lsblk

NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT

sr0     11:0    1 1024M  0 rom

sda      8:0    0   20G  0 disk

├─sda1   8:1    0  300M  0 part /boot

├─sda2   8:2    0    4G  0 part [SWAP]

└─sda3   8:3    0 15.8G  0 part /

[root@localhost dist_selfdiag]# resize2fs /dev/sda3

resize2fs 1.41.12 (17-May-2010)

The filesystem is already 4125440 blocks long.  Nothing to do!


[root@localhost dist_selfdiag]# du -sh /* | sort -h

du: cannot access `/proc/19217/task/19217/fd/4': No such file or directory

du: cannot access `/proc/19217/task/19217/fdinfo/4': No such file or directory

du: cannot access `/proc/19217/fd/4': No such file or directory

du: cannot access `/proc/19217/fdinfo/4': No such file or directory

0       /proc

0       /sys

4.0K    /media

4.0K    /selinux

4.0K    /srv

8.0K    /mnt

12K     /opt

16K     /lost+found

256K    /dev

7.2M    /bin

16M     /sbin

46M     /etc

57M     /boot

62M     /home

275M    /lib

2.4G    /usr

3.0G    /tmp

3.6G    /root

3.7G    /var

[root@localhost dist_selfdiag]# fdisk /dev/sda


WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

         switch off the mode (command 'c') and change display units to

         sectors (command 'u').


Command (m for help): ^C

[root@localhost dist_selfdiag]# fdisk /dev/sda


WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

         switch off the mode (command 'c') and change display units to

         sectors (command 'u').


Command (m for help): d

Partition number (1-4): n

Partition number (1-4): w

Partition number (1-4): 3


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 16: Device or resource busy.

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@localhost dist_selfdiag]# cated. It's strongly recommended to

>          switch off the mode (command 'c'

> ;

> ^C

[root@localhost dist_selfdiag]#

[root@localhost dist_selfdiag]# resize2fs /dev/sda3

resize2fs 1.41.12 (17-May-2010)

The filesystem is already 4125440 blocks long.  Nothing to do!


[root@localhost dist_selfdiag]#

[root@localhost dist_selfdiag]# df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/sda3        16G   14G  1.6G  90% /

tmpfs           2.0G   72K  2.0G   1% /dev/shm

/dev/sda1       283M   59M  209M  22% /boot

[root@localhost dist_selfdiag]#

[root@localhost dist_selfdiag]# resize2fs /dev/sda3

resize2fs 1.41.12 (17-May-2010)

The filesystem is already 4125440 blocks long.  Nothing to do!


[root@localhost dist_selfdiag]# df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/sda3        16G   14G  1.6G  90% /

tmpfs           2.0G   72K  2.0G   1% /dev/shm

/dev/sda1       283M   59M  209M  22% /boot

[root@localhost dist_selfdiag]# ^C

[root@localhost dist_selfdiag]# fdisk -l /dev/sda


Disk /dev/sda: 21.5 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 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: 0x00041c8e


   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          39      307200   83  Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2              39         557     4161536   82  Linux swap / Solaris

Partition 2 does not end on cylinder boundary.

[root@localhost dist_selfdiag]# ^C

[root@localhost dist_selfdiag]# fdisk /dev/sda


WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

         switch off the mode (command 'c') and change display units to

         sectors (command 'u').


Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 3

First cylinder (557-2610, default 557): 2610


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 16: Device or resource busy.

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@localhost dist_selfdiag]# resize2fs /dev/sda3

resize2fs 1.41.12 (17-May-2010)

The filesystem is already 4125440 blocks long.  Nothing to do!


[root@localhost dist_selfdiag]# mkfs.ext4 /dev/sda3

mke2fs 1.41.12 (17-May-2010)

/dev/sda3 is mounted; will not make a filesystem here!

[root@localhost dist_selfdiag]# resize2fs /dev/sda3

resize2fs 1.41.12 (17-May-2010)

The filesystem is already 4125440 blocks long.  Nothing to do!


[root@localhost dist_selfdiag]#

[root@localhost dist_selfdiag]# mount /dev/sda3 /mnt

[root@localhost dist_selfdiag]# df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/sda3        16G   14G  1.6G  90% /

tmpfs           2.0G   72K  2.0G   1% /dev/shm

/dev/sda1       283M   59M  209M  22% /boot

/dev/sda3        16G   14G  1.6G  90% /mnt

[root@localhost dist_selfdiag]# ^C

[root@localhost dist_selfdiag]# partprobe /dev/sda

Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy).  As a result, it may not reflect all of your changes until after reboot.

[root@localhost dist_selfdiag]# resize2fs /dev/sda3

resize2fs 1.41.12 (17-May-2010)

The filesystem is already 4125440 blocks long.  Nothing to do!


[root@localhost dist_selfdiag]# reboot

[root@localhost dist_selfdiag]#

Broadcast message from ****@*********.localdomain

        (/dev/pts/0) at 11:58 ...


The system is going down for reboot NOW!




위 명령어를 실행하고 rboot 했더니 부팅과정에서 centos6 로고 부팅중에 멈춤이 있습니다.

그래서 iso 라이브 버전으로 부팅 해서 디스크 영역에 들어가서 보니까~

sda3 영역이 8M가 되어 있어요~


sda3에 중요한 파일들이 들어있는데 다시 되살릴 방법이 없을까요?

구글링, 코파일럿 등 이용해서 이것저것 테스트를 해봤는데 마운트도 안되고 외부 인터넷이 안되서 복구툴을 설치가 안됩니다.ㅠ


선배님!!

도와주세요.ㅠㅠ




Hh
ªÀº±Û Àϼö·Ï ½ÅÁßÇϰÔ.
Fentanest 04-22
[root@localhost dist_selfdiag]# fdisk /dev/sda



WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

        switch off the mode (command 'c') and change display units to

        sectors (command 'u').



Command (m for help): d

Partition number (1-4): n

Partition number (1-4): w

Partition number (1-4): 3



Command (m for help): w

The partition table has been altered!

ÀÌ¹Ì ÆÄƼ¼ÇÀ» Áö¿ì°í(d)
»õ·Î ¸¸µé°í(n)
±â·ÏÇ߳׿ä(w)

Ãß°¡ÀûÀ¸·Î ¹» ¾²½ÃÁø ¾ÊÀº°Å°°À¸´Ï±î ±×³É º¹±¸ÇÁ·Î±×·¥ µ¹¸®´Â°Ô ³´°Ú³×¿ä

Unknown 8.2MB´Â ¿Ö »ý°å´ÂÁö ¸ð¸£°Ú´Âµ¥
±âÁ¸ sda3¿µ¿ªÀº ³¯¾Æ°¡¼­ Free»óÅ·ΠÀÖ°í,
»õ·Î ´Ã¸° 20±â°¡µµ µÚÂÊ Free·Î ÀÖ´Â °Í °°³×¿ä.
     
´äº¯Áּż­ °¨»çÇÕ´Ï´Ù.
Âü°íÇÏ¿© Á¶Ä¡Çغ¸°Ú½À´Ï´Ù.
ÆÄƼ¼Ç Å×À̺íÀÇ Å©±â¸¦ º¯°æÇÏ·Á¸é,
¸ÕÀú ÆÄƼ¼Ç Å©±â¸¦ Á¶Á¤ÇÑ ÈÄ resize2fs ¸¦ ½ÇÇàÇß¾î¾ß Çϴµ¥
ÆÄƼ¼Ç Å©±â¸¦ º¯°æÇÏ´Â ÀýÂ÷¸¦ »ý·«ÇϽŠ°Í °°½À´Ï´Ù.

1) https://monkeybusiness.tistory.com/685 ("ÁÖÀÇ»çÇ×" Âü°í)
2) https://blog.servis.co.kr/index.php/2019/03/12/resize2fs/
  ("µð½ºÅ©ÀÇ ½ÃÀÛÁ¡ È®ÀÎ" ºÎÅÍ Âü°í, ƯÈ÷ ¸¶Áö¸· ºÎºÐ)

Fentanest ´Ô Àǰßó·³ ¾ÆÁ÷ ÆÄƼ¼Ç¿¡ Ãß°¡ÀûÀÎ ¾²±â ÀÛ¾÷Àº ¾ø¾ú´ø °Í °°À¸´Ï
R-Studio °°Àº º¹±¸ ÇÁ·Î±×·¥À» Çѹø µ¹·Áº¸½Ã±â ¹Ù¶ø´Ï´Ù.
´Ü¼øÈ÷ ÆÄƼ¼Ç¸¸ ³¯¾Æ°£ °Å¶ó¸é º¹±¸µÉ È®·üÀÌ ³ôÀ» °Í °°½À´Ï´Ù.

±×¸®°í ÀÌ·± ÀÛ¾÷À» ÇÏ½Ç ¶§¿¡´Â À߸øµÆÀ» ¶§¸¦ ´ëºñÇØ¼­
Ç×»ó ¹é¾÷ÀÌ Çʼö ÀÔ´Ï´Ù. ƯÈ÷³ª Áß¿äÇÑ µ¥ÀÌÅͰ¡ ÀÖ´Ù¸é¿ä..
     
¾Ë·ÁÁֽг»¿ë Âü°íÇÏ¿© ÆÄƼ¼Ç ÀÛ¾÷ÇØº¸°Ú½À´Ï´Ù. °¨»çÇÕ´Ï´Ù.
dateno1 04-22
Àß ´Ù·êÁÙ ¸ð¸£½Ã¸é CUI·Î ÀÛ¾÷ÇÏÁö¸¶¼¼¿ä

ºÎÆ®¿ë ISOÀÖ´Ù¸é °Å±â GUIÅø ÀÖÀ¸´Ï±î¿ä

º¹±¸ ¼ÒÇÁÆ®°¡ Æ÷ÇÔµÈ PE ISO Àü¼ÛÈÄ ±×°É·Î ºÎÆ®ÇØ¼­ µ¹¸®¼¼¿ä
     
³Ü^^; ¾Ë°Ú½À´Ï´Ù. ´ÙÀ½¿¡´Â Àß ¼÷ÁöÇØ¼­ ÀÛ¾÷ÇϰڽÀ´Ï´Ù.
          
dateno1 04-22
Âü°í·Î GUI·Î ÇÒ²¨¸é ÀÛ¾÷ ¸Å¿ì ½±½À´Ï´Ù

¸ÕÀú VMÁ¾·áÈÄ ESXi°ü¸® ÆäÀÌÁö °¡¼­ µð½ºÅ© Å©±â Á¶ÀýÈÄ ºÎÆ® ISO¸¶¿îÆ®ÈÄ ±×°É·Î ºÎÆ®ÇÕ´Ï´Ù

°Å±â¼­ µð½ºÅ© À¯Æ¿°è¿­ ¿­¾îº¸¸é µð½ºÅ© µÚÂÊ¿¡ ºó°ø°£ÀÌ »ý°åÀ»Å×´Ï ±×¸¸Å­ È®ÀåÇÏ¸é ‰´´Ï´Ù
´Ù¸¥ OS¿¡ ¿¬°áÇÏ¿©. º¹±¸ ÇÁ·Î±×·¥ µ¹¸®¼¼¿ä.
½Ã°£ÀÌ ¸¹ÀÌ °É¸®´Ï ...
     
³× ¾Ë°Ú½À´Ï´Ù~~ ÀÏ´Ü µð½ºÅ© ¹é¾÷ºÎÅÍ ÇØ¾ß°Ú³×¿ä~ ´äº¯ Áּż­ °¨»çÇÕ´Ï´Ù


QnA
Á¦¸ñPage 1/5730
2015-12   1791520   ¹é¸Þ°¡
2014-05   5266624   Á¤ÀºÁØ1
04-23   151   ÀÌ¿ëÈÆ
04-23   127   dateno1
04-23   164   surren
04-23   399   Mentis
04-23   192   siper
04-23   192   ±¤ÁÖµ¿Å°È£Å×
04-23   231   À嵿°Ç2014
04-23   104   ¾Ö´Ï¾Ç
04-23   145   µðºêÀÌ
04-23   144   ±¸ÇüȰ¿ë°¡
04-23   214   makeyz
04-22   256   ¹Ì¼ö¸Ç
04-22   215   ÆÄÀ̸ÞÀÌ
04-22   225   Sakura24
04-22   236   ¿ìÁÖ¼Ò³â
04-22   233   lico98
04-22   371   ¿ï°ú±âÆé½ÃÃæ
04-22   287   ±Ã±¸
04-22   222   ¸Å´Ï¾Æ1
04-21   344   ½Å¿ì¼·