Skip to main content

10. AWS-EC2-EBS VOLUMES


10..AWS-EC2-EBS VOLUMES
........
....................................

 lsblk, df -h, cd /media/ephemera10, pwd, clear
 mkdir testfolder, cd testfolder/, nano file1
 cp file1 file2, cp file 1 file3, cp file1 file4, cp file1 file5
 ll, cd /, cler
 ...

 lsblk, create a volumeS( Volume in az-a is assined becase inst is ther in same A.Z,vol2{in az-b not assined ..})..
   and assine to inst..( wher instance  is .. ther only create volume..in that AZ)..after assinging volume to inst..

.....creating disk...to....part..........

lsblk, fdisk /dev/xvdf, m, p, n, p (primary and enter 3re times), w (save),
 fdisk /dev/xvdf, p, q, lsblk,

........creating file system...................

lsblk, mkfs.ext3 /dev/xvdf1,

.........creating one folder.................

mkdir /6gbdrive,

.............that folder mounting............

 mount /dev/xvdf1 /6gbdrive, clear, df -h,


.............................
 cp -rf /media/ephemera10/testfolder/ /6gbdrive/, ls /6gbdrive/, ls /6gbdrive/testfolder/  ...... copying from ephrmal tesfolder to 6gbdrive..
 ls /media/ephemera10/testfolder/ 


if i am stop and start .. epharmal inside testfolder gone, and 6gbdrive also gone , becuse of one instance can have one EBS.. only
becuse i done   mount /dev/xvdf1 /6gbdrive in ephemeral memory..in inst memory

...............
......i want to keep this EBS volume memory .......

 nano /etc/fstab,    in that file  enter like......                 /dev/xvdf1 /6gbdrive ext3 defaults 0 0

............stop and start.. instance ............

 now stop and start inst  Then 1).inthis epharmal data gone ,2). but volume dat avilable..

 lsblk, ll /media/ephermera10/ .......files gone..in ec2 memory..

 ll /6gbdrive/,  ll /6gbdrive/testfolder/,  ....not efected files  in EBS Volume.. attached..volume..


 ...........................................

...... if i am expended volume size .....

 lsblk, growpart /dev/xvdf 1, lsblk .....for partion..expansan
 df -h, resize2fs /dev/xvdf1, df -h  .... for file system folder expansion..
.

 if i am terminated inst root volum gone,, but extra created volumes safely Avilable......




























Comments

Popular posts from this blog

42-AWS-PROJECT-CERTIFATION

42-AWS-PROJECT-CERTIFATION ... GOOGLE....aws 6r..... 1. 2. 3. 4. 5. 6. PRE SALE -POST SALE::: DPR: Detailed PROJECT REPORT. RFI : REQUSTE FOR INF. RFP : REQUEST FOR PROPEROSAL RFQ : REQ     FOR QOOTE POC: PROOF OF CONCEPT HLD: HIGH LEVEL DEGINE  CEO,LEVEL,  HIG LEVEL DIAGROM LLD: LOW LEVEL DEGINE  .. AWS , VPC, ...... BUILD SHETT: FULL DETIALS OF IP NO.. ALL PIN TO PIN UAT: USER ACCEPTANCEY TEST ORT: OPERATION REDINESS TEST SING OFF : REMAINING AMOUT COLLECT CLOSE ARCHITECTURE: AWS CERTIFICATION: Jayandra Patil AWS .............. AWS sysops bluprint

Azure Devops tutorial

 Azure Devops tutorial: web sit-  Projects - Home (azure.com) AZURE DEVOPS - Organization - Projects Under project- --------- Under Pipelines ---> Pipelines( CI ) -  Under Pipelines --->Releases( CD ) -  ------------------------------------------------------------------------------------------------------------------------- Azure Pipelines:--- Pipeline structure:- A pipeline is one or more stages that describe a CI/CD process. Stages are the major divisions in a pipeline. The stages "Build this app," "Run these tests," and "Deploy to preproduction" are good examples. A stage is one or more jobs, which are units of work assignable to the same machine. You can arrange both stages and jobs into dependency graphs. Examples include "Run this stage before that one" and "This job depends on the output of that job." A job is a linear series of steps. Steps can be tasks, scripts, or references to external templates. This hierarchy is refle...

43-Dev-git cmds

43-Dev-git cmds Harsha Veerapalli... .git clone https://github.com/username/repository  git clone https://github.com/NAVEENMJ/1 git status .git init .git status ... getting red cloure  ( a.txt ) .git add file.txt or  (git add .) .git push .git push -u origin master .................. .git branch ---list of branches .git checkout -b branch ...Creaing branches .git merge branch ... presnt in master then merge.. ................................... .git status .git init .git status ... getting red cloure  ( a.txt ) .git add file.txt .git status .... getting green cloure  ( new file: a.txt) [if multipull files in folder use git add .] .git commit -m "COMMIT-1" .. Hear COMMIT-1 Means giving name in genralli changed  name given .git log ......changes ...times.. modifi that file a.txt...... .git status .git add . .git status .git commit -m "COMMIT-2" .cls .git log ..........i want go before comited version....