Sei sulla pagina 1di 9

login as: oracle

oracle@10.175.22.189's password:

Last login: Fri May 17 18:35:35 2019 from 10.175.18.154

-bash: User: command not found

[oracle@Satish ~]$ su -

Password:

[root@Satish ~]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

xvda 202:0 0 250G 0 disk

├─xvda1 202:1 0 500M 0 part /boot

└─xvda2 202:2 0 149.5G 0 part

├─vg_satish-lv_root (dm-0) 252:0 0 50G 0 lvm /

├─vg_satish-lv_swap (dm-1) 252:1 0 5.9G 0 lvm [SWAP]

└─vg_satish-lv_home (dm-2) 252:2 0 93.7G 0 lvm /home

sr0 11:0 1 1024M 0 rom

[root@Satish ~]# partprobe

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

[root@Satish ~]# fdisk /dev/xvda

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.

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): m

Command action

a toggle a bootable flag


b edit bsd disklabel

c toggle the dos compatibility flag

d delete a partition

l list known partition types

m print this menu

n add a new partition

o create a new empty DOS partition table

p print the partition table

q quit without saving changes

s create a new empty Sun disklabel

t change a partition's system id

u change display/entry units

v verify the partition table

w write table to disk and exit

x extra functionality (experts only)

Command (m for help): n

Command action

e extended

p primary partition (1-4)

Command action

e extended

p primary partition (1-4)

Invalid partition number for type `1'

Command action

e extended

p primary partition (1-4)

Partition number (1-4):


Value out of range.

Partition number (1-4): 1

Partition 1 is already defined. Delete it before re-adding it.

Command (m for help): n

Command action

e extended

p primary partition (1-4)

Partition number (1-4): 3

First cylinder (19582-32635, default 19582):

Using default value 19582

Last cylinder, +cylinders or +size{K,M,G} (19582-32635, default 32635):

Using default value 32635

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@Satish ~]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

xvda 202:0 0 250G 0 disk

├─xvda1 202:1 0 500M 0 part /boot

└─xvda2 202:2 0 149.5G 0 part

├─vg_satish-lv_root (dm-0) 252:0 0 50G 0 lvm /


├─vg_satish-lv_swap (dm-1) 252:1 0 5.9G 0 lvm [SWAP]

└─vg_satish-lv_home (dm-2) 252:2 0 93.7G 0 lvm /home

sr0 11:0 1 1024M 0 rom

[root@Satish ~]# partprobe

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

[root@Satish ~]# lsnlk

-bash: lsnlk: command not found

[root@Satish ~]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

xvda 202:0 0 250G 0 disk

├─xvda1 202:1 0 500M 0 part /boot

└─xvda2 202:2 0 149.5G 0 part

├─vg_satish-lv_root (dm-0) 252:0 0 50G 0 lvm /

├─vg_satish-lv_swap (dm-1) 252:1 0 5.9G 0 lvm [SWAP]

└─vg_satish-lv_home (dm-2) 252:2 0 93.7G 0 lvm /home

sr0 11:0 1 1024M 0 rom

[root@Satish ~]# init 6

[root@Satish ~]#

login as: oracle

oracle@10.175.22.189's password:

Last login: Fri May 17 19:03:28 2019 from 10.175.21.219

-bash: User: command not found

[oracle@Satish ~]$ df -hT

Filesystem Type Size Used Avail Use% Mounted on

/dev/mapper/vg_satish-lv_root

ext4 50G 46G 1.3G 98% /

tmpfs tmpfs 3.0G 88K 3.0G 1% /dev/shm

/dev/xvda1 ext4 485M 118M 342M 26% /boot

/dev/mapper/vg_satish-lv_home

ext4 93G 3.7G 84G 5% /home


[oracle@Satish ~]$ su -

Password:

[root@Satish ~]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

xvda 202:0 0 250G 0 disk

├─xvda1 202:1 0 500M 0 part /boot

├─xvda2 202:2 0 149.5G 0 part

│ ├─vg_satish-lv_root (dm-0) 252:0 0 50G 0 lvm /

│ ├─vg_satish-lv_swap (dm-1) 252:1 0 5.9G 0 lvm [SWAP]

│ └─vg_satish-lv_home (dm-2) 252:2 0 93.7G 0 lvm /home

└─xvda3 202:3 0 100G 0 part

sr0 11:0 1 1024M 0 rom

[root@Satish ~]# fdisk /dev/xvda3

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklab
el

Building a new DOS disklabel with disk identifier 0x607675e5.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

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.

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)

Partition number (1-4): 1

First cylinder (1-13053, default 1):

Using default value 1

Last cylinder, +cylinders or +size{K,M,G} (1-13053, default 13053):

Using default value 13053

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@Satish ~]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

xvda 202:0 0 250G 0 disk

├─xvda1 202:1 0 500M 0 part /boot

├─xvda2 202:2 0 149.5G 0 part

│ ├─vg_satish-lv_root (dm-0) 252:0 0 50G 0 lvm /

│ ├─vg_satish-lv_swap (dm-1) 252:1 0 5.9G 0 lvm [SWAP]

│ └─vg_satish-lv_home (dm-2) 252:2 0 93.7G 0 lvm /home

└─xvda3 202:3 0 100G 0 part

sr0 11:0 1 1024M 0 rom

[root@Satish ~]# mkf

mkfifo mkfs mkfs.ext3 mkfs.msdos

mkfontdir mkfs.cramfs mkfs.ext4 mkfs.vfat


mkfontscale mkfs.ext2 mkfs.ext4dev

[root@Satish ~]# mkf

mkfifo mkfs mkfs.ext3 mkfs.msdos

mkfontdir mkfs.cramfs mkfs.ext4 mkfs.vfat

mkfontscale mkfs.ext2 mkfs.ext4dev

[root@Satish ~]# df -hT

Filesystem Type Size Used Avail Use% Mounted on

/dev/mapper/vg_satish-lv_root

ext4 50G 46G 1.3G 98% /

tmpfs tmpfs 3.0G 88K 3.0G 1% /dev/shm

/dev/xvda1 ext4 485M 118M 342M 26% /boot

/dev/mapper/vg_satish-lv_home

ext4 93G 3.7G 84G 5% /home

[root@Satish ~]# mkfs.ext4

mkfs.ext4 mkfs.ext4dev

[root@Satish ~]# mkfs.ext4 /dev/xvda3

mke2fs 1.43-WIP (20-Jun-2013)

Discarding device blocks: done

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

Stride=0 blocks, Stripe width=0 blocks

6553600 inodes, 26213559 blocks

1310677 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=4294967296

800 block groups

32768 blocks per group, 32768 fragments per group

8192 inodes per group

Superblock backups stored on blocks:


32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done

Writing inode tables: done

Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information: done

[root@Satish ~]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

xvda 202:0 0 250G 0 disk

├─xvda1 202:1 0 500M 0 part /boot

├─xvda2 202:2 0 149.5G 0 part

│ ├─vg_satish-lv_root (dm-0) 252:0 0 50G 0 lvm /

│ ├─vg_satish-lv_swap (dm-1) 252:1 0 5.9G 0 lvm [SWAP]

│ └─vg_satish-lv_home (dm-2) 252:2 0 93.7G 0 lvm /home

└─xvda3 202:3 0 100G 0 part

sr0 11:0 1 1024M 0 rom

[root@Satish ~]# mount /dev/xvda3 /u03/

[root@Satish ~]# df -hT

Filesystem Type Size Used Avail Use% Mounted on

/dev/mapper/vg_satish-lv_root

ext4 50G 46G 1.3G 98% /

tmpfs tmpfs 3.0G 88K 3.0G 1% /dev/shm

/dev/xvda1 ext4 485M 118M 342M 26% /boot

/dev/mapper/vg_satish-lv_home

ext4 93G 3.7G 84G 5% /home

/dev/xvda3 ext4 99G 188M 94G 1% /u03

[root@Satish ~]# tail -1 /etc/mtab

/dev/xvda3 /u03 ext4 rw 0 0

[root@Satish ~]# vim /etc/fstab


[root@Satish ~]# blkid /dev/xvda3

/dev/xvda3: UUID="941aa999-a147-4291-b063-dd212ef90596" TYPE="ext4"

[root@Satish ~]# vim /etc/fstab

[root@Satish ~]# df -hT

Filesystem Type Size Used Avail Use% Mounted on

/dev/mapper/vg_satish-lv_root

ext4 50G 46G 1.3G 98% /

tmpfs tmpfs 3.0G 88K 3.0G 1% /dev/shm

/dev/xvda1 ext4 485M 118M 342M 26% /boot

/dev/mapper/vg_satish-lv_home

ext4 93G 3.7G 84G 5% /home

/dev/xvda3 ext4 99G 188M 94G 1% /u03

[root@Satish ~]# su - oracle

-bash: User: command not found

[oracle@Satish ~]$ vncserver

New 'Satish.suneratech.com:1 (oracle)' desktop is Satish.suneratech.com:1

Starting applications specified in /home/oracle/.vnc/xstartup

Log file is /home/oracle/.vnc/Satish.suneratech.com:1.log

[oracle@Satish ~]$

Potrebbero piacerti anche